{"id":445096,"date":"2021-04-19T16:53:09","date_gmt":"2021-04-19T08:53:09","guid":{"rendered":"http:\/\/4563.org\/?p=445096"},"modified":"2021-04-19T16:53:09","modified_gmt":"2021-04-19T08:53:09","slug":"%e5%b0%8f%e7%99%bd%e9%81%87%e5%88%b0%e4%b8%aa%e5%ad%97%e7%ac%a6%e4%b8%b2%e6%95%b0%e6%8d%ae%e5%a4%84%e7%90%86%ef%bc%8c%e8%af%b7%e6%95%99%e4%b8%80%e4%b8%8b","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=445096","title":{"rendered":"\u5c0f\u767d\u9047\u5230\u4e2a\u5b57\u7b26\u4e32\u6570\u636e\u5904\u7406\uff0c\u8bf7\u6559\u4e00\u4e0b"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u5c0f\u767d\u9047\u5230\u4e2a\u5b57\u7b26\u4e32\u6570\u636e\u5904\u7406\uff0c\u8bf7\u6559\u4e00\u4e0b               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : hellogitooxx <\/span>  <span><i><\/i> 9<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\">                        \u5b57\u7b26\u4e32\u5982\u4e0b\uff08\u90e8\u5206\uff09\uff0c<\/p>\n<p>LWWLWLWWLLLLLWLLLWLWLWWWLWLWWWLWLWLLWLLLLWLLLWLWLWWW<\/p>\n<p>\u4ece\u5934\u5f00\u59cb\uff0c\u7edf\u8ba1,\u9047\u5230\u76f8\u540c\u7684\u6570\u636e\uff0c\u7edf\u8ba1\u4e00\u6b21\uff0c\u5982\uff0cL \u7edf\u8ba1\u6210 1\uff0c\u540e\u9762\u9047\u5230 WW \u7edf\u8ba1\u6210 2 \u6b21\uff0c\u53c8\u9047\u5230 L \u7edf\u8ba1\u6210 1 \u6b21\uff0cW \u7edf\u8ba1\u6210 1 \u6b21\uff0c\u4ee5\u6b64\u7c7b\u63a8\u3002<\/p>\n<p>\u60f3\u5f97\u5230\u7684\u7ed3\u679c\uff0c<br \/>L(1)\uff0cW(2)\uff0cL(1)\uff0cW(1)\uff0cL(1)\uff0cW(2)\uff0cL(5),&#8230;&#8230;..<\/p>\n<p>\u7136\u540e\u751f\u6210\u56fe\u8868\uff08\u6298\u7ebf\u56fe\u6216\u67f1\u72b6\u56fe\uff09      <\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>3<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"5651000\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : eason1874 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4f5c\u4e1a\uff1f\u8001\u9898\u76ee\u4e86\uff0c\u6211\u6ca1\u5199 Python \u90fd\u770b\u8fc7\u8fd9\u9898\u3002\u968f\u624b\u4e00\u641c\u5c31\u6709\u7b54\u6848\u3002<\/p>\n<p>import itertools<\/p>\n<p>result = [(k, len(list(g))) for k, g in itertools.groupby(&#8216;LWWLWLWWLLLLLWLLLWLWLWWWLWLWWWLWLWLLWLLLLWLLLWLWLWWW&#8217;)]<\/p>\n<p>print(result)                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5651001\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : hellogitooxx <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @eason1874 \u611f\u8c22\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5651002\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : imn1 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             #1 \u8fd9\u4e2a\u662f\u624b\u518c\u4e0a\u7684\u4f8b\u7a0b\uff0c\u770b\u6837\u5b50\u6ca1\u770b\u8fc7 itertools \u8fd9\u7ae0                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u5c0f\u767d\u9047\u5230\u4e2a\u5b57\u7b26\u4e32\u6570\u636e\u5904\u7406\uff0c\u8bf7\u6559\u4e00\u4e0b&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/445096"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=445096"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/445096\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=445096"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=445096"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=445096"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}