{"id":1046,"date":"2019-10-31T18:15:20","date_gmt":"2019-10-31T10:15:20","guid":{"rendered":"http:\/\/vip.fxxkpython.com\/?p=1046"},"modified":"2022-03-16T15:07:26","modified_gmt":"2022-03-16T07:07:26","slug":"%e9%98%b6%e6%ae%b5%e6%80%a7%e6%80%bb%e7%bb%93-%e6%81%ad%e5%96%9c%e4%bd%a0%ef%bc%8c%e8%bf%9b%e5%85%a5%e4%ba%86-python-%e7%9a%84%e5%a4%a7%e9%97%a8","status":"publish","type":"post","link":"https:\/\/vip.fxxkpython.com\/?p=1046","title":{"rendered":"\u9636\u6bb5\u6027\u603b\u7ed3 | \u606d\u559c\u4f60\uff0c\u8fdb\u5165\u4e86 Python \u7684\u5927\u95e8"},"content":{"rendered":"\n<p>\u73b0\u5728\u7684\u4f60\uff0c\u5df2\u7ecf\u8fdb\u5165\u4e86 Python \u7684\u5927\u95e8\u4e86\uff0c\u5728\u4f60\u8d70\u7684\u8fd9\u6761\u8def\u4e0a\uff0c\u6211\u60f3\u4f60\u6bd4\u5728\u5916\u9762\u7684\u4eba\uff08\u975e VIP \u7684\u4eba\uff09\u8d70\u7684\u66f4\u7b80\u5355\u3001\u7c97\u66b4\u3001\u6709\u6548\u4e14\u76f4\u63a5\u3002<\/p>\n\n\n\n<p>\u73b0\u5728\uff0c\u6211\u7ed9\u4f60\u4e00\u4e9b\u5c0f\u9879\u76ee\uff0c\u6765\u64cd\u7ec3\u4e00\u4e0b\u4f60\u5b66\u5230\u7684\u4e1c\u897f\uff0c\u4e00\u5b9a\u8981\u81ea\u5df1\u52a8\u624b\u53bb\u5b9e\u73b0\u54e6\uff1a<\/p>\n\n\n\n<p><a href=\"http:\/\/mp.weixin.qq.com\/s?__biz=Mzg2NzYyNjg2Nw==&amp;mid=2247490074&amp;idx=1&amp;sn=c59ed4e04e8c952b31a6f5ded13c266a&amp;chksm=ceb9e006f9ce69102511fd289b9ce2622f3a3bffd170dfaf9a96ff0d2cb6cdfde27f8632eb28&amp;scene=27#wechat_redirect\" title=\"\u7528 Python \u5199\u4e00\u4e2a\u8d2a\u5403\u86c7\u6e38\u620f\">\u7528 Python \u5199\u4e00\u4e2a\u8d2a\u5403\u86c7\u6e38\u620f<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/www.bilibili.com\/video\/BV1Lb4y1J7vr\/\" title=\"\u7528 Python \u5199\u4e00\u4e2a\u8d2a\u5403\u86c7\u6e38\u620f\uff08\u9762\u5411\u5bf9\u8c61\u7248\uff09\">\u7528 Python \u5199\u4e00\u4e2a\u8d2a\u5403\u86c7\u6e38\u620f\uff08\u9762\u5411\u5bf9\u8c61\u7248\uff09<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/mp.weixin.qq.com\/s?__biz=Mzg2NzYyNjg2Nw==&amp;mid=2247490111&amp;idx=1&amp;sn=5799a7a8942e5e4ad26ad06419fb8575&amp;chksm=ceb9e023f9ce693525bd2d461ccad11e4b9ed9d45794f209d4345bf864aef12dc692ab99b69c&amp;scene=27#wechat_redirect\" title=\"\u7528 Python \u5f00\u53d1\u4e00\u4e2a\u641e\u7b11\u6e38\u620f\">\u7528 Python \u5f00\u53d1\u4e00\u4e2a\u641e\u7b11\u6e38\u620f<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/mp.weixin.qq.com\/s?__biz=Mzg2NzYyNjg2Nw==&amp;mid=2247489961&amp;idx=1&amp;sn=c04169582518b5f4d11f66aebb9c6b56&amp;chksm=ceb9e3b5f9ce6aa30adbd449db4bb819fe55635f58dc93a5a5e316f2d246095a4d777df2ce55&amp;scene=27#wechat_redirect\" title=\"\u7528 Python \u722c\u53d6 20w \u8868\u60c5\u5305\">\u7528 Python \u722c\u53d6 20w \u8868\u60c5\u5305<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/mp.weixin.qq.com\/s?__biz=Mzg2NzYyNjg2Nw==&amp;mid=2247490142&amp;idx=1&amp;sn=75df11e41a9a08684abd3db723981bf6&amp;chksm=ceb9e042f9ce6954c6459d7c3f8ac2233d0980827e32f1bb95672225b8e55dff7e646b370f89&amp;scene=27#wechat_redirect\" title=\"\u7528 Python \u81ea\u52a8\u53d1\u5fae\u535a\">\u7528 Python \u81ea\u52a8\u53d1\u5fae\u535a<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/mp.weixin.qq.com\/s?__biz=Mzg2NzYyNjg2Nw==&amp;mid=2247490203&amp;idx=1&amp;sn=3a0b3e956583d91a0eb193eef47cb736&amp;chksm=ceb9e087f9ce699144b2a0256039fc0472d10cf9b74ec4d4fb8fdf5a2ba74fc2f3fe62560593&amp;scene=27#wechat_redirect\" title=\"\u7528 Python \u5f00\u53d1\u4e00\u4e2a todolist\">\u7528 Python \u5f00\u53d1\u4e00\u4e2a todolist<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/mp.weixin.qq.com\/s?__biz=Mzg2NzYyNjg2Nw==&amp;mid=2247490187&amp;idx=1&amp;sn=4a30b5052d3f98ff92c723bba85a05a7&amp;chksm=ceb9e097f9ce6981307a053c0da10dbd52fa0407fead14448bf3c8a6c7869af1c2b7980e1029&amp;scene=27#wechat_redirect\" title=\"\u7528 Python \u5f00\u53d1\u4e00\u4e2a\u77ed\u94fe\u63a5\u751f\u6210\u5668\">\u7528 Python \u5f00\u53d1\u4e00\u4e2a\u77ed\u94fe\u63a5\u751f\u6210\u5668<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/mp.weixin.qq.com\/s?__biz=Mzg2NzYyNjg2Nw==&amp;mid=2247490131&amp;idx=1&amp;sn=70dda5b8e98a30ba8bf7813f7f50d57f&amp;chksm=ceb9e04ff9ce695917777951ced76cdb39c106cf0c2154b36a1fbfd5e5f2c1e1452f7e74077e&amp;scene=27#wechat_redirect\" title=\"\u7528 Python \u5f00\u53d1\u4e00\u4e2a\u50bb\u5c4c\">\u7528 Python \u5f00\u53d1\u4e00\u4e2a\u50bb\u5c4c<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/mp.weixin.qq.com\/s?__biz=Mzg2NzYyNjg2Nw==&amp;mid=2247490299&amp;idx=1&amp;sn=707f81c0fb38eec4aa7bd1472e2c7abc&amp;chksm=ceb9e0e7f9ce69f1c4056a80aedcf87ab634245621417012f275b41da8a6d0b592c39beacbbf&amp;scene=27#wechat_redirect\" title=\"\u7528 Python \u5f00\u53d1\u4e00\u4e2a\u6296\u97f3\u4e0b\u8f7d\u5668\">\u7528 Python \u5f00\u53d1\u4e00\u4e2a\u6296\u97f3\u4e0b\u8f7d\u5668<\/a><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>\u6211\u4eec\u6765\u56de\u987e\u4e00\u4e0b\uff0c\u4f60\u662f\u600e\u4e48\u8fdb\u5165\u8fd9\u4e2a Python \u7684\u5927\u95e8\u7684\u5427\u3002<\/p>\n\n\n\n<p>\u4f60\u8fd8\u8bb0\u5f97\u4e48\uff1f\u4e00\u5f00\u59cb\u6211\u4eec\u5c31\u76f4\u63a5 \u201c\u521a\u201d Python3 \uff0c\u6211\u4eec\u4e0d\u641e Python2 \uff0c\u6211\u4eec\u77e5\u9053\uff0c\u5b98\u65b9\u4e0d\u518d\u5411\u540e\u517c\u5bb9\u7ef4\u62a4 Python2 \u8fd9\u4e2a\u7248\u672c\uff0c\u8d8a\u6765\u8d8a\u591a\u7684\u4eba\u90fd\u8fc1\u79fb\u5230\u4e86 Python3 \u8fd9\u4e2a\u7248\u672c\u4e0a\u3002<\/p>\n\n\n\n<p>\u7d27\u63a5\u7740\uff0c\u6211\u544a\u8bc9\u4e86\u4f60\uff0c\u5728 Python \u5feb\u901f\u5165\u95e8\u7684\u8fd9\u6761\u8def\u4e0a\uff0c\u4f60\u9700\u8981\u638c\u63e1\u7684\u6700\u5c11\u5e76\u4e14\u6700\u91cd\u8981\u7684\u77e5\u8bc6\u70b9\uff0c\u6211\u4e5f\u8ddf\u4f60\u8bf4\u4e86\u5b83\u4eec\u7684\u5177\u4f53\u5185\u5bb9\u4ee5\u53ca\u5982\u4f55\u4f7f\u7528\u3002<\/p>\n\n\n\n<p>\u90a3\u65f6\u5019\u6211\u8ddf\u4f60\u8bf4\u4e86\u8fd9\u4e48\u4e00\u4e2a\u5173\u952e\u8bcd\uff1a\u201c\u5206\u7c7b\u201d\uff0c\u5728\u751f\u6d3b\u6216\u8005\u5de5\u4f5c\u4e2d\uff0c\u5206\u7c7b\u5c24\u4e3a\u91cd\u8981\uff0c\u53ea\u6709\u5c06\u4e8b\u7269\u8fdb\u884c\u5206\u95e8\u522b\u7c7b\uff0c\u624d\u80fd\u6709\u6548\u7684\u5229\u7528\uff0c\u5728\u4f60\u7684\u7f16\u7a0b\u4e2d\uff0c\u4e5f\u662f\u8fd9\u4e48\u4e00\u4e2a\u9053\u7406\uff0c\u6570\u636e\u8981\u5206\u7c7b\uff0c\u8ba1\u7b97\u673a\u624d\u80fd\u6709\u6548\u7684\u53bb\u5b58\u50a8\u8fd9\u4e9b\u6570\u636e\u3002<\/p>\n\n\n\n<p>\u6240\u4ee5\u4f60\u604d\u7136\u5927\u609f\uff1a\u660e\u767d\u4e86\u4e3a\u4ec0\u4e48 Python \u8981\u628a\u6570\u636e\u5212\u5206\u4e3a\uff1aNumbers\u3001bool\u3001String\u3001Tuple\u3001List\u3001Set&#8230;..<\/p>\n\n\n\n<p>\u5728\u53d8\u91cf\u548c\u8d4b\u503c\u8fd9\u4e2a\u6982\u5ff5\u4e0a\uff0c\u6211\u8ddf\u4f60\u8bf4\uff1aPython \u4e2d\u7684\u53d8\u91cf\u53eb\u201c\u540d\u79f0\u201d\uff0c\u8d4b\u503c\u53eb\u201c\u8d34\u6807\u7b7e\u201d\uff0c\u6240\u8c13\u8d4b\u503c\uff0c<strong>\u76f8\u5f53\u4e8e \u201c\u53d8\u91cf\u540d\u79f0\u201d \u8fd9\u4e2a\u6807\u7b7e\u8d34\u5728\u4e86 \u201c\u5bf9\u8c61\u201d \u7684\u8eab\u4e0a\u3002<\/strong><\/p>\n\n\n\n<p>\u5f53\u522b\u4eba\u8fd8\u5728\u7406\u89e3\u4ec0\u4e48\u662f\u53d8\u91cf\u4ec0\u4e48\u662f\u8d4b\u503c\u7684\u65f6\u5019\uff0c\u6211\u4e00\u53e5\u8bdd\u5c31\u7ed9\u4f60\u6574\u660e\u767d\u4e86\uff1a\u6709\u4ed6\u5988\u90a3\u4e48\u590d\u6742\u4e48\uff1f\u4e0d\u5c31\u662f\u628a\u8fd9\u4e2a\u53d8\u91cf\uff08\u6807\u7b7e\uff09\u5f80\u5bf9\u8c61\u8eab\u4e0a\u603c\u3002<\/p>\n\n\n\n<blockquote class=\"wp-block-quote\"><p>a = 1<\/p><cite>a \u8fd9\u4e2a\u6807\u7b7e\u5f80 1 \u8fd9\u4e2a\u6574\u6570\u5bf9\u8c61\u8eab\u4e0a\u8d34<\/cite><\/blockquote>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2019\/08\/Untitled-Diagram.png\" alt=\"\"\/><\/figure><\/div>\n\n\n\n<p>\u63a5\u7740\u6211\u4eec\u5bf9 Python \u4e2d\u5e38\u89c1\u7684\u8bed\u53e5\u8fdb\u884c\u5b66\u4e60\u4f7f\u7528\uff0c\u60f3\u5fc5\u4f60\u73b0\u5728\u5bf9 if\u3001pass\u3001while\u3001for\u3001break\u3001continue\u3001with \u3001for&#8230;else\u3001try&#8230;except&#8230;else&#8230;finally \u8fd9\u4e9b\u8bed\u53e5\u90fd\u4f1a\u4f7f\u7528\u4e86\u5427\u3002<\/p>\n\n\n\n<p>\u4e0d\u8fc7\u5f53\u65f6\u5c0f\u5e05b\u5728\u8ddf\u4f60\u4ecb\u7ecd with \u7684\u539f\u7406\u7684\u65f6\u5019\uff0c\u4f60\u77ac\u95f4\u61f5\u903c\u4e86\uff0c\u6211\u60f3\u5f53\u65f6\u4f60\u7684\u5185\u5fc3 os \u5e94\u8be5\u662f\uff1a\u201c\u6211\u64cd\u554a\uff0c\u8fd9\u4ed6\u5988\u7684\u53c8\u662f\u5bf9\u8c61\u53c8\u662f\u65b9\u6cd5\u7684\u53c8\u662f\u8c03\u7528\u987a\u5e8f\u7684\uff0c\u8fd9\u4ed6\u5988\u5230\u5e95\u662f\u4ec0\u4e48\u73a9\u610f\uff1f\u201d <\/p>\n\n\n\n<p>\u786e\u5b9e\uff0c\u6211\u4e5f\u53d1\u73b0\u4e86\uff0cwith \u653e\u5728\u90a3\u91cc\u8bb2\uff0c\u8de8\u5ea6\u6709\u70b9\u5927\u4e86\uff0c\u53ca\u65f6\u505a\u4e86\u8c03\u6574\uff0c\u8fd9\u4e2a\u5e94\u8be5\u653e\u5728\u4e0b\u4e00\u9636\u6bb5\u8bb2\u7684\u624d\u662f\u3002<\/p>\n\n\n\n<p>\u4e0d\u8fc7\uff0c\u73b0\u5728\u4f60\u56de\u8fc7\u5934\u53bb\u770b\u90a3\u7bc7\u6587\u7ae0\uff0c\u6211\u60f3\u4f60\u5e94\u8be5\u80fd\u5f88\u597d\u7684\u7406\u89e3\u4e86\uff0c\u6bd5\u7adf\u73b0\u5728\u7684\u4f60\uff0c\u53ef\u662f\u8fdb\u5165\u4e86 Python \u8fd9\u4e2a\u5927\u95e8\u4e86\u554a\u3002<\/p>\n\n\n\n<p>\u63a5\u7740\uff0c\u6211\u4eec\u5b66\u4e60\u4e86 Python \u4e2d\u5e38\u7528\u5230\u7684\u6570\u636e\u7ed3\u6784\u4ee5\u53ca\u7528\u6cd5\uff0c\u90a3\u4f1a\u5728\u8bb2\u5217\u8868\u7684\u65f6\u5019\uff0c\u54b1\u4eec\u8fd8\u4e13\u95e8\u6574\u6765\u4e86\u4e2a\u6b4c\u5355\uff0c\u901a\u8fc7\u5b83\uff0c\u6211\u4eec\u5c31\u5f88\u5bb9\u6613\u7406\u89e3\u4ec0\u4e48\u662f\u7d22\u5f15\uff0c\u4ee5\u53ca\u5982\u4f55\u5bf9\u5217\u8868\u4e2d\u7684\u6570\u636e\u8fdb\u884c\u64cd\u4f5c\u3002<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2019\/09\/1-2.png\" alt=\"\"\/><\/figure><\/div>\n\n\n\n<p>\u63a5\u7740\u6211\u4eec\u4f7f\u7528\u5143\u7ec4\u548c\u5217\u8868\u505a\u4e86\u6bd4\u8f83\uff0c\u6211\u4eec\u77e5\u9053\u4e86\u4e3a\u4ec0\u4e48\u5143\u7ec4\u662f\u4e0d\u53ef\u53d8\u7c7b\u578b\uff0c\u800c\u5217\u8868\u53ef\u53d8\uff0c\u6211\u4eec\u77e5\u9053\u4e86\u5b83\u4eec\u5404\u81ea\u7684\u5e94\u7528\u573a\u666f\u3002\u5f53\u7136\uff0c\u6211\u4eec\u5bf9\u5b57\u5178\u548c\u96c6\u5408\u4e5f\u6709\u4e86\u4e00\u5b9a\u7684\u8ba4\u8bc6\uff0c\u6211\u4eec\u77e5\u9053\u4e86\u51fd\u6570\u952e\u503c\u5bf9\u4e2d\u7684\u53ef\u53d8\u4e0e\u4e0d\u53ef\u53d8\uff0c\u77e5\u9053\u4e86\u96c6\u5408\u7684\u65e0\u5e8f\u3001\u4e0d\u53ef\u91cd\u590d\u7b49\u5e38\u7528\u64cd\u4f5c\u3002<\/p>\n\n\n\n<p>\u5230\u8fd9\u91cc\uff0c\u4f60\u5f00\u59cb\u6162\u6162\u9002\u5e94&#8230;\u6162\u6162\u5bf9 Python \u6709\u4e86\u4e00\u5b9a\u7684\u8ba4\u77e5\u3002<\/p>\n\n\n\n<p>\u6240\u4ee5\u6211\u4eec\u63a5\u4e0b\u6765\u5c31\u5b66\u4e60\u4e86 Python \u4e2d\u7684\u51fd\u6570\u4f7f\u7528\uff0c\u4f60\u77e5\u9053\u4e86\u4ec0\u4e48\u53eb\u505a\u5185\u7f6e\u51fd\u6570\uff0c\u4e5f\u4f1a\u81ea\u5b9a\u4e49\u51fd\u6570\u4e86\uff0c\u4e5f\u77e5\u9053\u5982\u4f55\u5728\u51fd\u6570\u4e2d\u5f15\u7528\u5c40\u90e8\u53d8\u91cf\u3001\u5168\u5c40\u53d8\u91cf\u3001\u51fd\u6570\u5185\u5916\u7684\u53d8\u91cf\u3002\u4ee5\u53ca\u5982\u4f55\u4f7f\u7528\u51fd\u6570\u4e2d\u7684\u53c2\u6570\uff0c\u4f60\u8fd8\u8bb0\u5f97\u5728\u5b9a\u4e49\u53c2\u6570\u7684\u65f6\u5019\uff0c\u5728\u53c2\u6570\u524d\u9762\u6dfb\u52a0 * \u548c ** \u7684\u533a\u522b\u5427\u3002<\/p>\n\n\n\n<p>\u5728\u7f16\u7a0b\u7684\u8fc7\u7a0b\u4e2d\uff0c\u6211\u4eec\u5e38\u5e38\u4f1a\u4f7f\u7528\u5230\u5b57\u7b26\u4e32\uff0c\u5728 Python \u4e2d\uff0cString \u662f\u4e00\u4e2a\u4e0d\u53ef\u53d8\u7c7b\u578b\uff0c\u6211\u4eec\u90a3\u4f1a\u5feb\u901f\u8ba4\u8bc6\u4e86\u5b83\uff0c\u77e5\u9053\u4e86\u5b83\u662f\u4e00\u79cd\u6570\u636e\u7ed3\u6784\uff0c\u77e5\u9053\u4e86\u5982\u4f55\u4f7f\u7528\u539f\u59cb\u5b57\u7b26\u4e32\u4ee5\u53ca\u5b83\u7684\u5e38\u7528\u64cd\u4f5c\u3002<\/p>\n\n\n\n<p>\u56e0\u4e3a Python \u662f\u4e00\u95e8\u9762\u5411\u5bf9\u8c61\u7684\u7f16\u7a0b\u8bed\u8a00\uff0c\u6240\u4ee5\u6211\u4eec\u80af\u5b9a\u9700\u8981\u4e86\u89e3\u4ec0\u4e48\u662f\u9762\u5411\u5bf9\u8c61\u7f16\u7a0b\u601d\u60f3\uff0c\u8fd8\u8bb0\u5f97\u6211\u8ddf\u4f60\u8bf4\u7684 \u201c\u5bf9\u8c61\u5c31\u662f\u4e00\u4e2a\u89d2\u8272\u201d \u4e48\uff1f\u4f60\u4e0d\u9700\u8981\u4e86\u89e3\u4ed6\u7684\u8eab\u4e16\uff0c\u4f60\u4e0d\u9700\u8981\u4e86\u89e3\u4ed6\u4e4b\u524d\u7684\u5b66\u4e60\u8fc7\u7a0b\uff0c\u4f60\u53ea\u9700\u8981\u77e5\u9053\uff1a\u4ed6\u662f\u5e72\u561b\u7684\uff0c\u4ee5\u53ca\u4ed6\u80fd\u7ed9\u4f60\u63d0\u4f9b\u4ec0\u4e48\u6837\u7684\u670d\u52a1\uff0c\u5f53\u4f60\u9700\u8981\u76f8\u5173\u7684\u670d\u52a1\u65f6\uff0c\u76f4\u63a5\u627e\u4ed6\u5c31\u884c\u4e86\u3002<\/p>\n\n\n\n<p>\u4e86\u89e3\u4e86\u4ec0\u4e48\u662f\u9762\u5411\u5bf9\u8c61\u4e4b\u540e\uff0c\u6211\u4eec\u5c31\u4f7f\u7528 Python \u6765\u64cd\u4f5c\u4e86\uff0c\u4f60\u77e5\u9053\u4e86\u5982\u4f55\u4f7f\u7528 Python \u53bb\u521b\u5efa\u4e00\u4e2a\u7c7b\uff0c\u77e5\u9053\u4e86\u5982\u4f55\u53bb\u5b9e\u4f8b\u5316\u5b83\u3002\u4f60\u66f4\u52a0\u77e5\u9053 \u201c\u7c7b\u201d \u548c\u5b9e\u4f8b\u5316\u51fa\u6765\u7684\u5bf9\u8c61\u4e4b\u95f4\u7684\u533a\u522b\u3002\u8fd8\u8bb0\u5f97\u6211\u8bf4\u7684\uff1a\u201c\u7c7b\uff0c\u5c31\u662f\u4e00\u4e2a\u7ed3\u6784\u201d \u4e48\uff1f<\/p>\n\n\n\n<p>\u7136\u540e\u6211\u4eec\u53c8\u5bf9\u9762\u5411\u5bf9\u8c61\u8fdb\u884c\u66f4\u8fdb\u4e00\u6b65\u7684\u64cd\u4f5c\uff0c\u6bd4\u5982\u5982\u4f55\u7ee7\u627f\uff0c\u65b9\u6cd5\u91cd\u5199\uff0c\u7236\u7c7b\u548c\u5b50\u7c7b\u4e4b\u95f4\u7684\u5173\u7cfb\uff0c\u90a3\u4f1a\u6211\u8bf4\u5230\u4e86 super \u7684\u4f7f\u7528\uff0c\u7136\u540e\u4f60\u53c8\u61f5\u903c\u4e86\uff0c\u7136\u540e\u4f60\u5728\u300a\u597d\u597d\u7406\u89e3 Python \u9762\u5411\u5bf9\u8c61\u4e2d\u7684\u591a\u7ee7\u627f\u548csuper\u300b\u8fd9\u7bc7\u4e2d\u5f97\u5230\u4e86\u89e3\u60d1\uff0c\u90a3\u4e2a\u7a81\u7136\u660e\u767d\u7684\u611f\u89c9\uff0c\u662f\u4e0d\u662f\u5f88\u723d\uff1f\u8bf7\u8bb0\u4f4f\u8fd9\u79cd\u611f\u89c9\u3002<\/p>\n\n\n\n<p>\u5f53\u7136\u4e86\uff0c\u5199\u4ee3\u7801\u54ea\u6709\u4e0d\u51fa\u73b0\u5f02\u5e38\u9519\u8bef\u7684\u60c5\u51b5\uff0c\u6240\u4ee5\u6211\u7ed9\u4f60\u8bf4\u4e86\u5982\u4f55\u6355\u83b7\u5f02\u5e38\uff0c\u9047\u5230\u5f02\u5e38\u5982\u4f55\u5904\u7406\u4ee5\u53ca\u5982\u4f55\u81ea\u5b9a\u4e49\u5f02\u5e38\uff0c\u8fd8\u8ddf\u4f60\u8bf4\u4e86\u5982\u4f55\u66f4\u597d\u7684\u4f7f\u7528 print \u6765\u8c03\u8bd5\u4f60\u7684\u4ee3\u7801\u3002<\/p>\n\n\n\n<p>\u5728\u540e\u9762\uff0c\u6211\u8ddf\u4f60\u8bf4\u4e86\u4ee3\u7801\u7684\u6a21\u5757\u5316\uff0c\u8ba9\u4ee3\u7801\u66f4\u7b80\u6d01\u597d\u770b\uff0c\u4ee5\u53ca\u5982\u4f55\u53bb\u4f7f\u7528\u7b2c\u4e09\u65b9\u6a21\u5757\uff0c\u5982\u4f55\u5728\u5404\u79cd Python \u7248\u672c\u4e2d\u81ea\u7531\u5207\u6362\uff0c\u5982\u4f55\u53bb\u521b\u5efa\u865a\u62df\u574f\u5883\uff0c\u5feb\u901f\u751f\u6210\u548c\u5b89\u88c5\u7b2c\u4e09\u65b9\u6a21\u5757\u3002\u8fd8\u6709\u5982\u4f55\u66f4\u597d\u7684\u53bb\u5199\u6ce8\u91ca\u4ee5\u53ca pip \u7684\u5404\u79cd\u9a9a\u64cd\u4f5c\uff0c\u90fd\u8fd8\u8bb0\u5f97\u5427\uff1f<\/p>\n\n\n\n<p>\u4ee5\u4e0a\uff0c\u662f\u6211\u4eec\u8fd9\u4e2a\uff08\u7b2c\u4e8c\u4e2a\uff09\u9636\u6bb5\u5b66\u4e60\u5230\u7684\u5185\u5bb9\u3002<\/p>\n\n\n\n<p>\u63a5\u4e0b\u6765\uff0c\u518d\u6765\u8bf4\u8bf4\uff0c\u54b1\u4eec\u8fd9\u4e2a VIP \u793e\u7fa4\uff0c\u5b58\u5728\u7684\u4e9b\u8bb8\u95ee\u9898\u3002<\/p>\n\n\n\n<p>\u6211\u4e4b\u524d\u8bf4\u8fc7\uff0c\u8bc4\u8bba\u533a\u662f\u6211\u4eec\u4ea4\u6d41\u7684\u5730\u65b9\uff0c\u5982\u679c\u4f60\u770b\u6211\u7684\u6587\u7ae0\u6559\u7a0b\u7684\u8fc7\u7a0b\u4e2d\uff0c\u81ea\u5df1\u6709\u56f0\u60d1\u7684\u5730\u65b9\uff0c\u4f60\u53ef\u4ee5\u5728\u8bc4\u8bba\u4e0b\u65b9\u7559\u8a00\uff0c\u5927\u5bb6\u4e00\u8d77\u4ea4\u6d41\uff0c\u6211\u4e5f\u4f1a\u8fdb\u884c\u7b54\u7591\u3002\u4e0d\u8fc7\u6211\u770b\u5230\u5f88\u591a\u4eba\u770b\u5b8c\u4e4b\u540e\u5c31\u7559\u4e86\u4e24\u5b57\uff1a\u201c\u6253\u5361\u201d\u3002<\/p>\n\n\n\n<p>\u8bf4\u5b9e\u8bdd\uff0c\u8fd9\u4e00\u70b9\u5c41\u7528\u6ca1\u6709\uff0c\u6211\u8bf4\u4e86\uff0c\u770b\u4e00\u7bc7\u6ca1\u4ec0\u4e48\u5375\u7528\uff0c\u8981\u53bb\u6267\u884c\uff0c\u8981\u53bb\u89e3\u51b3\u95ee\u9898\uff0c\u8981\u53bb\u603b\u7ed3\uff0c\u8fd9\u91cc\u53c8\u4e0d\u662f\u8981\u4f60\u4eec\u7b7e\u5230\uff0c\u7559\u4e2a \u201c\u6253\u5361\u201d \u771f\u6ca1\u5fc5\u8981\uff0c\u8981\u4e48\u63d0\u95ee\uff0c\u8981\u4e48\u4ea4\u6d41\uff0c\u522b\u6d6a\u8d39\u8d44\u6e90\u3002<\/p>\n\n\n\n<p>\u6709\u65f6\u5019\u6211\u53ef\u80fd\u6765\u4e0d\u53ca\u770b\u5230\u4f60\u7684\u95ee\u9898\uff0c\u4f60\u53ef\u4ee5\u53d1\u90ae\u7bb1\u7ed9\u6211\uff0c\u6211\u4e00\u76f4\u89c9\u5f97\uff0c\u7528\u90ae\u7bb1\u4ea4\u6d41\u662f\u4e00\u79cd\u5f88\u597d\u7684\u65b9\u5f0f\uff0c\u5199\u90ae\u7bb1\u5c31\u50cf\u5199\u4fe1\u4e00\u6837\uff0c\u4f60\u9047\u5230\u4e86\u4ec0\u4e48\u95ee\u9898\uff0c\u5c1d\u8bd5\u505a\u4e86\u4ec0\u4e48\u65b9\u5f0f\u53bb\u89e3\u51b3\uff0c\u6709\u4ec0\u4e48\u56f0\u60d1\uff0c\u524d\u56e0\u540e\u679c\u5199\u597d\uff08\u6709\u65f6\u5019\u5199\u7740\u5199\u7740\u81ea\u5df1\u5c31\u7ed9\u89e3\u51b3\u4e86\uff09\uff0c\u8fd9\u6837\u5f97\u5230\u7684\u90ae\u4ef6\u56de\u590d\uff0c\u8d28\u91cf\u662f\u4f1a\u5f88\u9ad8\u7684\u3002<\/p>\n\n\n\n<p>\u518d\u8bf4\u54b1\u4eec\u7684 GitHub \uff0c\u786e\u5b9e\u6709\u4eba fork \u4e86\uff0c\u6709\u4e9b\u4eba\u63d0\u4ea4\u4e86\u4ee3\u7801\u548c\u7b14\u8bb0\uff0c\u4e5f\u6709\u4eba\u642d\u5efa\u4e86\u535a\u5ba2\u4e86\uff0c\u6211\u4e5f\u90fd\u770b\u4e86\uff0c\u6709\u6ca1\u6709\u884c\u52a8\uff0c\u6211\u90fd\u770b\u5f97\u5230\uff0c\u4e0d\u8fc7\u6211\u60f3\u8bf4\u7684\u8fd8\u662f\u90a3\u53e5\u8bdd\uff0c\u884c\u52a8\u4e0d\u884c\u52a8\u662f\u4f60\u7684\u4e8b\u60c5\u3002<\/p>\n\n\n\n<p>\u6211\u662f\u7ad9\u5728\u4f60\u7684\u89d2\u5ea6\uff0c\u5199\u7684\u6559\u7a0b\uff0c\u6211\u5e38\u5e38\u8bf4\uff1a\u201c\u4f60\u8981\u591a\u770b\u51e0\u904d\uff0c\u591a\u7ec3\u51e0\u904d\u201d\uff0c\u522b\u5acc\u6211\u5520\u53e8\uff0c\u771f\u7684\uff0c\u6bcf\u4e2a\u4eba\u90fd\u662f\u8fd9\u4e48\u8fc7\u6765\u7684\uff0c\u6ca1\u4ec0\u4e48\u6377\u5f84\u3002<\/p>\n\n\n\n<p>\u4e0d\u7ba1\u600e\u4e48\u6837\uff0c\u5230\u8fd9\u91cc\uff0c\u6211\u5c31\u8ba4\u4e3a\u4f60\u5df2\u7ecf\u628a\u6240\u6709\u6559\u7a0b\u90fd\u770b\u4e86\uff0c\u90fd\u7ec3\u4e86\uff0c\u606d\u559c\u4f60\u638c\u63e1\u4e86 Python \u7684\u57fa\u7840\u5185\u5bb9\uff0c\u8fdb\u5165\u4e86 Python \u7684\u5927\u95e8\uff0c\u6240\u4ee5\u6211\u8981\u9001\u4f60\u4e2a\u798f\u5229\uff0c\u4e5f\u5c31\u662f\u6211\u81ea\u5df1\u505a\u7684 Python3 \u57fa\u7840\u77e5\u8bc6\u4f53\u7cfb\u601d\u7ef4\u5bfc\u56fe\uff0c\u5728\u5916\u9762\u6211\u53ef\u662f\u6536\u8d39\u7684\u54e6\uff0c\u5728\u8fd9\u91cc\u5c31\u514d\u8d39\u9001\u7ed9\u4f60\u4e86\uff0c\u5e0c\u671b\u4f60\u80fd\u624e\u5b9e\u4e00\u4e0b\u57fa\u7840\uff0c\u63a5\u7740\u8ddf\u6211\u8fce\u63a5\u4e0b\u4e00\u4e2a\u9636\u6bb5\u3002<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" width=\"830\" height=\"583\" src=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2019\/10\/Screenshot-from-2019-10-31-18-02-42.png\" alt=\"\" class=\"wp-image-1049\" srcset=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2019\/10\/Screenshot-from-2019-10-31-18-02-42.png 830w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2019\/10\/Screenshot-from-2019-10-31-18-02-42-300x211.png 300w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2019\/10\/Screenshot-from-2019-10-31-18-02-42-768x539.png 768w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2019\/10\/Screenshot-from-2019-10-31-18-02-42-769x540.png 769w\" sizes=\"(max-width: 830px) 100vw, 830px\" \/><\/figure><\/div>\n\n\n\n<p>\u83b7\u53d6\u65b9\u5f0f\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%3D1046\">\u767b\u9646<\/a> \u540e\u624d\u53ef\u4ee5\u6d4f\u89c8<\/div>\u8bf7\u4e0d\u8981\u5916\u4f20\uff01<\/p>\n\n\n\n<p>\u6700\u540e\u7684\u6700\u540e\uff0c\u4f60\u4e5f\u6765\u603b\u7ed3\u4e00\u4e0b\u8fd9\u4e2a\u9636\u6bb5\u5427\uff0c\u63d0\u4ea4\u5230\u54b1\u4eec\u7684 GitHub \u4e0a\u9762\u53bb\uff0c\u6211\u4f1a\u770b\u7684\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u73b0\u5728\u7684\u4f60\uff0c\u5df2\u7ecf\u8fdb\u5165\u4e86 Python \u7684\u5927\u95e8\u4e86\uff0c\u5728\u4f60\u8d70\u7684\u8fd9\u6761\u8def\u4e0a\uff0c\u6211\u60f3\u4f60\u6bd4\u5728\u5916\u9762\u7684\u4eba\uff08\u975e VIP \u7684\u4eba\uff09\u8d70\u7684\u66f4\u7b80\u5355\u3001\u7c97\u66b4\u3001\u6709\u6548\u4e14\u76f4\u63a5\u3002 \u73b0\u5728\uff0c\u6211\u7ed9\u4f60\u4e00\u4e9b\u5c0f\u9879\u76ee\uff0c\u6765\u64cd\u7ec3\u4e00\u4e0b\u4f60\u5b66\u5230\u7684\u4e1c\u897f\uff0c\u4e00\u5b9a\u8981\u81ea\u5df1\u52a8\u624b\u53bb\u5b9e\u73b0\u54e6\uff1a \u7528 Python \u5199\u4e00\u4e2a\u8d2a\u5403\u86c7\u6e38\u620f \u7528 P&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[18],"tags":[19,17],"_links":{"self":[{"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/posts\/1046"}],"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=1046"}],"version-history":[{"count":5,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/posts\/1046\/revisions"}],"predecessor-version":[{"id":6956,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/posts\/1046\/revisions\/6956"}],"wp:attachment":[{"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1046"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1046"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1046"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}