{"id":1108,"date":"2019-11-11T17:51:37","date_gmt":"2019-11-11T09:51:37","guid":{"rendered":"http:\/\/vip.fxxkpython.com\/?p=1108"},"modified":"2020-03-08T23:19:03","modified_gmt":"2020-03-08T15:19:03","slug":"python-%e7%88%ac%e9%98%b6%e6%a2%af-python%e5%87%bd%e6%95%b0%e4%b8%ad%e5%8f%82%e6%95%b0%e7%9a%84%e4%bc%a0%e9%80%92%e6%9c%ba%e5%88%b6%e5%88%b0%e5%88%b0%e5%ba%95%e6%98%af%e6%80%8e%e4%b9%88%e6%a0%b7","status":"publish","type":"post","link":"https:\/\/vip.fxxkpython.com\/?p=1108","title":{"rendered":"Python \u722c\u9636\u68af | Python\u51fd\u6570\u4e2d\u53c2\u6570\u7684\u4f20\u9012\u673a\u5236\u5230\u5230\u5e95\u662f\u600e\u4e48\u6837\u7684\uff1f"},"content":{"rendered":"\n<p>\u6211\u5148\u5199\u4e24\u6bb5\u4ee3\u7801\u7ed9\u4f60\u770b\u770b\uff1a<\/p>\n\n\n\n<p>1\u3001<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" width=\"271\" height=\"233\" src=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2019\/11\/Screenshot-from-2019-11-11-17-00-16.png\" alt=\"\" class=\"wp-image-1109\"\/><figcaption><br><\/figcaption><\/figure><\/div>\n\n\n\n<p>2\u3001<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" width=\"255\" height=\"238\" src=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2019\/11\/Screenshot-from-2019-11-11-17-01-57.png\" alt=\"\" class=\"wp-image-1110\"\/><\/figure><\/div>\n\n\n\n<p>\u770b\u51fa\u5b83\u4e24\u7684\u533a\u522b\u4e86\u4e48\uff1f<\/p>\n\n\n\n<p>\u7b2c\u4e00\u6bb5\u4ee3\u7801\uff0ca = 2\uff0c\u7136\u540e\u628a a \u4f5c\u4e3a\u53c2\u6570\u4f20\u7ed9 foo \u51fd\u6570\uff0c\u51fd\u6570\u4e2d\u7684 arg += 1\uff0c\u4e0d\u8fc7\u5f53\u6211\u4eec\u8c03\u7528\u5b8c foo \u51fd\u6570\u4e4b\u540e\uff0c a \u7684\u503c\u6ca1\u6709\u53d8\uff0c\u8fd8\u662f\u7b49\u4e8e 2\u3002<\/p>\n\n\n\n<p>\u800c\u7b2c\u4e8c\u6bb5\u4ee3\u7801\u7c7b\u4f3c\uff0c\u53ea\u4e0d\u8fc7\u6211\u4eec\u628a\u53c2\u6570\u4ece\u6574\u6570\u6362\u4f4d\u5217\u8868\uff0c\u4e0d\u8fc7\u5f53\u6211\u4eec\u548c\u7b2c\u4e00\u6bb5\u4ee3\u7801\u4e00\u6837\u6267\u884c\u7684\u65f6\u5019\uff0c\u8f93\u51fa\u7684\u7ed3\u679c\u662f a \u7684\u503c\u53d8\u4e86\uff0c\u4ece [1,2,3] \u53d8\u6210\u4e86 [1,2,3,6]\u3002<\/p>\n\n\n\n<p>\u8fd9\u662f\u4e3a\u4ec0\u4e48\u5462\uff1f<\/p>\n\n\n\n<p>\u8fd8\u8bb0\u5f97\u6211\u4e4b\u524d\u8ddf\u4f60\u8bf4<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%3D1108\">\u767b\u9646<\/a> \u540e\u624d\u53ef\u4ee5\u6d4f\u89c8<\/div>\u503c\u5f97\u6ce8\u610f\u7684\u4e00\u70b9\u662f\uff0c\u53ef\u53d8\u7c7b\u578b\u8fdb\u884c += \u64cd\u4f5c\u7684\u65f6\u5019\uff0c\u662f\u4f1a\u521b\u5efa\u65b0\u7684\u7a7a\u95f4\u7684\uff0c\u6bd4\u5982\uff1a<\/p>\n\n\n\n<p>[1,2,3] + [4]\uff0c\u5b9e\u9645\u4e0a\u662f\u8fd9\u6837\u7684\uff1a<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" width=\"751\" height=\"401\" src=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2019\/11\/Untitled-Diagram-6.png\" alt=\"\" class=\"wp-image-1122\" srcset=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2019\/11\/Untitled-Diagram-6.png 751w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2019\/11\/Untitled-Diagram-6-300x160.png 300w\" sizes=\"(max-width: 751px) 100vw, 751px\" \/><\/figure><\/div>\n\n\n\n<p>\u6240\u4ee5\u5f53\u50cf\u4ee5\u4e0b\u8fd9\u6837\u53bb\u8fdb\u884c\u51fd\u6570\u64cd\u4f5c\u7684\u65f6\u5019\uff0c\u53ef\u53d8\u7c7b\u578b\u53d8\u91cf\u7684\u503c\u4e5f\u662f\u4e0d\u4f1a\u6539\u53d8\u7684\uff1a<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" width=\"210\" height=\"239\" src=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2019\/11\/Screenshot-from-2019-11-11-17-47-54.png\" alt=\"\" class=\"wp-image-1123\"\/><\/figure><\/div>\n\n\n\n<p>ok\uff0c\u4ee5\u4e0a\u5c31\u662fPython\u51fd\u6570\u4e2d\u53c2\u6570\u7684\u4f20\u9012\u673a\u5236\uff0c\u4e0d\u7528\u53bb\u6b7b\u8bb0\u786c\u80cc\uff0c\u4e86\u89e3\u5176\u4e2d\u7684\u539f\u7406\uff0c\u4f60\u5c31\u4f1a\u5f88\u5bb9\u6613\u7684\u660e\u767d\u8fd9\u79cd\u53c2\u6570\u4f20\u9012\u65b9\u5f0f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6211\u5148\u5199\u4e24\u6bb5\u4ee3\u7801\u7ed9\u4f60\u770b\u770b\uff1a 1\u3001 2\u3001 \u770b\u51fa\u5b83\u4e24\u7684\u533a\u522b\u4e86\u4e48\uff1f \u7b2c\u4e00\u6bb5\u4ee3\u7801\uff0ca = 2\uff0c\u7136\u540e\u628a a \u4f5c\u4e3a\u53c2\u6570\u4f20\u7ed9 foo \u51fd\u6570\uff0c\u51fd\u6570\u4e2d\u7684 arg += 1\uff0c\u4e0d\u8fc7\u5f53\u6211\u4eec\u8c03\u7528\u5b8c foo \u51fd\u6570\u4e4b\u540e\uff0c a \u7684\u503c\u6ca1\u6709\u53d8\uff0c\u8fd8\u662f\u7b49\u4e8e 2\u3002 \u800c\u7b2c\u4e8c\u6bb5\u4ee3\u7801\u7c7b\u4f3c\uff0c\u53ea\u4e0d\u8fc7\u6211\u4eec&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":[141,54,62,69,155,53],"_links":{"self":[{"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/posts\/1108"}],"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=1108"}],"version-history":[{"count":3,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/posts\/1108\/revisions"}],"predecessor-version":[{"id":1266,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/posts\/1108\/revisions\/1266"}],"wp:attachment":[{"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1108"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1108"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1108"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}