{"id":16574,"date":"2017-03-04T02:50:38","date_gmt":"2017-03-03T18:50:38","guid":{"rendered":"http:\/\/ityet.com\/?p=16574"},"modified":"2017-03-04T02:50:38","modified_gmt":"2017-03-03T18:50:38","slug":"google%e5%bc%80%e6%ba%90python-fire","status":"publish","type":"post","link":"https:\/\/itmax.cn\/?p=16574","title":{"rendered":"Google\u5f00\u6e90Python Fire"},"content":{"rendered":"<p style=\"text-align: center;\"><img decoding=\"async\" src=\"http:\/\/images2015.cnblogs.com\/news\/66372\/201703\/66372-20170303190531001-1465350596.jpg\" alt=\"Google\u5f00\u6e90Python Fire\" \/><\/p>\n<p>\u3000\u3000\u6628\u665a\u8c37\u6b4c\u516c\u5e03\u4e86\u65b0\u7684 Python \u5de5\u5177\u5305&mdash;&mdash;Python Fire\u3002\u5b83\u7684\u529f\u80fd\u5f88\u7b80\u5355\uff1a\u80fd\u4ece\u4efb\u4f55 Python \u4ee3\u7801\u751f\u6210\u547d\u4ee4\u884c\u63a5\u53e3\uff08CLI\uff09\u3002\u5f00\u53d1\u8005\u9762\u5bf9\u4efb\u610f\u4e00\u4e2a&nbsp;Python \u7a0b\u5e8f\uff0c\u4ec5\u9700\u8c03\u7528&nbsp;Python Fire \u5373\u53ef\u628a\u8be5\u7a0b\u5e8f\u8f6c\u4e3a CLI\u3002Python Fire \u5df2\u5f00\u6e90\uff0c\u7528\u6237\u53ef\u901a\u8fc7`pip install fire`\u5728 PyPI \u8fdb\u884c\u4e0b\u8f7d\uff0c\u4e5f\u53ef\u4ee5\u53bb&nbsp;GitHub \u67e5\u770b\u5b83\u7684\u6e90\u4ee3\u7801\u3002<\/p>\n<p>\u3000\u3000\u5bf9\u4e8e\u8be5\u5de5\u5177\u5305\u5c06\u4e3a\u5f00\u53d1\u8005\u5e26\u6765\u7684\u4fbf\u5229\uff0c\u8c37\u6b4c\u8868\u793a\uff1a<\/p>\n<blockquote>\n<p>&ldquo;Python Fire \u80fd\u81ea\u52a8\u628a\u4f60\u7684\u4ee3\u7801\u8f6c\u4e3a CLI\uff0c\u4e0d\u9700\u8981\u4efb\u4f55\u989d\u5916\u64cd\u4f5c&mdash;&mdash;\u4f60\u4e0d\u9700\u8981\u5b9a\u4e49 arguments\uff0c\u4e0d\u9700\u8981\u8bbe\u5b9a\u5e2e\u52a9\u4fe1\u606f\uff0c\u4e5f\u4e0d\u9700\u8981\u7f16\u5199\u5b9a\u4e49\u4ee3\u7801\u5982\u4f55\u8fd0\u884c\u7684\u4e3b\u51fd\u6570\u3002\u4f60\u4ec5\u4ec5\u9700\u8981\u4ece\u4e3b\u6a21\u5757\u4e2d\u8c03\u7528&lsquo;Fire&rsquo;\u51fd\u6570\uff0c\u5269\u4e0b\u7684\u4e00\u5207\u90fd\u53ef\u4ee5\u4ea4\u7ed9\u5b83&nbsp;\u3002\u5b83\u652f\u6301\u7c7b\u3001library\uff0c\u5bf9\u8c61\u3001\u51fd\u6570\u3001\u751a\u81f3\u662f\u6574\u4e2a\u6a21\u5757\uff0c\u5373\u4fbf\u4ee3\u7801\u53d1\u751f\u53d8\u52a8\u4e5f\u80fd\u968f\u4e4b\u66f4\u65b0\u3002&rdquo;<\/p>\n<\/blockquote>\n<p>\u3000\u3000\u96f7\u950b\u7f51\u83b7\u77e5\uff0c\u8c37\u6b4c\u8fd8\u8868\u793a Python Fire \u5c06\u4f7f\u5f97 Bash \u548c Python \u4e4b\u95f4\u7684\u8854\u63a5\u66f4\u52a0\u65b9\u4fbf\u3002<\/p>\n<p>\u3000\u3000\u8be6\u60c5\uff1a<a href=\"https:\/\/opensource.googleblog.com\/2017\/03\/python-fire-command-line.html\" target=\"_blank\">https:\/\/opensource.googleblog.com\/2017\/03\/python-fire-command-line.html<\/a><\/p>\n<p>\u3000\u3000Github\uff1a<a href=\"https:\/\/github.com\/google\/python-fire\" rel=\"nofollow\" target=\"_blank\">https:\/\/github.com\/google\/python-fire<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3000\u3000\u6628\u665a\u8c37\u6b4c\u516c\u5e03\u4e86\u65b0\u7684 Python \u5de5\u5177\u5305&mdash;&mdash;Python Fire\u3002\u5b83\u7684\u529f\u80fd\u5f88\u7b80\u5355 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[],"tags":[],"class_list":["post-16574","post","type-post","status-publish","format-standard","hentry"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts\/16574","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=16574"}],"version-history":[{"count":0,"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts\/16574\/revisions"}],"wp:attachment":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=16574"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=16574"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=16574"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}