{"id":137952,"date":"2020-07-21T14:48:14","date_gmt":"2020-07-21T06:48:14","guid":{"rendered":"http:\/\/4563.org\/?p=137952"},"modified":"2020-07-21T14:48:14","modified_gmt":"2020-07-21T06:48:14","slug":"%e4%b8%ba%e4%bb%80%e4%b9%88%e5%88%86%e5%89%b2%e5%ad%97%e7%ac%a6%e4%b8%b2%e6%97%b6%e5%bc%80%e5%a4%b4%e6%88%96%e8%80%85%e7%bb%93%e5%b0%be%e4%b8%ba%e5%85%b3%e9%94%ae%e8%af%8d%e6%97%b6%ef%bc%8c%e4%bc%9a","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=137952","title":{"rendered":"\u4e3a\u4ec0\u4e48\u5206\u5272\u5b57\u7b26\u4e32\u65f6\u5f00\u5934\u6216\u8005\u7ed3\u5c3e\u4e3a\u5173\u952e\u8bcd\u65f6\uff0c\u4f1a\u751f\u6210\u7a7a\u5b57\u7b26\u4e32"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u4e3a\u4ec0\u4e48\u5206\u5272\u5b57\u7b26\u4e32\u65f6\u5f00\u5934\u6216\u8005\u7ed3\u5c3e\u4e3a\u5173\u952e\u8bcd\u65f6\uff0c\u4f1a\u751f\u6210\u7a7a\u5b57\u7b26\u4e32               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : hjahgdthab750 <\/span>  <span><i><\/i> 4<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u5982\u9898\uff0c\u5199\u4e86\u51e0\u5e74\u7684\u7a0b\u5e8f\u4eca\u5929 debug \u65f6\u624d\u53d1\u73b0\u8fd9\u4e2a\u95ee\u9898\uff0c<\/p>\n<p>\u672c\u6765\u662f\u76f4\u63a5\u53d6 rawResults[0], \u4f46\u8fd0\u884c\u65f6\u603b\u662f\u51fa\u9519\u3002<\/p>\n<p>\u4e0d\u592a\u660e\u767d\u4e3a\u4ec0\u4e48\u662f\u8fd9\u79cd\u903b\u8f91<\/p>\n<pre><code>\"BC\".split('B') # ['', 'C'] <\/code><\/pre>\n<pre><code> for _,i := range strings.Split(\"BCB\", \"B\"){   fmt.Println(i+\"@\")  }   \/\/ @   \/\/ [email&#160;protected]   \/\/ @ <\/code><\/pre>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>9<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"2604255\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : pixiaotiao <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u7528\u4f60\u7684\u4f8b\u5b50 [&#8221;,&#8217;C&#8217;].join(&#8216;B&#8217;); [&#8216;C&#8217;].join(&#8216;B&#8217;); \u81ea\u5df1\u54c1                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2604256\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : goofool <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             s[0:0]\u662f\u6709\u6548\u7684\uff0c\u8fd4\u56de\u7a7a\u5b57\u7b26\u4e32                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2604257\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : shintendo <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5982\u679c\u6ca1\u6709\u8fd9\u4e2a\u7a7a\u5b57\u7b26\u4e32\uff0c\u4f60\u5c31\u65e0\u6cd5\u4ece\u5206\u5272\u51fa\u6765\u7684\u6570\u7ec4\u53cd\u63a8\u51fa\u539f\u5b57\u7b26\u4e32\u5427\u3002<br \/>\u6bd4\u5982 str.split(&#8216;B&#8217;) == [&#8216;C&#8217;]\uff0c\u4f60\u65e0\u6cd5\u77e5\u9053 str \u662f BC \u8fd8\u662f CB \u8fd8\u662f BCB                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2604258\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : misaka19000 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u770b\u4e0b\u6e90\u4ee3\u7801\u4e0d\u5c31\u77e5\u9053\u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2604259\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : aguesuka <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5927\u6982\u662f\u53cc\u5c04\u51fd\u6570\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2604260\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : littleylv <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5f53\u5206\u9694\u7b26\u6070\u597d\u5728\u6700\u524d\u9762\u7684\u65f6\u5019\uff0c\u7b2c\u4e00\u4e2a\u80af\u5b9a\u662f\u7a7a\u5b57\u7b26\u4e32\uff1b<br \/>\u5f53\u5206\u9694\u7b26\u6070\u597d\u5728\u6700\u540e\u9762\u7684\u65f6\u5019\uff0c\u6700\u540e\u4e00\u4e2a\u80af\u5b9a\u662f\u7a7a\u5b57\u7b26\u4e32\u3002<br \/>\u8fd9\u662f\u5fc5\u987b\u7684\u3002Python PHP JS \u90fd\u662f\u8fd9\u6837\u7684\u7ed3\u679c                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2604261\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : mornlight <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             rawResults[0] \u903b\u8f91\u4e0a\u53d6\u7684\u662f\u7b2c\u4e00\u4e2a\u5206\u9694\u7b26\u5de6\u8fb9\u7684\u5b57\u7b26\u4e32\u3002\u7a7a\u4e32\u4e0d\u80fd\u6254\u6389\uff0c\u4e0d\u7136\u4e71\u4e86\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2604262\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : crella <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             ruby: puts &#8216;BCCB&#8217;.split(&#8216;B&#8217;).inspect <\/p>\n<p>[&#8220;&#8221;, &#8220;CC&#8221;]<br \/>\u548c<br \/>@littleylv \u8bf4\u7684\u6709\u5dee\u522b                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2604263\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : apporoad <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @pixiaotiao \u4ee3\u7801\u679c\u7136\u662f\u6700\u597d\u7684\u89e3\u91ca                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u4e3a\u4ec0\u4e48\u5206\u5272\u5b57\u7b26\u4e32\u65f6\u5f00\u5934\u6216\u8005\u7ed3\u5c3e\u4e3a\u5173&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\/137952"}],"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=137952"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/137952\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=137952"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=137952"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=137952"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}