{"id":139343,"date":"2019-04-02T08:06:23","date_gmt":"2019-04-02T00:06:23","guid":{"rendered":"https:\/\/gulass.cn\/?p=139343"},"modified":"2019-03-12T10:07:52","modified_gmt":"2019-03-12T02:07:52","slug":"python-learns-seven-steps","status":"publish","type":"post","link":"https:\/\/gulass.cn\/python-learns-seven-steps.html","title":{"rendered":"Python\u5b66\u4e60\u4e03\u6b65\u8d70"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\n\u5728\u5468\u4e94\u7684\u4e0b\u5348\u4e09\u70b9\u949f\uff08\u4e3a\u4ec0\u4e48\u662f\u8fd9\u4e2a\u65f6\u95f4\uff1f\u56e0\u4e3a\u4e8b\u60c5\u603b\u4f1a\u5728\u5468\u4e94\u4e0b\u5348\u4e09\u70b9\u949f\u53d1\u751f\uff09\uff0c\u4f60\u6536\u5230\u4e00\u6761\u901a\u77e5\uff0c\u5ba2\u6237\u53d1\u73b0\u4f60\u7684\u8f6f\u4ef6\u51fa\u73b0\u4e00\u4e2a\u9519\u8bef\u3002\u5728\u6709\u4e86\u521d\u6b65\u7684\u6000\u7591\u540e\uff0c\u4f60\u8054\u7cfb\u8fd0\u7ef4\uff0c\u67e5\u770b\u4f60\u7684\u8f6f\u4ef6\u65e5\u5fd7\u4ee5\u4e86\u89e3\u53d1\u751f\u4e86\u4ec0\u4e48\uff0c\u56e0\u4e3a\u4f60\u8bb0\u5f97\u6536\u5230\u8fc7\u65e5\u5fd7\u5df2\u7ecf\u642c\u5bb6\u4e86\u7684\u901a\u77e5\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

\u7ed3\u679c\u8fd9\u4e9b\u65e5\u5fd7\u88ab\u8f6c\u79fb\u5230\u4e86\u4f60\u83b7\u53d6\u4e0d\u5230\u7684\u5730\u65b9\uff0c\u4f46\u5b83\u4eec\u6b63\u5728\u5bfc\u5165\u5230\u4e00\u4e2a\u7f51\u9875\u5e94\u7528\u4e2d\u2014\u2014\u6240\u4ee5\u5230\u65f6\u5019\u4f60\u53ef\u4ee5\u7528\u8fd9\u4e2a\u6f02\u4eae\u7684\u5e94\u7528\u6765\u68c0\u7d22\u65e5\u5fd7\uff0c\u4f46\u662f\uff0c\u8fd9\u4e2a\u5e94\u7528\u73b0\u5728\u8fd8\u6ca1\u5b8c\u6210\u3002\u8fd9\u4e2a\u5e94\u7528\u9884\u8ba1\u4f1a\u5728\u51e0\u5929\u5185\u5b8c\u6210\u3002\u6211\u77e5\u9053\uff0c\u4f60\u89c9\u5f97\u8fd9\u5b8c\u5168\u4e0d\u5207\u5b9e\u9645\u3002\u7136\u800c\u5e76\u4e0d\u662f\uff0c\u65e5\u5fd7\u6216\u8005\u65e5\u5fd7\u6d88\u606f\u4f3c\u4e4e\u7ecf\u5e38\u5728\u9519\u8bef\u7684\u65f6\u95f4\u6d88\u5931\u4e0d\u89c1\u3002\u5728\u6211\u4eec\u5f00\u59cb\u67e5\u9519\u524d\uff0c\u4e00\u4e2a\u5fe0\u544a\uff1a\u7ecf\u5e38\u68c0\u67e5\u4f60\u7684\u65e5\u5fd7\u4ee5\u786e\u4fdd\u5b83\u4eec\u8fd8\u5728\u4f60\u8ba4\u4e3a\u5b83\u4eec\u5e94\u8be5\u5728\u7684\u5730\u65b9\uff0c\u5e76\u8bb0\u5f55\u4f60\u8ba4\u4e3a\u5b83\u4eec\u5e94\u8be5\u8bb0\u7684\u4e1c\u897f\u3002\u5f53\u4f60\u4e0d\u6ce8\u610f\u7684\u65f6\u5019\uff0c\u8fd9\u4e9b\u4e1c\u897f\u5f80\u5f80\u4f1a\u53d1\u751f\u4ee4\u4eba\u60ca\u8bb6\u7684\u53d8\u5316\u3002<\/p>\n

\u597d\u7684\uff0c\u4f60\u627e\u5230\u4e86\u65e5\u5fd7\u6216\u8005\u5c1d\u8bd5\u4e86\u547c\u53eb\u8fd0\u7ef4\u4eba\u5458\uff0c\u800c\u5ba2\u6237\u786e\u5b9e\u53d1\u73b0\u4e86\u4e00\u4e2a\u9519\u8bef\u3002\u751a\u81f3\u4f60\u53ef\u80fd\u8ba4\u4e3a\u4f60\u5df2\u7ecf\u77e5\u9053\u9519\u8bef\u5728\u54ea\u513f\u3002<\/p>\n

\u4f60\u7acb\u5373\u6253\u5f00\u4f60\u8ba4\u4e3a\u53ef\u80fd\u6709\u95ee\u9898\u7684\u6587\u4ef6\u5e76\u5f00\u59cb\u67e5\u9519\u3002<\/p>\n

1\u3001\u5148\u4e0d\u8981\u78b0\u4f60\u7684\u4ee3\u7801<\/strong><\/div>\n

\u9605\u8bfb\u4ee3\u7801\uff0c\u4f60\u751a\u81f3\u53ef\u80fd\u4f1a\u60f3\u5230\u8be5\u9605\u8bfb\u54ea\u4e9b\u90e8\u5206\u3002\u4f46\u662f\u5728\u5f00\u59cb\u641e\u4e71\u4f60\u7684\u4ee3\u7801\u524d\uff0c\u8bf7\u91cd\u73b0\u5bfc\u81f4\u9519\u8bef\u7684\u8c03\u7528\u5e76\u628a\u5b83\u53d8\u6210\u4e00\u4e2a\u6d4b\u8bd5\u3002\u8fd9\u5c06\u662f\u4e00\u4e2a\u96c6\u6210\u6d4b\u8bd5\uff0c\u56e0\u4e3a\u4f60\u53ef\u80fd\u8fd8\u6709\u5176\u4ed6\u7591\u95ee\uff0c\u76ee\u524d\u4f60\u8fd8\u4e0d\u80fd\u51c6\u786e\u5730\u77e5\u9053\u95ee\u9898\u5728\u54ea\u513f\u3002<\/p>\n

\u786e\u4fdd\u8fd9\u4e2a\u6d4b\u8bd5\u7ed3\u679c\u662f\u5931\u8d25\u7684\u3002\u8fd9\u5f88\u91cd\u8981\uff0c\u56e0\u4e3a\u6709\u65f6\u4f60\u7684\u6d4b\u8bd5\u4e0d\u80fd\u91cd\u73b0\u5931\u8d25\u7684\u8c03\u7528\uff0c\u5c24\u5176\u662f\u4f60\u4f7f\u7528\u4e86\u53ef\u4ee5\u6df7\u6dc6\u6d4b\u8bd5\u7684 web \u6216\u8005\u5176\u4ed6\u6846\u67b6\u3002\u5f88\u591a\u4e1c\u897f\u53ef\u80fd\u88ab\u5b58\u50a8\u5728\u53d8\u91cf\u4e2d\uff0c\u4f46\u9057\u61be\u7684\u662f\uff0c\u53ea\u901a\u8fc7\u89c2\u5bdf\u6d4b\u8bd5\uff0c\u4f60\u5728\u6d4b\u8bd5\u91cc\u8c03\u7528\u7684\u4e1c\u897f\u5e76\u4e0d\u603b\u662f\u660e\u663e\u53ef\u89c1\u7684\u3002\u5f53\u6211\u5c1d\u8bd5\u7740\u91cd\u73b0\u8fd9\u4e2a\u5931\u8d25\u7684\u8c03\u7528\u65f6\uff0c\u6211\u5e76\u4e0d\u662f\u8bf4\u6211\u8981\u521b\u5efa\u4e00\u4e2a\u53ef\u4ee5\u901a\u8fc7\u7684\u6d4b\u8bd5\uff0c\u4f46\u662f\uff0c\u597d\u5427\uff0c\u6211\u786e\u5b9e\u662f\u521b\u5efa\u4e86\u4e00\u4e2a\u6d4b\u8bd5\uff0c\u4f46\u6211\u4e0d\u8ba4\u4e3a\u8fd9\u7279\u522b\u4e0d\u5bfb\u5e38\u3002\u4ece\u81ea\u5df1\u7684\u9519\u8bef\u4e2d\u5438\u53d6\u6559\u8bad\u3002<\/p>\n

2\u3001\u7f16\u5199\u9519\u8bef\u7684\u6d4b\u8bd5<\/strong><\/div>\n

\u73b0\u5728\uff0c\u4f60\u6709\u4e86\u4e00\u4e2a\u5931\u8d25\u7684\u6d4b\u8bd5\uff0c\u6216\u8005\u53ef\u80fd\u662f\u4e00\u4e2a\u5e26\u6709\u9519\u8bef\u7684\u6d4b\u8bd5\uff0c\u90a3\u4e48\u662f\u65f6\u5019\u89e3\u51b3\u95ee\u9898\u4e86\u3002\u4f46\u662f\u5728\u4f60\u5f00\u5e72\u4e4b\u524d\uff0c\u8ba9\u6211\u4eec\u5148\u68c0\u67e5\u4e0b\u8c03\u7528\u6808\uff0c\u56e0\u4e3a\u8fd9\u6837\u53ef\u4ee5\u66f4\u8f7b\u677e\u5730\u89e3\u51b3\u95ee\u9898\u3002<\/p>\n

\u8c03\u7528\u6808\u5305\u62ec\u4f60\u5df2\u7ecf\u542f\u52a8\u4f46\u5c1a\u672a\u5b8c\u6210\u5730\u6240\u6709\u4efb\u52a1\u3002\u56e0\u6b64\uff0c\u6bd4\u5982\u4f60\u6b63\u5728\u70e4\u86cb\u7cd5\u5e76\u51c6\u5907\u5f80\u9762\u7cca\u91cc\u52a0\u9762\u7c89\uff0c\u90a3\u4f60\u7684\u8c03\u7528\u6808\u5c06\u662f\uff1a<\/p>\n

\u505a\u86cb\u7cd5\r\n\u6253\u9762\u7cca\r\n\u52a0\u9762\u7c89\r\n<\/pre>\n

\u4f60\u5df2\u7ecf\u5f00\u59cb\u505a\u86cb\u7cd5\uff0c\u5f00\u59cb\u6253\u9762\u7cca\uff0c\u800c\u4f60\u73b0\u5728\u6b63\u5728\u52a0\u9762\u7c89\u3002\u5f80\u9505\u5e95\u62b9\u6cb9\u4e0d\u5728\u8fd9\u4e2a\u5217\u8868\u4e2d\uff0c\u56e0\u4e3a\u4f60\u5df2\u7ecf\u5b8c\u6210\u4e86\uff0c\u800c\u505a\u7cd6\u971c\u4e0d\u5728\u8fd9\u4e2a\u5217\u8868\u4e0a\u56e0\u4e3a\u4f60\u8fd8\u6ca1\u5f00\u59cb\u505a\u3002<\/p>\n

\u5982\u679c\u4f60\u5bf9\u8c03\u7528\u6808\u4e0d\u6e05\u695a\uff0c\u6211\u5f3a\u70c8\u5efa\u8bae\u4f60\u4f7f\u7528 Python Tutor\uff0c\u5b83\u80fd\u5e2e\u4f60\u5728\u6267\u884c\u4ee3\u7801\u65f6\u89c2\u5bdf\u8c03\u7528\u6808\u3002<\/p>\n

\u73b0\u5728\uff0c\u5982\u679c\u4f60\u7684 Python \u7a0b\u5e8f\u51fa\u73b0\u4e86\u9519\u8bef\uff0c Python \u89e3\u91ca\u5668\u4f1a\u5e2e\u4f60\u6253\u5370\u51fa\u5f53\u524d\u8c03\u7528\u6808\u3002\u8fd9\u610f\u5473\u7740\u65e0\u8bba\u90a3\u4e00\u65f6\u523b\u7a0b\u5e8f\u5728\u505a\u4ec0\u4e48\uff0c\u5f88\u660e\u663e\u9519\u8bef\u53d1\u751f\u5728\u8c03\u7528\u6808\u7684\u5e95\u90e8\u3002<\/p>\n

3\u3001\u59cb\u7ec8\u5148\u68c0\u67e5\u8c03\u7528\u6808\u5e95\u90e8<\/strong><\/div>\n

\u5728\u6808\u5e95\u4f60\u4e0d\u4ec5\u80fd\u770b\u5230\u53d1\u751f\u4e86\u54ea\u4e2a\u9519\u8bef\uff0c\u800c\u4e14\u901a\u5e38\u53ef\u4ee5\u5728\u8c03\u7528\u6808\u7684\u6700\u540e\u4e00\u884c\u53d1\u73b0\u95ee\u9898\u3002\u5982\u679c\u6808\u5e95\u5bf9\u4f60\u6ca1\u6709\u5e2e\u52a9\uff0c\u800c\u4f60\u7684\u4ee3\u7801\u8fd8\u6ca1\u6709\u7ecf\u8fc7\u4ee3\u7801\u5206\u6790\uff0c\u90a3\u4e48\u4f7f\u7528\u4ee3\u7801\u5206\u6790\u662f\u975e\u5e38\u6709\u7528\u7684\u3002\u6211\u63a8\u8350 pylint \u6216\u8005 flake8\u3002\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u5b83\u4f1a\u6307\u51fa\u6211\u4e00\u76f4\u5ffd\u7565\u7684\u9519\u8bef\u7684\u5730\u65b9\u3002<\/p>\n

\u5982\u679c\u9519\u8bef\u770b\u8d77\u6765\u5f88\u8ff7\u60d1\uff0c\u4f60\u4e0b\u4e00\u6b65\u884c\u52a8\u53ef\u80fd\u662f\u7528 Google \u641c\u7d22\u5b83\u3002\u5982\u679c\u4f60\u641c\u7d22\u7684\u5185\u5bb9\u4e0d\u5305\u542b\u4f60\u7684\u4ee3\u7801\u7684\u76f8\u5173\u4fe1\u606f\uff0c\u5982\u53d8\u91cf\u540d\u3001\u6587\u4ef6\u7b49\uff0c\u90a3\u4f60\u5c06\u83b7\u5f97\u66f4\u597d\u7684\u641c\u7d22\u7ed3\u679c\u3002\u5982\u679c\u4f60\u4f7f\u7528\u7684\u662f Python 3\uff08\u4f60\u5e94\u8be5\u4f7f\u7528\u5b83\uff09\uff0c\u90a3\u4e48\u641c\u7d22\u5185\u5bb9\u5305\u542b Python 3 \u662f\u6709\u5e2e\u52a9\u7684\uff0c\u5426\u5219 Python 2 \u7684\u89e3\u51b3\u65b9\u6848\u5f80\u5f80\u4f1a\u5360\u636e\u5927\u591a\u6570\u3002<\/p>\n

\u5f88\u4e45\u4ee5\u524d\uff0c\u5f00\u53d1\u8005\u9700\u8981\u5728\u6ca1\u6709\u641c\u7d22\u5f15\u64ce\u7684\u5e2e\u52a9\u4e0b\u89e3\u51b3\u95ee\u9898\u3002\u90a3\u662f\u4e00\u6bb5\u9ed1\u6697\u65f6\u5149\u3002\u5145\u5206\u5229\u7528\u4f60\u53ef\u4ee5\u4f7f\u7528\u7684\u6240\u6709\u5de5\u5177\u3002<\/p>\n

\u4e0d\u5e78\u7684\u662f\uff0c\u6709\u65f6\u5019\u95ee\u9898\u53d1\u751f\u5728\u66f4\u65e9\u9636\u6bb5\uff0c\u4f46\u53ea\u6709\u5728\u8c03\u7528\u6808\u5e95\u90e8\u6267\u884c\u7684\u5730\u65b9\u624d\u663e\u73b0\u51fa\u6765\u3002\u5c31\u50cf\u5f53\u86cb\u7cd5\u6ca1\u6709\u81a8\u80c0\u65f6\uff0c\u5fd8\u8bb0\u52a0\u53d1\u9175\u7c89\u7684\u4e8b\u624d\u88ab\u53d1\u73b0\u3002<\/p>\n

\u90a3\u5c31\u8be5\u68c0\u67e5\u6574\u4e2a\u8c03\u7528\u6808\u3002\u95ee\u9898\u66f4\u53ef\u80fd\u5728\u4f60\u7684\u4ee3\u7801\u800c\u4e0d\u662f Python \u6807\u51c6\u5e93\u6216\u8005\u7b2c\u4e09\u65b9\u5305\uff0c\u6240\u4ee5\u5148\u68c0\u67e5\u8c03\u7528\u6808\u5185\u4f60\u7684\u4ee3\u7801\u3002\u53e6\u5916\uff0c\u5728\u4f60\u7684\u4ee3\u7801\u4e2d\u653e\u7f6e\u65ad\u70b9\u901a\u5e38\u4f1a\u66f4\u5bb9\u6613\u68c0\u67e5\u4ee3\u7801\u3002\u5728\u8c03\u7528\u6808\u7684\u4ee3\u7801\u4e2d\u653e\u7f6e\u65ad\u70b9\uff0c\u7136\u540e\u770b\u770b\u5468\u56f4\u662f\u5426\u5982\u4f60\u9884\u671f\u3002<\/p>\n

\u201c\u4f46\u662f\uff0c\u739b\u4e3d\uff0c\u201d\u6211\u542c\u5230\u4f60\u8bf4\uff0c\u201c\u5982\u679c\u6211\u6709\u4e00\u4e2a\u8c03\u7528\u6808\uff0c\u90a3\u8fd9\u4e9b\u90fd\u662f\u6709\u5e2e\u52a9\u7684\uff0c\u4f46\u6211\u53ea\u6709\u4e00\u4e2a\u5931\u8d25\u7684\u6d4b\u8bd5\u3002\u6211\u8be5\u4ece\u54ea\u91cc\u5f00\u59cb\uff1f\u201d<\/p>\n

pdb\uff0c\u4e00\u4e2a Python \u8c03\u8bd5\u5668\u3002<\/p>\n

\u627e\u5230\u4f60\u4ee3\u7801\u91cc\u4f1a\u88ab\u8fd9\u4e2a\u8c03\u7528\u547d\u4e2d\u7684\u5730\u65b9\u3002\u4f60\u5e94\u8be5\u80fd\u591f\u627e\u5230\u81f3\u5c11\u4e00\u4e2a\u8fd9\u6837\u7684\u5730\u65b9\u3002\u5728\u90a3\u91cc\u6253\u4e0a\u4e00\u4e2a pdb \u7684\u65ad\u70b9\u3002<\/p>\n

\u4e00\u53e5\u9898\u5916\u8bdd<\/strong><\/div>\n

\u4e3a\u4ec0\u4e48\u4e0d\u4f7f\u7528 print \u8bed\u53e5\u5462\uff1f\u6211\u66fe\u7ecf\u4f9d\u8d56\u4e8e print \u8bed\u53e5\u3002\u6709\u65f6\u5019\uff0c\u5b83\u4eec\u4ecd\u7136\u5f88\u65b9\u4fbf\u3002\u4f46\u5f53\u6211\u5f00\u59cb\u5904\u7406\u590d\u6742\u7684\u4ee3\u7801\u5e93\uff0c\u5c24\u5176\u662f\u6709\u7f51\u7edc\u8c03\u7528\u7684\u4ee3\u7801\u5e93\uff0cprint \u8bed\u53e5\u5c31\u53d8\u5f97\u592a\u6162\u4e86\u3002\u6211\u6700\u7ec8\u5728\u5404\u79cd\u5730\u65b9\u90fd\u52a0\u4e0a\u4e86 print \u8bed\u53e5\uff0c\u4f46\u6211\u6ca1\u6cd5\u8ffd\u8e2a\u5b83\u4eec\u7684\u4f4d\u7f6e\u548c\u539f\u56e0\uff0c\u800c\u4e14\u53d8\u5f97\u66f4\u590d\u6742\u4e86\u3002\u4f46\u662f\u4e3b\u8981\u4f7f\u7528 pdb \u8fd8\u6709\u4e00\u4e2a\u66f4\u91cd\u8981\u7684\u539f\u56e0\u3002\u5047\u8bbe\u4f60\u6dfb\u52a0\u4e00\u6761 print \u8bed\u53e5\u53bb\u53d1\u73b0\u9519\u8bef\u95ee\u9898\uff0c\u800c\u4e14 print \u8bed\u53e5\u5fc5\u987b\u65e9\u4e8e\u9519\u8bef\u51fa\u73b0\u7684\u5730\u65b9\u3002\u4f46\u662f\uff0c\u770b\u770b\u4f60\u653e print \u8bed\u53e5\u7684\u51fd\u6570\uff0c\u4f60\u4e0d\u77e5\u9053\u4f60\u7684\u4ee3\u7801\u662f\u600e\u4e48\u6267\u884c\u5230\u90a3\u4e2a\u4f4d\u7f6e\u7684\u3002\u67e5\u770b\u4ee3\u7801\u662f\u5bfb\u627e\u8c03\u7528\u8def\u5f84\u7684\u597d\u65b9\u6cd5\uff0c\u4f46\u770b\u4f60\u4ee5\u524d\u5199\u7684\u4ee3\u7801\u662f\u6050\u6016\u7684\u3002\u662f\u7684\uff0c\u6211\u4f1a\u7528 grep \u5904\u7406\u6211\u7684\u4ee3\u7801\u5e93\u4ee5\u5bfb\u627e\u8c03\u7528\u51fd\u6570\u7684\u5730\u65b9\uff0c\u4f46\u8fd9\u4f1a\u53d8\u5f97\u4e4f\u5473\uff0c\u800c\u4e14\u641c\u7d22\u4e00\u4e2a\u901a\u7528\u51fd\u6570\u65f6\u5e76\u4e0d\u80fd\u7f29\u5c0f\u641c\u7d22\u8303\u56f4\u3002pdb \u5c31\u53d8\u5f97\u975e\u5e38\u6709\u7528\u3002<\/p>\n

\u4f60\u9075\u5faa\u6211\u7684\u5efa\u8bae\uff0c\u6253\u4e0a pdb \u65ad\u70b9\u5e76\u8fd0\u884c\u4f60\u7684\u6d4b\u8bd5\u3002\u7136\u800c\u6d4b\u8bd5\u518d\u6b21\u5931\u8d25\uff0c\u4f46\u662f\u6ca1\u6709\u4efb\u4f55\u4e00\u4e2a\u65ad\u70b9\u88ab\u547d\u4e2d\u3002\u7559\u7740\u4f60\u7684\u65ad\u70b9\uff0c\u5e76\u8fd0\u884c\u6d4b\u8bd5\u5957\u4ef6\u4e2d\u4e00\u4e2a\u540c\u8fd9\u4e2a\u5931\u8d25\u7684\u6d4b\u8bd5\u975e\u5e38\u76f8\u4f3c\u7684\u6d4b\u8bd5\u3002\u5982\u679c\u4f60\u6709\u4e2a\u4e0d\u9519\u7684\u6d4b\u8bd5\u5957\u4ef6\uff0c\u4f60\u5e94\u8be5\u80fd\u591f\u627e\u5230\u4e00\u4e2a\u8fd9\u6837\u7684\u6d4b\u8bd5\u3002\u5b83\u4f1a\u547d\u4e2d\u4e86\u4f60\u8ba4\u4e3a\u4f60\u7684\u5931\u8d25\u6d4b\u8bd5\u5e94\u8be5\u547d\u4e2d\u7684\u4ee3\u7801\u3002\u8fd0\u884c\u8fd9\u4e2a\u6d4b\u8bd5\uff0c\u7136\u540e\u5f53\u5b83\u8fd0\u884c\u5230\u4f60\u7684\u65ad\u70b9\uff0c\u6309\u4e0b w \u5e76\u68c0\u67e5\u8c03\u7528\u6808\u3002\u5982\u679c\u4f60\u4e0d\u77e5\u9053\u5982\u4f55\u67e5\u770b\u56e0\u4e3a\u5176\u4ed6\u8c03\u7528\u800c\u53d8\u5f97\u6df7\u4e71\u7684\u8c03\u7528\u6808\uff0c\u90a3\u4e48\u5728\u8c03\u7528\u6808\u7684\u4e2d\u95f4\u627e\u5230\u5c5e\u4e8e\u4f60\u7684\u4ee3\u7801\uff0c\u5e76\u5728\u5806\u6808\u4e2d\u8be5\u4ee3\u7801\u7684\u4e0a\u4e00\u884c\u653e\u7f6e\u4e00\u4e2a\u65ad\u70b9\u3002\u518d\u8bd5\u4e00\u6b21\u65b0\u7684\u6d4b\u8bd5\u3002\u5982\u679c\u4ecd\u7136\u6ca1\u547d\u4e2d\u65ad\u70b9\uff0c\u90a3\u4e48\u7ee7\u7eed\uff0c\u5411\u4e0a\u8ffd\u8e2a\u8c03\u7528\u6808\u5e76\u627e\u51fa\u4f60\u7684\u8c03\u7528\u5728\u54ea\u91cc\u8131\u8f68\u4e86\u3002\u5982\u679c\u4f60\u4e00\u76f4\u6ca1\u6709\u547d\u4e2d\u65ad\u70b9\uff0c\u6700\u540e\u5230\u4e86\u8ffd\u8e2a\u7684\u9876\u90e8\uff0c\u90a3\u4e48\u606d\u559c\u4f60\uff0c\u4f60\u53d1\u73b0\u4e86\u95ee\u9898\uff1a\u4f60\u7684\u5e94\u7528\u7a0b\u5e8f\u540d\u79f0\u62fc\u5199\u9519\u4e86\u3002\u6ca1\u6709\u7ecf\u9a8c\uff0c\u5c0f\u767d\uff0c\u4e00\u70b9\u90fd\u6ca1\u6709\u7ecf\u9a8c\u3002<\/p>\n

4\u3001\u4fee\u6539\u4ee3\u7801<\/strong><\/div>\n

\u5982\u679c\u4f60\u4ecd\u89c9\u5f97\u8ff7\u60d1\uff0c\u5728\u4f60\u7a0d\u5fae\u6539\u53d8\u4e86\u4e00\u4e9b\u7684\u5730\u65b9\u5c1d\u8bd5\u65b0\u7684\u6d4b\u8bd5\u3002\u4f60\u80fd\u8ba9\u65b0\u7684\u6d4b\u8bd5\u8dd1\u8d77\u6765\u4e48\uff1f\u6709\u4ec0\u4e48\u662f\u4e0d\u540c\u7684\u5462\uff1f\u6709\u4ec0\u4e48\u662f\u76f8\u540c\u7684\u5462\uff1f\u5c1d\u8bd5\u6539\u53d8\u4e00\u4e0b\u522b\u7684\u4e1c\u897f\u3002\u5f53\u4f60\u6709\u4e86\u4f60\u7684\u6d4b\u8bd5\uff0c\u4ee5\u53ca\u53ef\u80fd\u4e5f\u8fd8\u6709\u5176\u5b83\u7684\u6d4b\u8bd5\uff0c\u90a3\u5c31\u53ef\u4ee5\u5f00\u59cb\u5b89\u5168\u5730\u4fee\u6539\u4ee3\u7801\u4e86\uff0c\u786e\u5b9a\u662f\u5426\u53ef\u4ee5\u7f29\u5c0f\u95ee\u9898\u8303\u56f4\u3002\u8bb0\u5f97\u4ece\u4e00\u4e2a\u65b0\u63d0\u4ea4\u5f00\u59cb\u89e3\u51b3\u95ee\u9898\uff0c\u4ee5\u4fbf\u4e8e\u53ef\u4ee5\u8f7b\u677e\u5730\u64a4\u9500\u65e0\u6548\u5730\u66f4\u6539\u3002\uff08\u8fd9\u5c31\u662f\u7248\u672c\u63a7\u5236\uff0c\u5982\u679c\u4f60\u6ca1\u6709\u4f7f\u7528\u8fc7\u7248\u672c\u63a7\u5236\uff0c\u8fd9\u5c06\u4f1a\u6539\u53d8\u4f60\u7684\u751f\u6d3b\u3002\u597d\u5427\uff0c\u53ef\u80fd\u5b83\u53ea\u662f\u8ba9\u7f16\u7801\u66f4\u5bb9\u6613\u3002\u67e5\u9605\u201c\u7248\u672c\u63a7\u5236\u53ef\u89c6\u6307\u5357\u201d\uff0c\u4ee5\u4e86\u89e3\u66f4\u591a\u3002\uff09<\/p>\n

5\u3001\u4f11\u606f\u4e00\u4e0b<\/strong><\/div>\n

\u5c3d\u7ba1\u5982\u6b64\uff0c\u5f53\u5b83\u4e0d\u518d\u611f\u89c9\u8d77\u6765\u50cf\u4e00\u4e2a\u6709\u8da3\u7684\u6311\u6218\u6216\u8005\u6e38\u620f\u800c\u5f00\u59cb\u53d8\u5f97\u4ee4\u4eba\u6cae\u4e27\u65f6\uff0c\u4f60\u6700\u597d\u7684\u4e3e\u63aa\u662f\u8131\u79bb\u8fd9\u4e2a\u95ee\u9898\u3002\u4f11\u606f\u4e00\u4e0b\u3002\u6211\u5f3a\u70c8\u5efa\u8bae\u4f60\u53bb\u6563\u6b65\u5e76\u5c1d\u8bd5\u8003\u8651\u522b\u7684\u4e8b\u60c5\u3002<\/p>\n

6\u3001\u628a\u4e00\u5207\u5199\u4e0b\u6765<\/strong><\/div>\n

\u5f53\u4f60\u56de\u6765\u4e86\uff0c\u5982\u679c\u4f60\u6ca1\u6709\u7a81\u7136\u53d7\u5230\u542f\u53d1\uff0c\u90a3\u5c31\u628a\u4f60\u5173\u4e8e\u8fd9\u4e2a\u95ee\u9898\u6240\u77e5\u7684\u6bcf\u4e00\u4e2a\u70b9\u4fe1\u606f\u5199\u4e0b\u6765\u3002\u8fd9\u5e94\u8be5\u5305\u62ec\uff1a<\/p>\n

\u771f\u6b63\u9020\u6210\u95ee\u9898\u7684\u8c03\u7528\r\n\u771f\u6b63\u53d1\u751f\u4e86\u4ec0\u4e48\uff0c\u5305\u62ec\u4efb\u4f55\u9519\u8bef\u4fe1\u606f\u6216\u8005\u76f8\u5173\u7684\u65e5\u5fd7\u4fe1\u606f\r\n\u4f60\u771f\u6b63\u671f\u671b\u53d1\u751f\u4ec0\u4e48\r\n\u5230\u76ee\u524d\u4e3a\u6b62\uff0c\u4e3a\u4e86\u627e\u51fa\u95ee\u9898\uff0c\u4f60\u505a\u4e86\u4ec0\u4e48\u5de5\u4f5c\uff1b\u4ee5\u53ca\u89e3\u51b3\u95ee\u9898\u4e2d\u4f60\u53d1\u73b0\u7684\u4efb\u4f55\u7ebf\u7d22\u3002\r\n\u6709\u65f6\u8fd9\u91cc\u6709\u5f88\u591a\u4fe1\u606f\uff0c\u4f46\u76f8\u4fe1\u6211\uff0c\u4ece\u96f6\u788e\u4e2d\u6316\u6398\u4fe1\u606f\u662f\u5f88\u70e6\u4eba\u3002\u6240\u4ee5\u5c3d\u91cf\u7b80\u6d01\uff0c\u4f46\u662f\u8981\u5b8c\u6574\u3002\r\n<\/pre>\n
7\u3001\u5bfb\u6c42\u5e2e\u52a9<\/strong><\/div>\n

\u6211\u7ecf\u5e38\u53d1\u73b0\u5199\u4e0b\u6240\u6709\u4fe1\u606f\u80fd\u591f\u542f\u8fea\u6211\u60f3\u5230\u8fd8\u6ca1\u5c1d\u8bd5\u8fc7\u7684\u4e1c\u897f\u3002\u5f53\u7136\uff0c\u6709\u65f6\u5019\u6211\u5728\u70b9\u51fb\u6c42\u52a9\u90ae\u4ef6\uff08\u6216\u8868\u5355\uff09\u7684\u63d0\u4ea4\u6309\u94ae\u540e\u7acb\u523b\u610f\u8bc6\u5230\u95ee\u9898\u662f\u662f\u4ec0\u4e48\u3002\u65e0\u8bba\u5982\u4f55\uff0c\u5f53\u4f60\u5728\u5199\u4e0b\u6240\u6709\u4e1c\u897f\u4ecd\u4e00\u65e0\u6240\u83b7\u65f6\uff0c\u90a3\u5c31\u8bd5\u8bd5\u5411\u4ed6\u4eba\u53d1\u90ae\u4ef6\u6c42\u52a9\u3002\u9996\u5148\u662f\u4f60\u7684\u540c\u4e8b\u6216\u8005\u5176\u4ed6\u53c2\u4e0e\u4f60\u7684\u9879\u76ee\u7684\u4eba\uff0c\u7136\u540e\u662f\u8be5\u9879\u76ee\u7684\u90ae\u4ef6\u5217\u8868\u3002\u4e0d\u8981\u5bb3\u6015\u5411\u4eba\u6c42\u52a9\u3002\u5927\u591a\u6570\u4eba\u90fd\u662f\u53cb\u5584\u548c\u4e50\u4e8e\u52a9\u4eba\u7684\uff0c\u6211\u53d1\u73b0\u5728 Python \u793e\u533a\u91cc\u5c24\u5176\u5982\u6b64\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

\u7ed3\u679c\u8fd9\u4e9b\u65e5\u5fd7\u88ab\u8f6c\u79fb\u5230\u4e86\u4f60\u83b7\u53d6\u4e0d\u5230\u7684\u5730\u65b9\uff0c\u4f46\u5b83\u4eec\u6b63\u5728\u5bfc\u5165\u5230\u4e00\u4e2a\u7f51\u9875\u5e94\u7528\u4e2d\u2014\u2014\u6240\u4ee5\u5230\u65f6\u5019\u4f60\u53ef\u4ee5\u7528\u8fd9\u4e2a\u6f02\u4eae\u7684\u5e94\u7528\u6765\u68c0 […]<\/p>\n","protected":false},"author":1329,"featured_media":139345,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[21],"tags":[],"class_list":["post-139343","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-news"],"acf":[],"_links":{"self":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts\/139343","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/users\/1329"}],"replies":[{"embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/comments?post=139343"}],"version-history":[{"count":3,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts\/139343\/revisions"}],"predecessor-version":[{"id":139468,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts\/139343\/revisions\/139468"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/media\/139345"}],"wp:attachment":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/media?parent=139343"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/categories?post=139343"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/tags?post=139343"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}