{"id":178028,"date":"2022-04-19T00:47:52","date_gmt":"2022-04-18T16:47:52","guid":{"rendered":"http:\/\/www.idc.net\/help\/178028\/"},"modified":"2022-04-19T00:47:52","modified_gmt":"2022-04-18T16:47:52","slug":"%e5%90%8e%e6%b5%aa%e4%ba%91python%e6%95%99%e7%a8%8b%ef%bc%9a%e5%a6%82%e4%bd%95%e6%89%a7%e8%a1%8cpython%e6%96%87%e4%bb%b6","status":"publish","type":"post","link":"https:\/\/idc.net\/help\/178028\/","title":{"rendered":"\u540e\u6d6a\u4e91Python\u6559\u7a0b\uff1a\u5982\u4f55\u6267\u884cpython\u6587\u4ef6"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/oss.py.cn\/pycn\/upload\/article\/000\/000\/004\/5d5ce726d3a58686.jpg\" class=\"aligncenter\"><\/p>\n<p>\u7528\u6587\u672c\u7f16\u8f91\u5668\u5199Python\u7a0b\u5e8f\uff0c\u7136\u540e\u4fdd\u5b58\u4e3a\u540e\u7f00\u4e3a.py\u7684\u6587\u4ef6\uff0c\u5c31\u53ef\u4ee5\u7528Python\u76f4\u63a5\u8fd0\u884c\u8fd9\u4e2a\u7a0b\u5e8f\u4e86\u3002<\/p>\n<p>Python\u7684\u4ea4\u4e92\u6a21\u5f0f\u548c\u76f4\u63a5\u8fd0\u884c.py\u6587\u4ef6\u6709\u4ec0\u4e48\u533a\u522b\u5462\uff1f<\/p>\n<p>1. \u76f4\u63a5\u8f93\u5165python\u8fdb\u5165\u4ea4\u4e92\u6a21\u5f0f\uff0c\u76f8\u5f53\u4e8e\u542f\u52a8\u4e86Python\u89e3\u91ca\u5668\uff0c\u4f46\u662f\u7b49\u5f85\u4f60\u4e00\u884c\u4e00\u884c\u5730\u8f93\u5165\u6e90\u4ee3\u7801\uff0c\u6bcf\u8f93\u5165\u4e00\u884c\u5c31\u6267\u884c\u4e00\u884c\u3002<\/p>\n<p>2. \u76f4\u63a5\u8fd0\u884c.py\u6587\u4ef6\u76f8\u5f53\u4e8e\u542f\u52a8\u4e86Python\u89e3\u91ca\u5668\uff0c\u7136\u540e\u4e00\u6b21\u6027\u628a.py\u6587\u4ef6\u7684\u6e90\u4ee3\u7801\u7ed9\u6267\u884c\u4e86\uff0c\u4f60\u662f\u6ca1\u6709\u673a\u4f1a\u4ee5\u4ea4\u4e92\u7684\u65b9\u5f0f\u8f93\u5165\u6e90\u4ee3\u7801\u7684\u3002<\/p>\n<p>3. \u7528Python\u5f00\u53d1\u7a0b\u5e8f\uff0c\u5b8c\u5168\u53ef\u4ee5\u4e00\u8fb9\u5728\u6587\u672c\u7f16\u8f91\u5668\u91cc\u5199\u4ee3\u7801\uff0c\u4e00\u8fb9\u5f00\u4e00\u4e2a\u4ea4\u4e92\u5f0f\u547d\u4ee4\u7a97\u53e3\uff0c\u5728\u5199\u4ee3\u7801\u7684\u8fc7\u7a0b\u4e2d\uff0c\u628a\u90e8\u5206\u4ee3\u7801\u7c98\u5230\u547d\u4ee4\u884c\u53bb\u9a8c\u8bc1\uff0c\u4e8b\u534a\u529f\u500d\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7528\u6587\u672c\u7f16\u8f91\u5668\u5199Python\u7a0b\u5e8f\uff0c\u7136\u540e\u4fdd\u5b58\u4e3a\u540e\u7f00\u4e3a.py\u7684\u6587\u4ef6\uff0c\u5c31\u53ef\u4ee5\u7528Python\u76f4\u63a5\u8fd0\u884c\u8fd9\u4e2a\u7a0b\u5e8f\u4e86\u3002 Pyt [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":178029,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[182397],"tags":[],"class_list":["post-178028","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-python"],"_links":{"self":[{"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/posts\/178028","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/comments?post=178028"}],"version-history":[{"count":0,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/posts\/178028\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/media\/178029"}],"wp:attachment":[{"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/media?parent=178028"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/categories?post=178028"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/tags?post=178028"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}