{"id":217373,"date":"2020-12-02T17:04:16","date_gmt":"2020-12-02T09:04:16","guid":{"rendered":"http:\/\/4563.org\/?p=217373"},"modified":"2020-12-02T17:04:16","modified_gmt":"2020-12-02T09:04:16","slug":"python-%e5%92%8c-power-shell-%e7%9a%84%e5%ad%97%e7%ac%a6%e4%b8%b2-split-%e9%97%ae%e9%a2%98","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=217373","title":{"rendered":"Python \u548c Power shell \u7684\u5b57\u7b26\u4e32 Split \u95ee\u9898"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  Python \u548c Power shell \u7684\u5b57\u7b26\u4e32 Split \u95ee\u9898               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : wittyfans <\/span>  <span><i><\/i> 2<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u4eca\u5929\u7528 Poweshell \u63d0\u53d6\u5b57\u7b26\u4e32\u7684\u65f6\u5019\u53d1\u73b0\u4e00\u4e2a\u5c0f\u95ee\u9898:<\/p>\n<p>&#8220;cell_20201403_20201407_CONDOM_24837_30_211SZH_000000J5X.csv&#8221;.split(&#8220;.csv&#8221;)[0]<\/p>\n<p>\u8fd9\u6761\u4ee3\u7801\u5728 Python \u4e2d\u548c Power shell \u4e2d\u662f\u90fd\u53ef\u4ee5\u8fd0\u884c\u7684\uff0c\u4f46\u7ed3\u679c\u4e3a\u4ec0\u4e48\u4e0d\u4e00\u6837\u5462\uff1f<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" referrerpolicy=\"no-referrer\" rel=\"noreferrer\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/12\/20201205_5fcc0e3368ccf.png\" alt=\"Python \u548c Power shell \u7684\u5b57\u7b26\u4e32 Split \u95ee\u9898\" \/><\/p>\n<\/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=\"4419060\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : wittyfans <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u627e\u5230\u539f\u56e0\u4e86\uff0c\u5f97\u8fd9\u6837\u5199:<\/p>\n<p>&#8220;`<br \/>&#8220;cell_20201403_20201407_CONDOM_24837_30_211SZH_000000J5X.csv&#8221; -split &#8220;.csv&#8221;<br \/>&#8220;`<\/p>\n<p>\u53c2\u89c1\uff1a https:\/\/stackoverflow.com\/a\/22200431                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4419061\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Lemeng <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u81ea\u5df1\u80fd\u627e\u5230\u95ee\u9898\uff0c\u5370\u8c61\u66f4\u6df1\u523b                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4419062\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : wittyfans <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @Lemeng \u5bf9\u7684                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>Python \u548c Power sh&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\/217373"}],"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=217373"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/217373\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=217373"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=217373"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=217373"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}