{"id":1432,"date":"2019-12-27T17:57:04","date_gmt":"2019-12-27T09:57:04","guid":{"rendered":"http:\/\/vip.fxxkpython.com\/?p=1432"},"modified":"2019-12-27T17:57:04","modified_gmt":"2019-12-27T09:57:04","slug":"python3-%e7%88%ac%e9%98%b6%e6%a2%af-%e8%ae%a9%e4%bd%a0%e7%9a%84-python-%e4%bb%a3%e7%a0%81%e5%81%a5%e5%a3%ae%e4%b8%80%e7%82%b9%e7%82%b9","status":"publish","type":"post","link":"https:\/\/vip.fxxkpython.com\/?p=1432","title":{"rendered":"Python3 \u722c\u9636\u68af | \u8ba9\u4f60\u7684 Python \u4ee3\u7801\u5065\u58ee\u4e00\u70b9\u70b9"},"content":{"rendered":"\n<p>\u524d\u4e24\u7bc7\u6211\u8ddf\u4f60\u8bf4\u4e86\u5355\u5143\u6d4b\u8bd5\u76f8\u5173\u7684\u7528\u6cd5\uff0c\u4eca\u5929\u7ed9\u4f60\u8bb2\u7684\u8fd9\u4e2a\u4e5f\u662f\u7ecf\u5e38\u4f1a\u5728\u4ee3\u7801\u4e2d\u4f7f\u7528\u5230\u7684\uff0c\u5018\u82e5\u4f60\u770b\u8fc7\u4e00\u4e9b Python \u7684\u9879\u76ee\u6e90\u4ee3\u7801\uff0c\u60f3\u5fc5\u4f60\u5e94\u8be5\u4f1a\u770b\u5230\u5b83\u7684\u8eab\u5f71 \u2014\u2014 <div style=\"text-align:center;border:1px dashed #FF9A9A;padding:8px;margin:10px auto;color:#FF6666;\">\u672c\u6587\u9690\u85cf\u5185\u5bb9 <a href=\"https:\/\/vip.fxxkpython.com\/wp-login.php?redirect_to=https%3A%2F%2Fvip.fxxkpython.com%2F%3Fp%3D1432\">\u767b\u9646<\/a> \u540e\u624d\u53ef\u4ee5\u6d4f\u89c8<\/div>\u5728\u6b63\u5e38\u7684\u8fd0\u884c\u4e0b\uff0c\u8fd9\u6837\u7684\u64cd\u4f5c\u53ef\u4ee5\u5728\u4e00\u5b9a\u7a0b\u5ea6\u4e0a\u907f\u514d\u4e86\u7528\u6237\u548c\u6743\u9650\u76f8\u5173\u95ee\u9898\uff0c\u4f46\u662f\u5982\u679c\u6211\u4eec\u76f4\u63a5\u7528 python3 -O xxx.py  \u6267\u884c\uff0c\u662f\u4e0d\u662f\u5c31\u53ef\u4ee5\u76f4\u63a5 update \u4e86\u5462\uff1f\u663e\u7136\u8fd9\u6837\u505a\u662f\u6709 bug \u7684\u3002<\/p>\n\n\n\n<p>\u6240\u4ee5\u5bf9\u4e8e\u6d89\u53ca\u5230\u6570\u636e\u7684\u589e\u5220\u6539\uff0c\u8fd8\u662f\u7528\u6211\u4eec\u4e4b\u524d\u8bf4\u8fc7\u7684 try&#8230;except\uff0craise \u5bf9\u4ee3\u7801\u8fdb\u884c\u5f02\u5e38\u89e3\u51b3\u4e3a\u597d\u3002\u800c\u5bf9\u4e8e\u4e00\u4e9b\u6570\u636e\u7c7b\u578b\u7684\u68c0\u6d4b\u4ee5\u53ca\u4f60\u5df2\u77e5\u7684\u6761\u4ef6\u65ad\u8a00\uff0c\u76f4\u63a5\u4f7f\u7528 assert \u53ef\u4ee5\u8ba9\u4f60\u7684\u4ee3\u7801\u66f4\u52a0\u5065\u58ee\u4e00\u4e9b\u3002<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u524d\u4e24\u7bc7\u6211\u8ddf\u4f60\u8bf4\u4e86\u5355\u5143\u6d4b\u8bd5\u76f8\u5173\u7684\u7528\u6cd5\uff0c\u4eca\u5929\u7ed9\u4f60\u8bb2\u7684\u8fd9\u4e2a\u4e5f\u662f\u7ecf\u5e38\u4f1a\u5728\u4ee3\u7801\u4e2d\u4f7f\u7528\u5230\u7684\uff0c\u5018\u82e5\u4f60\u770b\u8fc7\u4e00\u4e9b Python \u7684\u9879\u76ee\u6e90\u4ee3\u7801\uff0c\u60f3\u5fc5\u4f60\u5e94\u8be5\u4f1a\u770b\u5230\u5b83\u7684\u8eab\u5f71 \u2014\u2014 \u5728\u6b63\u5e38\u7684\u8fd0\u884c\u4e0b\uff0c\u8fd9\u6837\u7684\u64cd\u4f5c\u53ef\u4ee5\u5728\u4e00\u5b9a\u7a0b\u5ea6\u4e0a\u907f\u514d\u4e86\u7528\u6237\u548c\u6743\u9650\u76f8\u5173\u95ee\u9898\uff0c\u4f46\u662f\u5982\u679c\u6211\u4eec\u76f4\u63a5\u7528 pyt&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[140],"tags":[253,125,243,251,254,255,242],"_links":{"self":[{"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/posts\/1432"}],"collection":[{"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1432"}],"version-history":[{"count":1,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/posts\/1432\/revisions"}],"predecessor-version":[{"id":1441,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/posts\/1432\/revisions\/1441"}],"wp:attachment":[{"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1432"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1432"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1432"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}