{"id":4045,"date":"2020-03-02T18:43:57","date_gmt":"2020-03-02T10:43:57","guid":{"rendered":"http:\/\/vip.fxxkpython.com\/?p=4045"},"modified":"2021-02-15T21:48:19","modified_gmt":"2021-02-15T13:48:19","slug":"python-%e7%88%ac%e9%98%b6%e6%a2%af-%e4%bb%80%e4%b9%88%e6%98%af%e5%ae%9e%e4%be%8b%e6%96%b9%e6%b3%95%e5%92%8c%e7%b1%bb%e6%96%b9%e6%b3%95%e4%bb%a5%e5%8f%8a%e9%9d%99%e6%80%81%e6%96%b9%e6%b3%95%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/vip.fxxkpython.com\/?p=4045","title":{"rendered":"Python \u722c\u9636\u68af | \u4ec0\u4e48\u662f\u5b9e\u4f8b\u65b9\u6cd5\u548c\u7c7b\u65b9\u6cd5\u4ee5\u53ca\u9759\u6001\u65b9\u6cd5\uff1f"},"content":{"rendered":"\n<p>\u5c0f\u5e05b\u4eca\u5929\u6765\u8ddf\u4f60\u8bf4\u8bf4\u7c7b\u7684\u4e00\u4e9b\u65b9\u6cd5\u7684\u5b9a\u4e49\uff0c\u9664\u4e86\u6211\u4eec\u4e4b\u524d\u6240\u8bf4\u7684\u7c7b\u5e38\u89c4\u65b9\u6cd5\uff08<a href=\"https:\/\/vip.fxxkpython.com\/?p=628\">\u51fd\u6570\u65b9\u6cd5<\/a>\uff0c<a href=\"https:\/\/vip.fxxkpython.com\/?p=648\">\u51fd\u6570\u53c2\u6570\u7684\u4f7f\u7528<\/a>\uff09\uff0c\u5176\u5b9e\u5728\u7c7b\u91cc\u9762\u8fd8\u53ef\u4ee5\u4ee5<a href=\"https:\/\/vip.fxxkpython.com\/?p=1127\">\u88c5\u9970\u5668\u7684\u65b9\u5f0f<\/a>\u6765\u5b9a\u4e49\u7279\u522b\u4e00\u4e9b\u7684\u65b9\u6cd5\uff0c\u6bd4\u5982\u4eca\u5929\u8981\u8ddf\u4f60\u8bf4\u7684\u7c7b\u65b9\u6cd5\u4ee5\u53ca\u9759\u6001\u65b9\u6cd5\u3002<\/p>\n\n\n\n<h2>\u5e38\u89c4\u5b9e\u4f8b\u65b9\u6cd5<\/h2>\n\n\n\n<p>\u5728\u6b64\u4e4b\u524d\uff0c\u6211\u4eec\u6765\u770b\u770b\u901a\u5e38\u60c5\u51b5\u4e0b\u5b9a\u4e49\u7684\u5e38\u89c4\u5b9e\u4f8b\u65b9\u6cd5\uff1a<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" width=\"370\" height=\"204\" src=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/03\/Screenshot-from-2020-03-03-18-58-44.png\" alt=\"\" class=\"wp-image-4046\" srcset=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/03\/Screenshot-from-2020-03-03-18-58-44.png 370w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/03\/Screenshot-from-2020-03-03-18-58-44-300x165.png 300w\" sizes=\"(max-width: 370px) 100vw, 370px\" \/><\/figure><\/div>\n\n\n\n<p>\u8fd9\u5c31\u662f\u6211\u4eec\u5e38\u5e38\u4f7f\u7528\u7684\u7c7b\u5b9e\u4f8b\u7684\u5e38\u89c4\u65b9\u6cd5\uff0c\u8fd9\u91cc\u9762\u7684 self \u6307\u7684\u5c31\u662f\u6211\u4eec\u7684\u5b9e\u4f8b\uff0c\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u5b83\u53bb\u8bbf\u95ee\u5b9e\u4f8b\u7684\u72b6\u6001\u4ee5\u53ca\u5c5e\u6027\u76f8\u5173\u3002<\/p>\n\n\n\n<p>\u4f60\u53ef\u4ee5\u6253\u5370\u8fd9\u4e2a\u5bf9\u8c61\uff0c\u53ef\u4ee5\u5f97\u5230\u8fd9\u4e2a\u5b9e\u4f8b\uff1a<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" width=\"278\" height=\"17\" src=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/03\/Screenshot-from-2020-03-03-19-02-59.png\" alt=\"\" class=\"wp-image-4047\"\/><\/figure><\/div>\n\n\n\n<h2 id=\"mce_8\">\u7c7b\u65b9\u6cd5<\/h2>\n\n\n\n<p>\u63a5\u7740\u6211\u6765\u4f7f\u7528\u7c7b\u65b9\u6cd5\uff0c\u7c7b\u65b9\u6cd5\u4f1a\u7528\u5230\u88c5\u9970\u5668 @classmethod \u6765\u5b9e\u73b0\uff1a<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%3D4045\">\u767b\u9646<\/a> \u540e\u624d\u53ef\u4ee5\u6d4f\u89c8<\/div> ok\uff0c\u4ee5\u4e0a\u5c31\u662f\u5b9e\u4f8b\u65b9\u6cd5\u3001\u7c7b\u65b9\u6cd5\u548c\u9759\u6001\u65b9\u6cd5\u76f8\u5173\u7684\u5185\u5bb9\uff0c\u6709\u4ec0\u4e48\u7591\u95ee\u90fd\u53ef\u4ee5\u4e0b\u65b9\u8bc4\u8bba\u6216\u8005\u90ae\u7bb1\u6211\u54e6\uff0c\u6211\u4eec\u4e0b\u56de\u89c1\u3002<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5c0f\u5e05b\u4eca\u5929\u6765\u8ddf\u4f60\u8bf4\u8bf4\u7c7b\u7684\u4e00\u4e9b\u65b9\u6cd5\u7684\u5b9a\u4e49\uff0c\u9664\u4e86\u6211\u4eec\u4e4b\u524d\u6240\u8bf4\u7684\u7c7b\u5e38\u89c4\u65b9\u6cd5\uff08\u51fd\u6570\u65b9\u6cd5\uff0c\u51fd\u6570\u53c2\u6570\u7684\u4f7f\u7528\uff09\uff0c\u5176\u5b9e\u5728\u7c7b\u91cc\u9762\u8fd8\u53ef\u4ee5\u4ee5\u88c5\u9970\u5668\u7684\u65b9\u5f0f\u6765\u5b9a\u4e49\u7279\u522b\u4e00\u4e9b\u7684\u65b9\u6cd5\uff0c\u6bd4\u5982\u4eca\u5929\u8981\u8ddf\u4f60\u8bf4\u7684\u7c7b\u65b9\u6cd5\u4ee5\u53ca\u9759\u6001\u65b9\u6cd5\u3002 \u5e38\u89c4\u5b9e\u4f8b\u65b9\u6cd5 \u5728\u6b64\u4e4b\u524d\uff0c\u6211\u4eec\u6765\u770b\u770b\u901a\u5e38\u60c5\u51b5\u4e0b\u5b9a\u4e49\u7684\u5e38\u89c4\u5b9e\u4f8b&hellip;<\/p>\n","protected":false},"author":1,"featured_media":4055,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[140],"tags":[62,329,37,330,332,331],"_links":{"self":[{"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/posts\/4045"}],"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=4045"}],"version-history":[{"count":2,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/posts\/4045\/revisions"}],"predecessor-version":[{"id":6252,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/posts\/4045\/revisions\/6252"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/media\/4055"}],"wp:attachment":[{"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4045"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4045"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4045"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}