{"id":29182,"date":"2020-06-09T00:02:40","date_gmt":"2020-06-08T16:02:40","guid":{"rendered":"http:\/\/www.zhushiyao.com\/?p=29182"},"modified":"2020-06-09T00:03:33","modified_gmt":"2020-06-08T16:03:33","slug":"ca7dbf6f88","status":"publish","type":"post","link":"http:\/\/www.zhushiyao.com\/?p=29182","title":{"rendered":"\u8be6\u5c3d\u5b9e\u7528\u7684 PyCharm \u6559\u7a0b"},"content":{"rendered":"<div class=\"bpp-post-content\">\n<blockquote style=\"white-space: normal; font-variant-ligatures: normal; orphans: 2; widows: 2;\"><p><span style=\"font-size: 14px;\">\u6765\u6e90\uff1aPython\u732b<\/span><\/p><\/blockquote>\n<p style=\"margin-top: 1.5em; margin-bottom: 1.5em; max-width: 100%; min-height: 1em; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; white-space: normal; background-color: #ffffff; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"font-size: 15px;\">\u672c\u6587\u5047\u8bbe\u8bfb\u8005\u719f\u6089 Python \u5f00\u53d1\uff0c\u4e14\u8ba1\u7b97\u673a\u4e2d\u5df2\u5b89\u88c5\u67d0\u4e2a\u7248\u672c\u7684 Python\u3002\u8be5\u6559\u7a0b\u5c06\u4f7f\u7528 Python 3.6 \u7248\u672c\uff0c\u5c4f\u5e55\u622a\u56fe\u548c demo \u5747\u6765\u81ea macOS \u7cfb\u7edf\u3002\u7531\u4e8e PyCharm \u53ef\u5728\u6240\u6709\u4e3b\u6d41\u5e73\u53f0\u4e0a\u8fd0\u884c\uff0c\u8bfb\u8005\u5728\u5176\u4ed6\u7cfb\u7edf\u4e2d\u4f1a\u770b\u5230\u7565\u5fae\u4e0d\u540c\u7684 UI \u5143\u7d20\uff0c\u53ef\u80fd\u9700\u8981\u8c03\u6574\u67d0\u4e9b\u547d\u4ee4\u3002<\/span><\/p>\n<h2><span style=\"font-size: 15px;\"><span style=\"color: #ff0000;\"><strong>1. PyCharm \u7684\u5b89\u88c5<\/strong><\/span><\/span><\/h2>\n<p style=\"margin-top: 1.5em; margin-bottom: 1.5em; max-width: 100%; min-height: 1em; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; white-space: normal; background-color: #ffffff; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"font-size: 15px;\">\u672c\u6587\u5c06\u4f7f\u7528 PyCharm Community Edition 2019.1 \u7248\u672c\uff0c\u8be5\u7248\u672c\u514d\u8d39\u4e14\u53ef\u5728\u6240\u6709\u4e3b\u6d41\u5e73\u53f0\u4e0a\u4f7f\u7528\u3002\u53ea\u6709\u6700\u540e\u4e00\u90e8\u5206\u300cPyCharm Professional \u529f\u80fd\u300d\u4f7f\u7528\u7684\u662f PyCharm Professional Edition 2019.1 \u7248\u672c\u3002<\/span><\/p>\n<p style=\"margin-top: 1.5em; margin-bottom: 1.5em; max-width: 100%; min-height: 1em; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; white-space: normal; background-color: #ffffff; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"font-size: 15px;\">\u63a8\u8350\u4f7f\u7528 JetBrains Toolbox App \u5b89\u88c5 PyCharm\u3002\u4f7f\u7528\u8be5 App\uff0c\u4f60\u53ef\u4ee5\u5b89\u88c5\u4e0d\u540c\u7684 JetBrains \u4ea7\u54c1\u6216\u8005\u540c\u4e00\u4ea7\u54c1\u7684\u4e0d\u540c\u7248\u672c\uff0c\u5e76\u5728\u5fc5\u8981\u7684\u60c5\u51b5\u4e0b\u66f4\u65b0\u3001\u56de\u6eda\u548c\u8f7b\u677e\u5220\u9664\u4efb\u610f\u5de5\u5177\u3002\u4f60\u8fd8\u53ef\u4ee5\u5728\u6070\u5f53\u7684 IDE \u53ca\u7248\u672c\u4e2d\u5feb\u901f\u6253\u5f00\u4efb\u610f\u9879\u76ee\u3002<\/span><\/p>\n<p style=\"margin-top: 1.5em; margin-bottom: 1.5em; max-width: 100%; min-height: 1em; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; white-space: normal; background-color: #ffffff; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"font-size: 15px;\">Toolbox App \u5b89\u88c5\u6307\u5357\uff0c\u53c2\u89c1 JetBrains \u5b98\u65b9\u6587\u6863\uff1ahttps:\/\/www.jetbrains.com\/help\/pycharm\/installation-guide.html#toolbox\u3002<\/span><\/p>\n<p style=\"margin-top: 1.5em; margin-bottom: 1.5em; max-width: 100%; min-height: 1em; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; white-space: normal; background-color: #ffffff; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"font-size: 15px;\">\u8be5 App \u4f1a\u6839\u636e\u4f60\u7684\u64cd\u4f5c\u7cfb\u7edf\u63d0\u4f9b\u5408\u9002\u7684\u5b89\u88c5\u8bf4\u660e\u3002\u5982\u679c\u5b83\u65e0\u6cd5\u65e0\u6cd5\u51c6\u786e\u8bc6\u522b\u7cfb\u7edf\uff0c\u4f60\u53ef\u4ee5\u5728\u53f3\u4e0a\u89d2\u7684\u4e0b\u62c9\u5217\u8868\u4e2d\u627e\u5230\u5408\u9002\u7684\u7cfb\u7edf\u3002<\/span><\/p>\n<figure style=\"max-width: 100%; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; font-size: inherit; white-space: normal; background-color: #ffffff; line-height: inherit; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><img decoding=\"async\" style=\"margin-right: auto; margin-left: auto; font-size: inherit; color: inherit; line-height: inherit; display: block; border-radius: 10px; box-sizing: border-box !important; overflow-wrap: break-word !important; width: 640px !important; visibility: visible !important; border: 2px solid green;\" title=\"\u8be6\u5c3d\u5b9e\u7528\u7684 PyCharm \u6559\u7a0b\uff0c\u8fd9\u7bc7\u6587\u7ae0\u503c\u5f97\u4e00\u770b\" src=\"http:\/\/www.zhushiyao.com\/wp-content\/uploads\/2020\/06\/0-1591632160-1.jpeg\" alt=\"\u8be6\u5c3d\u5b9e\u7528\u7684 PyCharm \u6559\u7a0b\uff0c\u8fd9\u7bc7\u6587\u7ae0\u503c\u5f97\u4e00\u770b\" \/><\/figure>\n<p style=\"margin-top: 1.5em; margin-bottom: 1.5em; max-width: 100%; min-height: 1em; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; white-space: normal; background-color: #ffffff; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"font-size: 15px;\">\u5b89\u88c5\u6210\u529f\u540e\uff0c\u542f\u52a8\u8be5 app \u5e76\u63a5\u53d7\u7528\u6237\u534f\u8bae\u3002\u5728 Tools \u9009\u9879\u4e0b\uff0c\u4f60\u53ef\u4ee5\u770b\u5230\u4e00\u4e2a\u53ef\u7528\u4ea7\u54c1\u5217\u8868\u3002\u4ece\u4e2d\u627e\u5230 PyCharm Community\uff0c\u5e76\u70b9\u51fb Install\u3002<\/span><\/p>\n<p style=\"margin-top: 1.5em; margin-bottom: 1.5em; max-width: 100%; min-height: 1em; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; white-space: normal; background-color: #ffffff; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"font-size: 15px;\">\u597d\u5566\uff0c\u73b0\u5728\u4f60\u7684\u673a\u5668\u4e0a\u5df2\u7ecf\u5b89\u88c5 PyCharm \u4e86\u3002\u5982\u679c\u4e0d\u60f3\u4f7f\u7528 Toolbox app\uff0c\u4f60\u53ef\u4ee5\u5355\u72ec\u5b89\u88c5 PyCharm\u3002<\/span><\/p>\n<p style=\"margin-top: 1.5em; margin-bottom: 1.5em; max-width: 100%; min-height: 1em; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; white-space: normal; background-color: #ffffff; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"font-size: 15px;\">\u542f\u52a8 PyCharm\uff0c\u4f60\u5c06\u770b\u5230\u5bfc\u5165\u8bbe\u7f6e\u5f39\u7a97\u3002PyCharm \u4f1a\u81ea\u52a8\u68c0\u6d4b\u51fa\u8fd9\u662f\u9996\u6b21\u5b89\u88c5\uff0c\u5e76\u4e3a\u4f60\u9009\u62e9\u300cDo not import settings\u300d\u9009\u9879\u3002\u70b9\u51fb OK\uff0c\u4e4b\u540e PyCharm \u4f1a\u8ba9\u4f60\u9009\u62e9\u952e\u76d8\u6620\u5c04\uff08keymap scheme\uff09\u3002\u4fdd\u7559\u9ed8\u8ba4\u8bbe\u7f6e\uff0c\u70b9\u51fb\u53f3\u4e0b\u89d2\u7684\u300cNext: UI Themes\u300d\uff1a<\/span><\/p>\n<figure style=\"max-width: 100%; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; font-size: inherit; white-space: normal; background-color: #ffffff; line-height: inherit; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><img decoding=\"async\" style=\"margin-right: auto; margin-left: auto; font-size: inherit; color: inherit; line-height: inherit; display: block; border-radius: 10px; box-sizing: border-box !important; overflow-wrap: break-word !important; width: 640px !important; visibility: visible !important; border: 2px solid green;\" title=\"\u8be6\u5c3d\u5b9e\u7528\u7684 PyCharm \u6559\u7a0b\uff0c\u8fd9\u7bc7\u6587\u7ae0\u503c\u5f97\u4e00\u770b\" src=\"http:\/\/www.zhushiyao.com\/wp-content\/uploads\/2020\/06\/2-1591632160.jpeg\" alt=\"\u8be6\u5c3d\u5b9e\u7528\u7684 PyCharm \u6559\u7a0b\uff0c\u8fd9\u7bc7\u6587\u7ae0\u503c\u5f97\u4e00\u770b\" \/><\/figure>\n<p style=\"margin-top: 1.5em; margin-bottom: 1.5em; max-width: 100%; min-height: 1em; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; white-space: normal; background-color: #ffffff; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"font-size: 15px;\">PyCharm \u5c06\u8be2\u95ee\u9009\u62e9\u6df1\u8272\u6a21\u5f0f Darcula \u8fd8\u662f\u6d45\u8272\u6a21\u5f0f\u3002\u4f60\u53ef\u4ee5\u9009\u62e9\u81ea\u5df1\u559c\u6b22\u7684\u6a21\u5f0f\uff0c\u5e76\u70b9\u51fb\u300cNext: Launcher Script\u300d\uff1a<\/span><\/p>\n<figure style=\"max-width: 100%; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; font-size: inherit; white-space: normal; background-color: #ffffff; line-height: inherit; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><img decoding=\"async\" style=\"margin-right: auto; margin-left: auto; font-size: inherit; color: inherit; line-height: inherit; display: block; border-radius: 10px; box-sizing: border-box !important; overflow-wrap: break-word !important; width: 640px !important; visibility: visible !important; border: 2px solid green;\" title=\"\u8be6\u5c3d\u5b9e\u7528\u7684 PyCharm \u6559\u7a0b\uff0c\u8fd9\u7bc7\u6587\u7ae0\u503c\u5f97\u4e00\u770b\" src=\"http:\/\/www.zhushiyao.com\/wp-content\/uploads\/2020\/06\/7-1591632160.jpeg\" alt=\"\u8be6\u5c3d\u5b9e\u7528\u7684 PyCharm \u6559\u7a0b\uff0c\u8fd9\u7bc7\u6587\u7ae0\u503c\u5f97\u4e00\u770b\" \/><\/figure>\n<p style=\"margin-top: 1.5em; margin-bottom: 1.5em; max-width: 100%; min-height: 1em; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; white-space: normal; background-color: #ffffff; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"font-size: 15px;\">\u672c\u6559\u7a0b\u5c06\u4f7f\u7528\u6df1\u8272\u6a21\u5f0f Darcula\u3002<\/span><\/p>\n<p style=\"margin-top: 1.5em; margin-bottom: 1.5em; max-width: 100%; min-height: 1em; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; white-space: normal; background-color: #ffffff; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"font-size: 15px;\">\u5728\u4e0b\u4e00\u4e2a\u9875\u9762\u4e0a\uff0c\u76f4\u63a5\u4fdd\u7559\u9ed8\u8ba4\u8bbe\u7f6e\uff0c\u5e76\u70b9\u51fb\u300cNext: Featured plugins\u300d\uff0c\u8fd9\u65f6 PyCharm \u5c06\u5c55\u793a\u53ef\u7528\u63d2\u4ef6\u5217\u8868\u3002\u70b9\u51fb\u300cStart using PyCharm\u300d\uff0c\u73b0\u5728\u4f60\u53ef\u4ee5\u5199\u4ee3\u7801\u4e86\uff01<\/span><\/p>\n<h2><span style=\"font-size: 15px;\"><span style=\"color: #ff0000;\"><strong>2. \u7f16\u5199\u4ee3\u7801<\/strong><\/span><\/span><\/h2>\n<p style=\"margin-top: 1.5em; margin-bottom: 1.5em; max-width: 100%; min-height: 1em; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; white-space: normal; background-color: #ffffff; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"font-size: 15px;\">\u5728 PyCharm \u4e2d\uff0c\u4f60\u53ef\u4ee5\u5728\u300c\u9879\u76ee\u300d\u4e2d\u6267\u884c\u4efb\u610f\u64cd\u4f5c\u3002\u56e0\u6b64\uff0c\u9996\u5148\u4f60\u9700\u8981\u521b\u5efa\u4e00\u4e2a\u9879\u76ee\u3002<\/span><\/p>\n<p style=\"margin-top: 1.5em; margin-bottom: 1.5em; max-width: 100%; min-height: 1em; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; white-space: normal; background-color: #ffffff; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"font-size: 15px;\">\u5b89\u88c5\u548c\u6253\u5f00 PyCharm \u540e\uff0c\u4f60\u4f1a\u770b\u5230\u6b22\u8fce\u9875\u9762\u3002\u70b9\u51fb\u300cCreate New Project\u300d\uff0c\u51fa\u73b0\u300cNew Project\u300d\u5f39\u7a97\uff1a<\/span><\/p>\n<figure style=\"max-width: 100%; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; font-size: inherit; white-space: normal; background-color: #ffffff; line-height: inherit; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><img decoding=\"async\" style=\"margin-right: auto; margin-left: auto; font-size: inherit; color: inherit; line-height: inherit; display: block; border-radius: 10px; box-sizing: border-box !important; overflow-wrap: break-word !important; width: 640px !important; visibility: visible !important; border: 2px solid green;\" title=\"\u8be6\u5c3d\u5b9e\u7528\u7684 PyCharm \u6559\u7a0b\uff0c\u8fd9\u7bc7\u6587\u7ae0\u503c\u5f97\u4e00\u770b\" src=\"http:\/\/www.zhushiyao.com\/wp-content\/uploads\/2020\/06\/3-1591632160.jpeg\" alt=\"\u8be6\u5c3d\u5b9e\u7528\u7684 PyCharm \u6559\u7a0b\uff0c\u8fd9\u7bc7\u6587\u7ae0\u503c\u5f97\u4e00\u770b\" \/><\/figure>\n<p style=\"margin-top: 1.5em; margin-bottom: 1.5em; max-width: 100%; min-height: 1em; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; white-space: normal; background-color: #ffffff; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"font-size: 15px;\">\u6307\u5b9a\u9879\u76ee\u4f4d\u7f6e\uff0c\u6253\u5f00 Project Interpreter \u5217\u8868\uff0c\u9009\u62e9\u521b\u5efa\u65b0\u7684\u9879\u76ee\u89e3\u91ca\u5668\u6216\u8005\u4f7f\u7528\u5df2\u6709\u7684\u89e3\u91ca\u5668\u3002\u9009\u62e9\u300cNew environment using\u300d\uff0c\u6253\u5f00\u5176\u53f3\u65b9\u7684\u4e0b\u62c9\u5217\u8868\uff0c\u9009\u62e9 Virtualenv\u3001Pipenv \u6216 Conda\u3002\u8fd9\u4e9b\u5de5\u5177\u53ef\u4ee5\u4e3a\u4e0d\u540c\u9879\u76ee\u5355\u72ec\u521b\u5efa Python \u73af\u5883\uff0c\u4ece\u800c\u5206\u522b\u4fdd\u5b58\u4e0d\u540c\u9879\u76ee\u6240\u9700\u7684\u4f9d\u8d56\u9879\u3002<\/span><\/p>\n<p style=\"margin-top: 1.5em; margin-bottom: 1.5em; max-width: 100%; min-height: 1em; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; white-space: normal; background-color: #ffffff; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"font-size: 15px;\">\u4f60\u53ef\u4ee5\u9009\u62e9\u5176\u4e2d\u4efb\u610f\u4e00\u4e2a\uff0c\u672c\u6559\u7a0b\u4f7f\u7528\u7684\u662f Virtualenv\u3002\u9009\u62e9\u540e\uff0c\u6307\u5b9a\u73af\u5883\u4f4d\u7f6e\uff0c\u4ece Python \u89e3\u91ca\u5668\u5217\u8868\u4e2d\u9009\u62e9\u8981\u5b89\u88c5\u5728\u7cfb\u7edf\u4e2d\u7684 base interpreter\u3002\u901a\u5e38\uff0c\u4fdd\u6301\u9ed8\u8ba4\u8bbe\u7f6e\u5373\u53ef\u3002\u4e0b\u9762\u6709\u4e24\u4e2a\u53ef\u9009\u6846\uff1a\u5728\u65b0\u73af\u5883\u4e2d\u7ee7\u627f\u5168\u5c40\u5305\u73af\u5883\u3001\u4ee4\u5f53\u524d\u73af\u5883\u53ef\u4ee5\u7528\u5176\u5b83\u6240\u6709\u9879\u76ee\uff0c\u4e24\u4e2a\u90fd\u4e0d\u8981\u9009\u3002<\/span><\/p>\n<p style=\"margin-top: 1.5em; margin-bottom: 1.5em; max-width: 100%; min-height: 1em; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; white-space: normal; background-color: #ffffff; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"font-size: 15px;\">\u70b9\u51fb\u53f3\u4e0b\u89d2\u7684\u300cCreate\u300d\uff0c\u521b\u5efa\u65b0\u9879\u76ee\uff1a<\/span><\/p>\n<figure style=\"max-width: 100%; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; font-size: inherit; white-space: normal; background-color: #ffffff; line-height: inherit; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><img decoding=\"async\" style=\"margin-right: auto; margin-left: auto; font-size: inherit; color: inherit; line-height: inherit; display: block; border-radius: 10px; box-sizing: border-box !important; overflow-wrap: break-word !important; width: 640px !important; visibility: visible !important; border: 2px solid green;\" title=\"\u8be6\u5c3d\u5b9e\u7528\u7684 PyCharm \u6559\u7a0b\uff0c\u8fd9\u7bc7\u6587\u7ae0\u503c\u5f97\u4e00\u770b\" src=\"http:\/\/www.zhushiyao.com\/wp-content\/uploads\/2020\/06\/3-1591632160-1.jpeg\" alt=\"\u8be6\u5c3d\u5b9e\u7528\u7684 PyCharm \u6559\u7a0b\uff0c\u8fd9\u7bc7\u6587\u7ae0\u503c\u5f97\u4e00\u770b\" \/><\/figure>\n<p style=\"margin-top: 1.5em; margin-bottom: 1.5em; max-width: 100%; min-height: 1em; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; white-space: normal; background-color: #ffffff; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"font-size: 15px;\">\u5c4f\u5e55\u4e0a\u51fa\u73b0\u300cTip of the Day\u300d\u5f39\u7a97\uff0c\u5728\u6bcf\u6b21\u542f\u52a8\u65f6 PyCharm \u901a\u8fc7\u8be5\u5f39\u7a97\u63d0\u4f9b trick\u3002\u5173\u6389\u8be5\u5f39\u7a97\u3002<\/span><\/p>\n<p style=\"margin-top: 1.5em; margin-bottom: 1.5em; max-width: 100%; min-height: 1em; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; white-space: normal; background-color: #ffffff; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"font-size: 15px;\">\u73b0\u5728\u6211\u4eec\u53ef\u4ee5\u5f00\u59cb\u65b0\u7684 Python \u7a0b\u5e8f\u4e86\u3002\u5982\u679c\u4f60\u4f7f\u7528\u7684\u662f Mac \u7cfb\u7edf\uff0c\u4f7f\u7528 Cmd+N \u952e\uff1b\u5982\u679c\u4f60\u4f7f\u7528\u7684\u662f Windows \u6216 Linux \u7cfb\u7edf\uff0c\u4f7f\u7528 Alt+Ins \u952e\u3002\u7136\u540e\u9009\u62e9 Python File\u3002\u4f60\u4e5f\u53ef\u4ee5\u5728\u83dc\u5355\u4e2d\u9009\u62e9 File \u2192 New\u3002\u5c06\u65b0\u6587\u4ef6\u547d\u540d\u4e3a guess_game.py \u5e76\u70b9\u51fb OK\u3002\u4f60\u5c06\u770b\u5230\u5982\u4e0b PyCharm \u7a97\u53e3\uff1a<\/span><\/p>\n<figure style=\"max-width: 100%; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; font-size: inherit; white-space: normal; background-color: #ffffff; line-height: inherit; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><img decoding=\"async\" style=\"margin-right: auto; margin-left: auto; font-size: inherit; color: inherit; line-height: inherit; display: block; border-radius: 10px; box-sizing: border-box !important; overflow-wrap: break-word !important; width: 640px !important; visibility: visible !important; border: 2px solid green;\" title=\"\u8be6\u5c3d\u5b9e\u7528\u7684 PyCharm \u6559\u7a0b\uff0c\u8fd9\u7bc7\u6587\u7ae0\u503c\u5f97\u4e00\u770b\" src=\"http:\/\/www.zhushiyao.com\/wp-content\/uploads\/2020\/06\/2-1591632160-1.jpeg\" alt=\"\u8be6\u5c3d\u5b9e\u7528\u7684 PyCharm \u6559\u7a0b\uff0c\u8fd9\u7bc7\u6587\u7ae0\u503c\u5f97\u4e00\u770b\" \/><\/figure>\n<p style=\"margin-top: 1.5em; margin-bottom: 1.5em; max-width: 100%; min-height: 1em; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; white-space: normal; background-color: #ffffff; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"font-size: 15px;\">\u81f3\u4e8e\u6d4b\u8bd5\u4ee3\u7801\uff0c\u6211\u4eec\u6765\u5feb\u901f\u5199\u4e00\u4e2a\u7b80\u5355\u7684\u731c\u8c1c\u6e38\u620f\uff0c\u5373\u7a0b\u5e8f\u9009\u62e9\u4e00\u4e2a\u6570\u5b57\u8ba9\u7528\u6237\u6765\u731c\uff0c\u5728\u6bcf\u4e00\u6b21\u731c\u6d4b\u65f6\uff0c\u7a0b\u5e8f\u5c06\u544a\u8bc9\u7528\u6237\u4ed6\u731c\u7684\u6570\u5b57\u6bd4\u795e\u79d8\u6570\u5b57\u5927\u8fd8\u662f\u5c0f\uff0c\u7528\u6237\u731c\u4e2d\u6570\u5b57\u65f6\u6e38\u620f\u7ed3\u675f\u3002\u4ee5\u4e0b\u662f\u8be5\u6e38\u620f\u7684\u4ee3\u7801\uff1a<\/span><\/p>\n<figure style=\"max-width: 100%; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; font-size: inherit; white-space: normal; background-color: #ffffff; line-height: inherit; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><img decoding=\"async\" style=\"margin-right: auto; margin-left: auto; font-size: inherit; color: inherit; line-height: inherit; display: block; border-radius: 10px; box-sizing: border-box !important; overflow-wrap: break-word !important; width: 640px !important; visibility: visible !important; border: 2px solid green;\" title=\"\u8be6\u5c3d\u5b9e\u7528\u7684 PyCharm \u6559\u7a0b\uff0c\u8fd9\u7bc7\u6587\u7ae0\u503c\u5f97\u4e00\u770b\" src=\"http:\/\/www.zhushiyao.com\/wp-content\/uploads\/2020\/06\/4-1591632160.jpeg\" alt=\"\u8be6\u5c3d\u5b9e\u7528\u7684 PyCharm \u6559\u7a0b\uff0c\u8fd9\u7bc7\u6587\u7ae0\u503c\u5f97\u4e00\u770b\" \/><\/figure>\n<p style=\"margin-top: 1.5em; margin-bottom: 1.5em; max-width: 100%; min-height: 1em; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; white-space: normal; background-color: #ffffff; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"font-size: 15px;\">\u76f4\u63a5\u952e\u5165\u4e0a\u8ff0\u4ee3\u7801\uff0c\u800c\u4e0d\u662f\u590d\u5236\u7c98\u8d34\u3002\u4f60\u4f1a\u770b\u5230\u5982\u4e0b\u753b\u9762\uff1a<\/span><\/p>\n<figure style=\"max-width: 100%; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; font-size: inherit; white-space: normal; background-color: #ffffff; line-height: inherit; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><img decoding=\"async\" class=\"__bg_gif\" style=\"margin-right: auto; margin-left: auto; font-size: inherit; color: inherit; line-height: inherit; display: block; border-radius: 10px; box-sizing: border-box !important; overflow-wrap: break-word !important; width: 528px !important; visibility: visible !important; border: 2px solid green;\" title=\"\u8be6\u5c3d\u5b9e\u7528\u7684 PyCharm \u6559\u7a0b\uff0c\u8fd9\u7bc7\u6587\u7ae0\u503c\u5f97\u4e00\u770b\" src=\"http:\/\/www.zhushiyao.com\/wp-content\/uploads\/2020\/06\/1-1591632160.gif\" alt=\"\u8be6\u5c3d\u5b9e\u7528\u7684 PyCharm \u6559\u7a0b\uff0c\u8fd9\u7bc7\u6587\u7ae0\u503c\u5f97\u4e00\u770b\" \/><\/figure>\n<p style=\"margin-top: 1.5em; margin-bottom: 1.5em; max-width: 100%; min-height: 1em; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; white-space: normal; background-color: #ffffff; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"font-size: 15px;\">\u5982\u4e0a\u56fe\u6240\u793a\uff0cPyCharm \u63d0\u4f9b Intelligent Coding Assistance \u529f\u80fd\uff0c\u53ef\u4ee5\u6267\u884c\u4ee3\u7801\u8865\u5168\u3001\u4ee3\u7801\u68c0\u67e5\u3001\u9519\u8bef\u9ad8\u4eae\u663e\u793a\u548c\u5feb\u901f\u4fee\u590d\u5efa\u8bae\u3002\u6bd4\u5982\u952e\u5165 main \u5e76\u70b9\u51fb tab \u952e\uff0cPyCharm \u4f1a\u81ea\u52a8\u8865\u5168\u6574\u4e2a main \u4ece\u53e5\u3002<\/span><\/p>\n<p style=\"margin-top: 1.5em; margin-bottom: 1.5em; max-width: 100%; min-height: 1em; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; white-space: normal; background-color: #ffffff; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"font-size: 15px;\">\u6b64\u5916\uff0c\u5982\u679c\u4f60\u5728\u6761\u4ef6\u53e5\u524d\u5fd8\u8bb0\u952e\u5165 if\uff0c\u5728\u8be5\u53e5\u5b50\u6700\u540e\u589e\u6dfb.if \u5e76\u70b9\u51fb Tab \u952e\uff0cPyCharm \u5c06\u4fee\u590d\u8be5 if \u6761\u4ef6\u53e5\u3002\u8be5\u7528\u6cd5\u540c\u6837\u9002\u7528\u4e8e True.while\u3002\u8fd9\u5373\u662f PyCharm \u7684 Postfix Completion \u529f\u80fd\uff0c\u5b83\u53ef\u4ee5\u5e2e\u52a9\u7528\u6237\u51cf\u5c11\u9000\u683c\u952e\u4f7f\u7528\u6b21\u6570\u3002<\/span><\/p>\n<h2><span style=\"font-size: 15px;\"><span style=\"color: #ff0000;\"><strong>3. \u5982\u4f55\u8fd0\u884c\u4ee3\u7801<\/strong><\/span><\/span><\/h2>\n<p style=\"margin-top: 1.5em; margin-bottom: 1.5em; max-width: 100%; min-height: 1em; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; white-space: normal; background-color: #ffffff; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"font-size: 15px;\">\u73b0\u5728\u4f60\u5df2\u7ecf\u7f16\u7801\u5b8c\u6210\u8be5\u6e38\u620f\uff0c\u53ef\u4ee5\u8fd0\u884c\u4e86\u3002<\/span><\/p>\n<p style=\"margin-top: 1.5em; margin-bottom: 1.5em; max-width: 100%; min-height: 1em; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; white-space: normal; background-color: #ffffff; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"font-size: 15px;\">\u8be5\u6e38\u620f\u7a0b\u5e8f\u6709\u4e09\u79cd\u8fd0\u884c\u65b9\u5f0f\uff1a<\/span><\/p>\n<ol class=\"list-paddingleft-2\" style=\"padding-left: 32px; max-width: 100%; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; font-size: inherit; white-space: normal; background-color: #ffffff; width: 577.422px; line-height: inherit; overflow-wrap: break-word !important;\">\n<li style=\"margin-bottom: 0.5em; max-width: 100%; font-size: 15px; color: inherit; line-height: inherit; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\n<p style=\"max-width: 100%; min-height: 1em; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"max-width: 100%; color: inherit; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\u5728 Mac \u7cfb\u7edf\u4e2d\u4f7f\u7528\u5feb\u6377\u952e Ctrl+Shift+R\uff0c\u5728 Windows \u6216 Linux \u7cfb\u7edf\u4e2d\uff0c\u4f7f\u7528\u5feb\u6377\u952e Ctrl+Shift+F10\u3002<\/span><\/p>\n<\/li>\n<li style=\"margin-bottom: 0.5em; max-width: 100%; font-size: 15px; color: inherit; line-height: inherit; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\n<p style=\"max-width: 100%; min-height: 1em; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"max-width: 100%; color: inherit; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\u53f3\u952e\u5355\u51fb\u80cc\u666f\uff0c\u4ece\u83dc\u5355\u4e2d\u9009\u62e9\u300cRun \u300eguess_game\u300f\u300d\u3002<\/span><\/p>\n<\/li>\n<li style=\"margin-bottom: 0.5em; max-width: 100%; font-size: 15px; color: inherit; line-height: inherit; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\n<p style=\"max-width: 100%; min-height: 1em; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"font-size: 15px;\">\u7531\u4e8e\u8be5\u7a0b\u5e8f\u5177\u5907<strong style=\"max-width: 100%; font-size: inherit; line-height: inherit; color: #ff3502; box-sizing: border-box !important; overflow-wrap: break-word !important;\">main__ \u4ece\u53e5\uff0c\u4f60\u53ef\u4ee5\u70b9\u51fb__main<\/strong>\u00a0\u4ece\u53e5\u5de6\u4fa7\u7684\u7eff\u8272\u5c0f\u7bad\u5934\uff0c\u9009\u62e9\u300cRun \u300eguess_game\u300f\u300d\u3002<\/span><\/p>\n<\/li>\n<\/ol>\n<p style=\"margin-top: 1.5em; margin-bottom: 1.5em; max-width: 100%; min-height: 1em; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; white-space: normal; background-color: #ffffff; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"font-size: 15px;\">\u4f7f\u7528\u4ee5\u4e0a\u4efb\u4e00\u65b9\u5f0f\u8fd0\u884c\u8be5\u7a0b\u5e8f\uff0c\u7a97\u53e3\u5e95\u90e8\u4f1a\u51fa\u73b0\u7ec8\u7aef\u9762\u677f\uff08Terminal pane\uff09\uff0c\u663e\u793a\u4f60\u7684\u4ee3\u7801\u8f93\u51fa\u7ed3\u679c\uff1a<\/span><\/p>\n<figure style=\"max-width: 100%; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; font-size: inherit; white-space: normal; background-color: #ffffff; line-height: inherit; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><img decoding=\"async\" class=\"__bg_gif\" style=\"margin-right: auto; margin-left: auto; font-size: inherit; color: inherit; line-height: inherit; display: block; border-radius: 10px; box-sizing: border-box !important; overflow-wrap: break-word !important; width: 639px !important; visibility: visible !important; border: 2px solid green;\" title=\"\u8be6\u5c3d\u5b9e\u7528\u7684 PyCharm \u6559\u7a0b\uff0c\u8fd9\u7bc7\u6587\u7ae0\u503c\u5f97\u4e00\u770b\" src=\"http:\/\/www.zhushiyao.com\/wp-content\/uploads\/2020\/06\/5-1591632160.gif\" alt=\"\u8be6\u5c3d\u5b9e\u7528\u7684 PyCharm \u6559\u7a0b\uff0c\u8fd9\u7bc7\u6587\u7ae0\u503c\u5f97\u4e00\u770b\" \/><\/figure>\n<p style=\"margin-top: 1.5em; margin-bottom: 1.5em; max-width: 100%; min-height: 1em; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; white-space: normal; background-color: #ffffff; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"font-size: 15px;\">\u4f60\u53ef\u4ee5\u73a9\u4e00\u4e0b\u8fd9\u4e2a\u6e38\u620f\uff0c\u770b\u770b\u81ea\u5df1\u80fd\u5426\u731c\u4e2d\u6570\u5b57\u3002\uff08\u4e13\u4e1a\u5efa\u8bae\uff1a\u4ece 50 \u5f00\u59cb\u731c\u3002\uff09<\/span><\/p>\n<h2><span style=\"font-size: 15px;\"><span style=\"color: #ff0000;\"><strong>4. \u8fdb\u884c\u4ee3\u7801\u7684\u8c03\u8bd5<\/strong><\/span><\/span><\/h2>\n<p style=\"margin-top: 1.5em; margin-bottom: 1.5em; max-width: 100%; min-height: 1em; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; white-space: normal; background-color: #ffffff; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"font-size: 15px;\">\u627e\u5230\u795e\u79d8\u6570\u5b57\u4e86\u5417\uff1f\u5982\u679c\u627e\u5230\u4e86\uff0c\u4f60\u53ef\u80fd\u4f1a\u770b\u5230\u4e00\u4e9b\u5947\u602a\u7684\u4e1c\u897f\uff1a\u7a0b\u5e8f\u6ca1\u6709\u6253\u5370\u51fa\u795d\u8d3a\u4fe1\u606f\u548c\u663e\u793a\u9000\u51fa\u6309\u94ae\uff0c\u800c\u662f\u91cd\u65b0\u5f00\u59cb\u4e86\u3002\u8fd9\u5c31\u662f bug \u6240\u5728\u3002\u8981\u60f3\u53d1\u73b0\u7a0b\u5e8f\u91cd\u65b0\u5f00\u59cb\u7684\u539f\u56e0\uff0c\u4f60\u9700\u8981 debug\u3002<\/span><\/p>\n<p style=\"margin-top: 1.5em; margin-bottom: 1.5em; max-width: 100%; min-height: 1em; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; white-space: normal; background-color: #ffffff; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"font-size: 15px;\">\u9996\u5148\uff0c\u70b9\u51fb\u7b2c 8 \u884c\u4ee3\u7801\u5de6\u4fa7\u7684\u7a7a\u767d\u533a\u57df\uff0c\u8bbe\u7f6e\u65ad\u70b9\uff1a<\/span><\/p>\n<figure style=\"max-width: 100%; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; font-size: inherit; white-space: normal; background-color: #ffffff; line-height: inherit; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><img decoding=\"async\" style=\"margin-right: auto; margin-left: auto; font-size: inherit; color: inherit; line-height: inherit; display: block; border-radius: 10px; box-sizing: border-box !important; overflow-wrap: break-word !important; width: 640px !important; visibility: visible !important; border: 2px solid green;\" title=\"\u8be6\u5c3d\u5b9e\u7528\u7684 PyCharm \u6559\u7a0b\uff0c\u8fd9\u7bc7\u6587\u7ae0\u503c\u5f97\u4e00\u770b\" src=\"http:\/\/www.zhushiyao.com\/wp-content\/uploads\/2020\/06\/9-1591632160.jpeg\" alt=\"\u8be6\u5c3d\u5b9e\u7528\u7684 PyCharm \u6559\u7a0b\uff0c\u8fd9\u7bc7\u6587\u7ae0\u503c\u5f97\u4e00\u770b\" \/><\/figure>\n<p style=\"margin-top: 1.5em; margin-bottom: 1.5em; max-width: 100%; min-height: 1em; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; white-space: normal; background-color: #ffffff; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"font-size: 15px;\">\u65ad\u70b9\u5373\u7a0b\u5e8f\u8fd0\u884c\u5230\u8fd9\u4e00\u884c\u65f6\u4f1a\u81ea\u52a8\u505c\u6b62\uff0c\u4f60\u53ef\u4ee5\u63a2\u7d22\u65ad\u70b9\u5904\u4e4b\u540e\u7684\u4ee3\u7801\u6709\u4ec0\u4e48\u9519\u8bef\u3002\u63a5\u4e0b\u6765\uff0c\u4ece\u4ee5\u4e0b\u4e09\u79cd\u65b9\u5f0f\u4e2d\u9009\u62e9\u4e00\u79cd\u5f00\u59cb debug\uff1a<\/span><\/p>\n<ol class=\"list-paddingleft-2\" style=\"padding-left: 32px; max-width: 100%; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; font-size: inherit; white-space: normal; background-color: #ffffff; width: 577.422px; line-height: inherit; overflow-wrap: break-word !important;\">\n<li style=\"margin-bottom: 0.5em; max-width: 100%; font-size: 15px; color: inherit; line-height: inherit; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\n<p style=\"max-width: 100%; min-height: 1em; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"max-width: 100%; color: inherit; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\u5728 Mac \u7cfb\u7edf\u4e2d\u4f7f\u7528 Ctrl+Shift+D \u952e\uff0c\u5728 Windows \u6216 Linux \u7cfb\u7edf\u4e2d\u4f7f\u7528 Shift+Alt+F9 \u952e\u3002<\/span><\/p>\n<\/li>\n<li style=\"margin-bottom: 0.5em; max-width: 100%; font-size: 15px; color: inherit; line-height: inherit; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\n<p style=\"max-width: 100%; min-height: 1em; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"max-width: 100%; color: inherit; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\u53f3\u952e\u5355\u51fb\u80cc\u666f\uff0c\u9009\u62e9\u300cDebug \u300eguess_game\u300f\u300d\u3002<\/span><\/p>\n<\/li>\n<li style=\"margin-bottom: 0.5em; max-width: 100%; font-size: 15px; color: inherit; line-height: inherit; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\n<p style=\"max-width: 100%; min-height: 1em; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"font-size: 15px;\">\u70b9\u51fb<strong style=\"max-width: 100%; font-size: inherit; line-height: inherit; color: #ff3502; box-sizing: border-box !important; overflow-wrap: break-word !important;\">main<\/strong>\u4ece\u53e5\u5de6\u4fa7\u7684\u7eff\u8272\u5c0f\u7bad\u5934\uff0c\u9009\u62e9\u300cDebug \u300eguess_game\u300f\u300d\u3002<\/span><\/p>\n<\/li>\n<\/ol>\n<p style=\"margin-top: 1.5em; margin-bottom: 1.5em; max-width: 100%; min-height: 1em; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; white-space: normal; background-color: #ffffff; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"font-size: 15px;\">\u4e4b\u540e\uff0c\u4f60\u5c06\u770b\u5230\u5e95\u90e8\u51fa\u73b0 Debug \u7a97\u53e3\uff1a<\/span><\/p>\n<figure style=\"max-width: 100%; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; font-size: inherit; white-space: normal; background-color: #ffffff; line-height: inherit; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><img decoding=\"async\" style=\"margin-right: auto; margin-left: auto; font-size: inherit; color: inherit; line-height: inherit; display: block; border-radius: 10px; box-sizing: border-box !important; overflow-wrap: break-word !important; width: 640px !important; visibility: visible !important; border: 2px solid green;\" title=\"\u8be6\u5c3d\u5b9e\u7528\u7684 PyCharm \u6559\u7a0b\uff0c\u8fd9\u7bc7\u6587\u7ae0\u503c\u5f97\u4e00\u770b\" src=\"http:\/\/www.zhushiyao.com\/wp-content\/uploads\/2020\/06\/2-1591632161.jpeg\" alt=\"\u8be6\u5c3d\u5b9e\u7528\u7684 PyCharm \u6559\u7a0b\uff0c\u8fd9\u7bc7\u6587\u7ae0\u503c\u5f97\u4e00\u770b\" \/><\/figure>\n<p style=\"margin-top: 1.5em; margin-bottom: 1.5em; max-width: 100%; min-height: 1em; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; white-space: normal; background-color: #ffffff; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"font-size: 15px;\">\u6309\u7167\u4e0b\u5217\u6b65\u9aa4\u6267\u884c\u7a0b\u5e8f debug\uff1a<\/span><\/p>\n<ol class=\"list-paddingleft-2\" style=\"padding-left: 32px; max-width: 100%; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; font-size: inherit; white-space: normal; background-color: #ffffff; width: 577.422px; line-height: inherit; overflow-wrap: break-word !important;\">\n<li style=\"margin-bottom: 0.5em; max-width: 100%; font-size: 15px; color: inherit; line-height: inherit; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\n<p style=\"max-width: 100%; min-height: 1em; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"max-width: 100%; color: inherit; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\u6ce8\u610f\u5f53\u524d\u884c\u88ab\u84dd\u8272\u9ad8\u4eae\u663e\u793a\u3002<\/span><\/p>\n<\/li>\n<li style=\"margin-bottom: 0.5em; max-width: 100%; font-size: 15px; color: inherit; line-height: inherit; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\n<p style=\"max-width: 100%; min-height: 1em; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"max-width: 100%; color: inherit; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\">Debug \u7a97\u53e3\u663e\u793a random_int \u53ca\u5176\u503c\u3002\u8bb0\u5f55\u8be5\u6570\u5b57\u3002\uff08\u4e0a\u56fe\u4e2d\u8be5\u6570\u5b57\u4e3a 85\u3002\uff09<\/span><\/p>\n<\/li>\n<li style=\"margin-bottom: 0.5em; max-width: 100%; font-size: 15px; color: inherit; line-height: inherit; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\n<p style=\"max-width: 100%; min-height: 1em; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"max-width: 100%; color: inherit; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\u70b9\u51fb F8 \u6267\u884c\u5f53\u524d\u4ee3\u7801\u884c\uff0c\u5e76\u6267\u884c\u5230\u4e0b\u4e00\u884c\u4ee3\u7801\u3002\u5982\u6709\u5fc5\u8981\uff0c\u4f60\u4e5f\u53ef\u4ee5\u4f7f\u7528 F7 \u8df3\u8f6c\u5230\u5f53\u524d\u884c\u5185\u7684\u51fd\u6570\u3002\u968f\u7740\u4f60\u7ee7\u7eed\u6267\u884c\u8bed\u53e5\uff0c\u53d8\u91cf\u7684\u53d8\u5316\u5c06\u81ea\u52a8\u5448\u73b0\u5728 Debugger \u7a97\u53e3\u3002<\/span><\/p>\n<\/li>\n<li style=\"margin-bottom: 0.5em; max-width: 100%; font-size: 15px; color: inherit; line-height: inherit; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\n<p style=\"max-width: 100%; min-height: 1em; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"max-width: 100%; color: inherit; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\u6ce8\u610f Debugger \u6807\u7b7e\u53f3\u4fa7\u6709\u4e00\u4e2a Console \u6807\u7b7e\u3002Console \u6807\u7b7e\u548c Debugger \u6807\u7b7e\u76f8\u4e92\u72ec\u7acb\u3002\u4f60\u53ef\u4ee5\u5728 Console \u4e2d\u4e0e\u7a0b\u5e8f\u8fdb\u884c\u4ea4\u4e92\uff0c\u5728 Debugger \u4e2d\u6267\u884c debug \u52a8\u4f5c\u3002<\/span><\/p>\n<\/li>\n<li style=\"margin-bottom: 0.5em; max-width: 100%; font-size: 15px; color: inherit; line-height: inherit; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\n<p style=\"max-width: 100%; min-height: 1em; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"max-width: 100%; color: inherit; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\u8f6c\u5411 Console \u6807\u7b7e\uff0c\u8fdb\u5165\u731c\u6d4b\u8fc7\u7a0b\u3002<\/span><\/p>\n<\/li>\n<li style=\"margin-bottom: 0.5em; max-width: 100%; font-size: 15px; color: inherit; line-height: inherit; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\n<p style=\"max-width: 100%; min-height: 1em; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"max-width: 100%; color: inherit; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\u952e\u5165\u5de6\u4fa7 Debugger \u6807\u7b7e\u4e2d\u663e\u793a\u7684\u6570\u5b57\uff0c\u70b9\u51fb Enter \u952e\u3002<\/span><\/p>\n<\/li>\n<li style=\"margin-bottom: 0.5em; max-width: 100%; font-size: 15px; color: inherit; line-height: inherit; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\n<p style=\"max-width: 100%; min-height: 1em; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"max-width: 100%; color: inherit; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\u8f6c\u56de Debugger \u6807\u7b7e\u3002<\/span><\/p>\n<\/li>\n<li style=\"margin-bottom: 0.5em; max-width: 100%; font-size: 15px; color: inherit; line-height: inherit; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\n<p style=\"max-width: 100%; min-height: 1em; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"max-width: 100%; color: inherit; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\u518d\u6b21\u70b9\u51fb F8\uff0c\u8ba1\u7b97 if \u8bed\u53e5\u3002\u6ce8\u610f\u73b0\u5728\u4f60\u5728\u7b2c 14 \u884c\u3002\u4e3a\u4ec0\u4e48\u4e0d\u662f\u7b2c 11 \u884c\u5462\uff1f\u56e0\u4e3a\u7b2c 10 \u884c\u7684 if \u8bed\u53e5\u88ab\u8ba1\u7b97\u4e3a False\u3002\u90a3\u4e48\u4e3a\u4ec0\u4e48\u5f53\u4f60\u952e\u5165\u6570\u5b57\u540e\u5b83\u7b97\u51fa\u6765\u4e3a False \u4e86\u5462\uff1f<\/span><\/p>\n<\/li>\n<li style=\"margin-bottom: 0.5em; max-width: 100%; font-size: 15px; color: inherit; line-height: inherit; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\n<p style=\"max-width: 100%; min-height: 1em; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"max-width: 100%; color: inherit; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\u4ed4\u7ec6\u770b\u7b2c 10 \u884c\uff0c\u6ce8\u610f\u6211\u4eec\u5728\u5bf9\u6bd4 user_guess \u548c\u4e00\u4e2a\u9519\u8bef\u7684\u9879\u3002\u6211\u4eec\u5e94\u8be5\u5bf9\u6bd4\u7528\u6237\u731c\u6d4b\u7684\u6570\u5b57\u548c random_int\uff0c\u4f46\u6b64\u5904\u6211\u4eec\u5bf9\u6bd4\u7684\u662f randint\uff08\u4ece random \u5305\u5bfc\u5165\u7684\u51fd\u6570\uff09\u3002<\/span><\/p>\n<\/li>\n<li style=\"margin-bottom: 0.5em; max-width: 100%; font-size: 15px; color: inherit; line-height: inherit; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\n<p style=\"max-width: 100%; min-height: 1em; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"max-width: 100%; color: inherit; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\u5c06 randint \u66f4\u6539\u4e3a random_int\uff0c\u6309\u7167\u540c\u6837\u7684\u6b65\u9aa4\u91cd\u65b0\u5f00\u59cb debug\u3002\u4f60\u4f1a\u53d1\u73b0\uff0c\u8fd9\u4e00\u6b21\u5230\u8fbe\u7684\u662f\u7b2c 11 \u884c\uff0c\u7b2c 10 \u884c\u7b97\u51fa\u6765\u4e3a True\uff1a<\/span><\/p>\n<\/li>\n<\/ol>\n<p style=\"margin-top: 1.5em; margin-bottom: 1.5em; max-width: 100%; min-height: 1em; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; white-space: normal; background-color: #ffffff; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"font-size: 15px;\">\u606d\u559c\u4f60\uff0cbug \u88ab\u4fee\u590d\u4e86\uff01<\/span><\/p>\n<h2><span style=\"font-size: 15px;\"><span style=\"color: #ff0000;\"><strong>5. \u8fdb\u884c\u4ee3\u7801\u6d4b\u8bd5<\/strong><\/span><\/span><\/h2>\n<p style=\"margin-top: 1.5em; margin-bottom: 1.5em; max-width: 100%; min-height: 1em; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; white-space: normal; background-color: #ffffff; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"font-size: 15px;\">\u4e0d\u7ecf\u5355\u5143\u6d4b\u8bd5\u7684\u5e94\u7528\u90fd\u4e0d\u53ef\u9760\u3002PyCharm \u53ef\u4ee5\u5e2e\u52a9\u4f60\u5feb\u901f\u8212\u9002\u5730\u5199\u5355\u5143\u6d4b\u8bd5\u5e76\u8fd0\u884c\u3002\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0cunittest \u88ab\u7528\u4f5c\u6d4b\u8bd5\u8fd0\u884c\u5668\uff0c\u800c PyCharm \u8fd8\u652f\u6301\u5176\u4ed6\u6d4b\u8bd5\u6846\u67b6\uff0c\u5982 pytest\u3001nose\u3001doctest\u3001tox \u548c trial\u3002\u4f8b\u5982\uff0c\u4f60\u53ef\u4ee5\u6309\u7167\u4ee5\u4e0b\u6b65\u9aa4\u4e3a\u9879\u76ee\u9009\u62e9 pytest \u6d4b\u8bd5\u8fd0\u884c\u5668\uff1a<\/span><\/p>\n<ol class=\"list-paddingleft-2\" style=\"padding-left: 32px; max-width: 100%; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; font-size: inherit; white-space: normal; background-color: #ffffff; width: 577.422px; line-height: inherit; overflow-wrap: break-word !important;\">\n<li style=\"margin-bottom: 0.5em; max-width: 100%; font-size: 15px; color: inherit; line-height: inherit; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\n<p style=\"max-width: 100%; min-height: 1em; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"max-width: 100%; color: inherit; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\u6253\u5f00 Settings\/Preferences \u2192 Tools \u2192 Python Integrated Tools \u8bbe\u7f6e\u5bf9\u8bdd\u6846\u3002<\/span><\/p>\n<\/li>\n<li style=\"margin-bottom: 0.5em; max-width: 100%; font-size: 15px; color: inherit; line-height: inherit; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\n<p style=\"max-width: 100%; min-height: 1em; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"max-width: 100%; color: inherit; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\u5728\u9ed8\u8ba4\u6d4b\u8bd5\u8fd0\u884c\u5668\u5b57\u6bb5\u4e2d\u9009\u62e9 pytest\u3002<\/span><\/p>\n<\/li>\n<li style=\"margin-bottom: 0.5em; max-width: 100%; font-size: 15px; color: inherit; line-height: inherit; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\n<p style=\"max-width: 100%; min-height: 1em; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"max-width: 100%; color: inherit; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\u70b9\u51fb OK \u4fdd\u5b58\u8be5\u8bbe\u7f6e\u3002<\/span><\/p>\n<\/li>\n<\/ol>\n<p style=\"margin-top: 1.5em; margin-bottom: 1.5em; max-width: 100%; min-height: 1em; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; white-space: normal; background-color: #ffffff; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"font-size: 15px;\">\u672c\u6559\u7a0b\u7684\u793a\u4f8b\u5c06\u4f7f\u7528\u9ed8\u8ba4\u6d4b\u8bd5\u8fd0\u884c\u5668 unittest\u3002<\/span><\/p>\n<p style=\"margin-top: 1.5em; margin-bottom: 1.5em; max-width: 100%; min-height: 1em; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; white-space: normal; background-color: #ffffff; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"font-size: 15px;\">\u5728\u540c\u4e00\u4e2a\u9879\u76ee\u4e2d\uff0c\u521b\u5efa\u6587\u4ef6 calculator.py\uff0c\u5e76\u5c06\u4ee5\u4e0b Calculator \u7c7b\u653e\u5165\u8be5\u6587\u4ef6\uff1a<\/span><\/p>\n<figure style=\"max-width: 100%; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; font-size: inherit; white-space: normal; background-color: #ffffff; line-height: inherit; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><img decoding=\"async\" style=\"margin-right: auto; margin-left: auto; font-size: inherit; color: inherit; line-height: inherit; display: block; border-radius: 10px; box-sizing: border-box !important; overflow-wrap: break-word !important; width: 677px !important; visibility: visible !important; border: 2px solid green;\" title=\"\u8be6\u5c3d\u5b9e\u7528\u7684 PyCharm \u6559\u7a0b\uff0c\u8fd9\u7bc7\u6587\u7ae0\u503c\u5f97\u4e00\u770b\" src=\"http:\/\/www.zhushiyao.com\/wp-content\/uploads\/2020\/06\/6-1591632161.jpeg\" alt=\"\u8be6\u5c3d\u5b9e\u7528\u7684 PyCharm \u6559\u7a0b\uff0c\u8fd9\u7bc7\u6587\u7ae0\u503c\u5f97\u4e00\u770b\" \/><\/figure>\n<p style=\"margin-top: 1.5em; margin-bottom: 1.5em; max-width: 100%; min-height: 1em; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; white-space: normal; background-color: #ffffff; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"font-size: 15px;\">PyCharm \u4f7f\u5f97\u4e3a\u5df2\u6709\u4ee3\u7801\u521b\u5efa\u6d4b\u8bd5\u53d8\u5f97\u8f7b\u800c\u6613\u4e3e\u3002\u6253\u5f00 calculator.py \u6587\u4ef6\uff0c\u6267\u884c\u4ee5\u4e0b\u6b65\u9aa4\u4e2d\u7684\u4efb\u610f\u4e00\u4e2a\uff1a<\/span><\/p>\n<ul class=\"list-paddingleft-2\" style=\"padding-left: 32px; max-width: 100%; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; font-size: inherit; white-space: normal; background-color: #ffffff; width: 577.422px; line-height: inherit; overflow-wrap: break-word !important;\">\n<li style=\"margin-bottom: 0.5em; max-width: 100%; font-size: 15px; color: inherit; line-height: inherit; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\n<p style=\"max-width: 100%; min-height: 1em; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"max-width: 100%; color: inherit; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\u5728 Mac \u7cfb\u7edf\u4e2d\u4f7f\u7528 Shift+Cmd+T \u952e\uff0c\u5728 Windows \u6216 Linux \u7cfb\u7edf\u4e2d\u4f7f\u7528 Ctrl+Shift+T\u3002<\/span><\/p>\n<\/li>\n<li style=\"margin-bottom: 0.5em; max-width: 100%; font-size: 15px; color: inherit; line-height: inherit; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\n<p style=\"max-width: 100%; min-height: 1em; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"max-width: 100%; color: inherit; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\u53f3\u952e\u5355\u51fb\u8be5\u7c7b\u7684\u80cc\u666f\uff0c\u9009\u62e9\u300cGo To and Test\u300d\u3002<\/span><\/p>\n<\/li>\n<li style=\"margin-bottom: 0.5em; max-width: 100%; font-size: 15px; color: inherit; line-height: inherit; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\n<p style=\"max-width: 100%; min-height: 1em; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"max-width: 100%; color: inherit; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\u5728\u4e3b\u83dc\u5355\u4e2d\u5417\uff0c\u9009\u62e9 Navigate \u2192 Test\u3002<\/span><\/p>\n<\/li>\n<\/ul>\n<p style=\"margin-top: 1.5em; margin-bottom: 1.5em; max-width: 100%; min-height: 1em; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; white-space: normal; background-color: #ffffff; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"font-size: 15px;\">\u9009\u62e9\u300cCreate New Test\u2026\u300d\uff0c\u5f97\u5230\u4ee5\u4e0b\u7a97\u53e3\uff1a<\/span><\/p>\n<figure style=\"max-width: 100%; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; font-size: inherit; white-space: normal; background-color: #ffffff; line-height: inherit; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><img decoding=\"async\" style=\"margin-right: auto; margin-left: auto; font-size: inherit; color: inherit; line-height: inherit; display: block; border-radius: 10px; box-sizing: border-box !important; overflow-wrap: break-word !important; width: 640px !important; visibility: visible !important; border: 2px solid green;\" title=\"\u8be6\u5c3d\u5b9e\u7528\u7684 PyCharm \u6559\u7a0b\uff0c\u8fd9\u7bc7\u6587\u7ae0\u503c\u5f97\u4e00\u770b\" src=\"http:\/\/www.zhushiyao.com\/wp-content\/uploads\/2020\/06\/8-1591632161.jpeg\" alt=\"\u8be6\u5c3d\u5b9e\u7528\u7684 PyCharm \u6559\u7a0b\uff0c\u8fd9\u7bc7\u6587\u7ae0\u503c\u5f97\u4e00\u770b\" \/><\/figure>\n<p style=\"margin-top: 1.5em; margin-bottom: 1.5em; max-width: 100%; min-height: 1em; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; white-space: normal; background-color: #ffffff; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"font-size: 15px;\">Target directory\u3001Test file name \u548c Test class name \u8fd9\u4e09\u9879\u5747\u4fdd\u7559\u9ed8\u8ba4\u8bbe\u7f6e\u3002\u9009\u4e2d\u4e0a\u56fe\u4e2d\u4e24\u79cd\u9700\u8981\u6d4b\u8bd5\u7684\u65b9\u6cd5\u5e76\u70b9\u51fb OK\u3002\u597d\u4e86\uff01PyCharm \u81ea\u52a8\u521b\u5efa\u6587\u4ef6 test_calculator.py\uff0c\u5e76\u5728\u5176\u4e2d\u521b\u5efa\u4e86\u4ee5\u4e0b stub test\uff1a<\/span><\/p>\n<figure style=\"max-width: 100%; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; font-size: inherit; white-space: normal; background-color: #ffffff; line-height: inherit; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><img decoding=\"async\" style=\"margin-right: auto; margin-left: auto; font-size: inherit; color: inherit; line-height: inherit; display: block; border-radius: 10px; box-sizing: border-box !important; overflow-wrap: break-word !important; width: 640px !important; visibility: visible !important; border: 2px solid green;\" title=\"\u8be6\u5c3d\u5b9e\u7528\u7684 PyCharm \u6559\u7a0b\uff0c\u8fd9\u7bc7\u6587\u7ae0\u503c\u5f97\u4e00\u770b\" src=\"http:\/\/www.zhushiyao.com\/wp-content\/uploads\/2020\/06\/9-1591632161.jpeg\" alt=\"\u8be6\u5c3d\u5b9e\u7528\u7684 PyCharm \u6559\u7a0b\uff0c\u8fd9\u7bc7\u6587\u7ae0\u503c\u5f97\u4e00\u770b\" \/><\/figure>\n<p style=\"margin-top: 1.5em; margin-bottom: 1.5em; max-width: 100%; min-height: 1em; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; white-space: normal; background-color: #ffffff; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"font-size: 15px;\">\u4f7f\u7528\u4ee5\u4e0b\u65b9\u6cd5\u4e2d\u7684\u4efb\u610f\u4e00\u4e2a\u8fd0\u884c\u6d4b\u8bd5\uff1a<\/span><\/p>\n<ul class=\"list-paddingleft-2\" style=\"padding-left: 32px; max-width: 100%; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; font-size: inherit; white-space: normal; background-color: #ffffff; width: 577.422px; line-height: inherit; overflow-wrap: break-word !important;\">\n<li style=\"margin-bottom: 0.5em; max-width: 100%; font-size: 15px; color: inherit; line-height: inherit; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\n<p style=\"max-width: 100%; min-height: 1em; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"max-width: 100%; color: inherit; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\u5728 Mac \u7cfb\u7edf\u4e2d\u4f7f\u7528 Ctrl+R \u952e\uff0c\u5728 Windows \u6216 Linux \u7cfb\u7edf\u4e2d\u4f7f\u7528 Shift+F10 \u952e\u3002<\/span><\/p>\n<\/li>\n<li style=\"margin-bottom: 0.5em; max-width: 100%; font-size: 15px; color: inherit; line-height: inherit; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\n<p style=\"max-width: 100%; min-height: 1em; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"max-width: 100%; color: inherit; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\u53f3\u952e\u5355\u51fb\u80cc\u666f\uff0c\u9009\u62e9\u300cRun \u300eUnittests for test_calculator.py\u300f\u300d\u3002<\/span><\/p>\n<\/li>\n<li style=\"margin-bottom: 0.5em; max-width: 100%; font-size: 15px; color: inherit; line-height: inherit; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\n<p style=\"max-width: 100%; min-height: 1em; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"max-width: 100%; color: inherit; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\u70b9\u51fb\u6d4b\u8bd5\u7c7b\u540d\u79f0\u5de6\u4fa7\u7684\u7eff\u8272\u5c0f\u7bad\u5934\uff0c\u9009\u62e9\u300cRun \u300eUnittests for test_calculator.py\u300f\u300d\u3002<\/span><\/p>\n<\/li>\n<\/ul>\n<p style=\"margin-top: 1.5em; margin-bottom: 1.5em; max-width: 100%; min-height: 1em; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; white-space: normal; background-color: #ffffff; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"font-size: 15px;\">\u4f60\u5c06\u770b\u5230\u5e95\u90e8\u51fa\u73b0\u6d4b\u8bd5\u7a97\u53e3\uff0c\u6240\u6709\u6d4b\u8bd5\u5747\u5931\u8d25\uff1a<\/span><\/p>\n<figure style=\"max-width: 100%; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; font-size: inherit; white-space: normal; background-color: #ffffff; line-height: inherit; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><img decoding=\"async\" style=\"margin-right: auto; margin-left: auto; font-size: inherit; color: inherit; line-height: inherit; display: block; border-radius: 10px; box-sizing: border-box !important; overflow-wrap: break-word !important; width: 640px !important; visibility: visible !important; border: 2px solid green;\" title=\"\u8be6\u5c3d\u5b9e\u7528\u7684 PyCharm \u6559\u7a0b\uff0c\u8fd9\u7bc7\u6587\u7ae0\u503c\u5f97\u4e00\u770b\" src=\"http:\/\/www.zhushiyao.com\/wp-content\/uploads\/2020\/06\/8-1591632161-1.jpeg\" alt=\"\u8be6\u5c3d\u5b9e\u7528\u7684 PyCharm \u6559\u7a0b\uff0c\u8fd9\u7bc7\u6587\u7ae0\u503c\u5f97\u4e00\u770b\" \/><\/figure>\n<p style=\"margin-top: 1.5em; margin-bottom: 1.5em; max-width: 100%; min-height: 1em; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; white-space: normal; background-color: #ffffff; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"font-size: 15px;\">\u6ce8\u610f\uff0c\u5de6\u4fa7\u662f\u6d4b\u8bd5\u7ed3\u679c\u7684\u5c42\u6b21\u7ed3\u6784\uff0c\u53f3\u4fa7\u662f\u7ec8\u7aef\u7684\u8f93\u51fa\u3002\u73b0\u5728\uff0c\u5c06\u4ee3\u7801\u66f4\u6539\u6210\u4ee5\u4e0b\u4ee3\u7801\uff0c\u5b9e\u73b0 test_add\uff1a<\/span><\/p>\n<figure style=\"max-width: 100%; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; font-size: inherit; white-space: normal; background-color: #ffffff; line-height: inherit; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><img decoding=\"async\" style=\"margin-right: auto; margin-left: auto; font-size: inherit; color: inherit; line-height: inherit; display: block; border-radius: 10px; box-sizing: border-box !important; overflow-wrap: break-word !important; width: 640px !important; visibility: visible !important; border: 2px solid green;\" title=\"\u8be6\u5c3d\u5b9e\u7528\u7684 PyCharm \u6559\u7a0b\uff0c\u8fd9\u7bc7\u6587\u7ae0\u503c\u5f97\u4e00\u770b\" src=\"http:\/\/www.zhushiyao.com\/wp-content\/uploads\/2020\/06\/4-1591632161.jpeg\" alt=\"\u8be6\u5c3d\u5b9e\u7528\u7684 PyCharm \u6559\u7a0b\uff0c\u8fd9\u7bc7\u6587\u7ae0\u503c\u5f97\u4e00\u770b\" \/><\/figure>\n<p style=\"margin-top: 1.5em; margin-bottom: 1.5em; max-width: 100%; min-height: 1em; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; white-space: normal; background-color: #ffffff; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"font-size: 15px;\">\u91cd\u65b0\u8fd0\u884c\u6d4b\u8bd5\uff0c\u4f60\u4f1a\u770b\u5230\u4e00\u4e2a\u6d4b\u8bd5\u901a\u8fc7\u4e86\uff0c\u53e6\u4e00\u4e2a\u5219\u5931\u8d25\u3002\u6309\u7167\u5982\u4e0b\u64cd\u4f5c\u63a2\u7d22\u4e0d\u540c\u9009\u9879\uff0c\u6765\u5c55\u793a\u5df2\u901a\u8fc7\u6d4b\u8bd5\u548c\u88ab\u5ffd\u7565\u6d4b\u8bd5\uff0c\u6309\u7167\u5b57\u6bcd\u987a\u5e8f\u5bf9\u6d4b\u8bd5\u8fdb\u884c\u6392\u5e8f\uff0c\u4ee5\u53ca\u6309\u7167\u65f6\u957f\u5bf9\u6d4b\u8bd5\u8fdb\u884c\u6392\u5e8f\uff1a<\/span><\/p>\n<figure style=\"max-width: 100%; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; font-size: inherit; white-space: normal; background-color: #ffffff; line-height: inherit; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><img decoding=\"async\" class=\"__bg_gif\" style=\"margin-right: auto; margin-left: auto; font-size: inherit; color: inherit; line-height: inherit; display: block; border-radius: 10px; box-sizing: border-box !important; overflow-wrap: break-word !important; width: 639px !important; visibility: visible !important; border: 2px solid green;\" title=\"\u8be6\u5c3d\u5b9e\u7528\u7684 PyCharm \u6559\u7a0b\uff0c\u8fd9\u7bc7\u6587\u7ae0\u503c\u5f97\u4e00\u770b\" src=\"http:\/\/www.zhushiyao.com\/wp-content\/uploads\/2020\/06\/5-1591632161.gif\" alt=\"\u8be6\u5c3d\u5b9e\u7528\u7684 PyCharm \u6559\u7a0b\uff0c\u8fd9\u7bc7\u6587\u7ae0\u503c\u5f97\u4e00\u770b\" \/><\/figure>\n<p style=\"margin-top: 1.5em; margin-bottom: 1.5em; max-width: 100%; min-height: 1em; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; white-space: normal; background-color: #ffffff; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"font-size: 15px;\">\u6ce8\u610f\uff0c\u4e0a\u56fe\u4e2d\u7684 sleep(0.1) \u65b9\u6cd5\u7684\u4f5c\u7528\u662f\u4f7f\u5176\u4e2d\u4e00\u4e2a\u6d4b\u8bd5\u53d8\u6162\uff0c\u4ee5\u4fbf\u6309\u65f6\u957f\u5bf9\u6d4b\u8bd5\u8fdb\u884c\u6392\u5e8f\u3002<\/span><\/p>\n<h2><span style=\"font-size: 15px;\"><span style=\"color: #ff0000;\"><strong>6. \u7f16\u8f91\u5df2\u6709\u9879\u76ee<\/strong><\/span><\/span><\/h2>\n<p style=\"margin-top: 1.5em; margin-bottom: 1.5em; max-width: 100%; min-height: 1em; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; white-space: normal; background-color: #ffffff; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"font-size: 15px;\">\u5355\u6587\u4ef6\u9879\u76ee\u975e\u5e38\u9002\u5408\u4f5c\u4e3a\u793a\u4f8b\uff0c\u4f46\u4f60\u901a\u5e38\u9700\u8981\u5904\u7406\u8f83\u5927\u7684\u9879\u76ee\u3002\u8fd9\u90e8\u5206\u5c06\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528 PyCharm \u5904\u7406\u8f83\u5927\u9879\u76ee\u3002<\/span><\/p>\n<p style=\"margin-top: 1.5em; margin-bottom: 1.5em; max-width: 100%; min-height: 1em; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; white-space: normal; background-color: #ffffff; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"font-size: 15px;\">\u4e3a\u4e86\u63a2\u7d22 PyCharm \u4ee5\u9879\u76ee\u4e3a\u4e2d\u5fc3\u7684\u7279\u5f81\uff0c\u4f60\u5c06\u4f7f\u7528 Alcazar web \u6846\u67b6\uff08\u8be5\u6846\u67b6\u7528\u4e8e\u5b66\u4e60\u76ee\u7684\uff09\u3002\u5728\u672c\u5730\u590d\u5236\u8be5 repo\uff08\u5730\u5740\uff1ahttps:\/\/realpython.com\/optins\/view\/alcazar-web-framework\/\uff09\u3002<\/span><\/p>\n<p style=\"margin-top: 1.5em; margin-bottom: 1.5em; max-width: 100%; min-height: 1em; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; white-space: normal; background-color: #ffffff; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"font-size: 15px;\">\u5f53\u4f60\u5728\u672c\u5730\u5df2\u6709\u9879\u76ee\u65f6\uff0c\u4f7f\u7528\u4ee5\u4e0b\u65b9\u6cd5\u4e2d\u7684\u4efb\u610f\u4e00\u4e2a\u5728 PyCharm \u4e2d\u6253\u5f00\u9879\u76ee\uff1a<\/span><\/p>\n<ul class=\"list-paddingleft-2\" style=\"padding-left: 32px; max-width: 100%; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; font-size: inherit; white-space: normal; background-color: #ffffff; width: 577.422px; line-height: inherit; overflow-wrap: break-word !important;\">\n<li style=\"margin-bottom: 0.5em; max-width: 100%; font-size: 15px; color: inherit; line-height: inherit; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\n<p style=\"max-width: 100%; min-height: 1em; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"max-width: 100%; color: inherit; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\u5728\u4e3b\u83dc\u5355\u4e2d\u70b9\u51fb File \u2192 Open\u3002<\/span><\/p>\n<\/li>\n<li style=\"margin-bottom: 0.5em; max-width: 100%; font-size: 15px; color: inherit; line-height: inherit; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\n<p style=\"max-width: 100%; min-height: 1em; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"max-width: 100%; color: inherit; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\u5728\u6b22\u8fce\u9875\u9762\u70b9\u51fb Open\u3002<\/span><\/p>\n<\/li>\n<\/ul>\n<p style=\"margin-top: 1.5em; margin-bottom: 1.5em; max-width: 100%; min-height: 1em; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; white-space: normal; background-color: #ffffff; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"font-size: 15px;\">\u4e4b\u540e\uff0c\u5728\u8ba1\u7b97\u673a\u4e2d\u627e\u5230\u5305\u542b\u8be5\u9879\u76ee\u7684\u6587\u4ef6\u5939\uff0c\u5e76\u6253\u5f00\u3002<\/span><\/p>\n<p style=\"margin-top: 1.5em; margin-bottom: 1.5em; max-width: 100%; min-height: 1em; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; white-space: normal; background-color: #ffffff; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"font-size: 15px;\">\u5982\u679c\u8be5\u9879\u76ee\u5305\u542b\u865a\u62df\u73af\u5883\uff0cPyCharm \u5c06\u81ea\u52a8\u4f7f\u7528\u8be5\u865a\u62df\u73af\u5883\uff0c\u5e76\u5c06\u5b83\u4f5c\u4e3a\u9879\u76ee\u89e3\u91ca\u5668\u3002<\/span><\/p>\n<p style=\"margin-top: 1.5em; margin-bottom: 1.5em; max-width: 100%; min-height: 1em; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; white-space: normal; background-color: #ffffff; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"font-size: 15px;\">\u5982\u679c\u4f60\u9700\u8981\u914d\u7f6e\u4e0d\u540c\u7684\u865a\u62df\u73af\u5883 virtualenv\uff0c\u5728 Mac \u4e0a\u6253\u5f00 Preferences\uff0c\u6216\u5728 Windows \u6216 Linux \u7cfb\u7edf\u4e2d\u4f7f\u7528 Ctrl+Alt+S \u6253\u5f00 Settings\uff0c\u627e\u5230 Project: ProjectName\u3002\u6253\u5f00\u4e0b\u62c9\u5217\u8868\uff0c\u9009\u62e9 Project Interpreter\uff1a<\/span><\/p>\n<p style=\"margin-top: 1.5em; margin-bottom: 1.5em; max-width: 100%; min-height: 1em; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; white-space: normal; background-color: #ffffff; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"font-size: 15px;\">\u4ece\u4e0b\u62c9\u5217\u8868\u4e2d\u9009\u62e9 virtualenv\u3002\u5982\u679c\u6ca1\u6709\u8981\u9009\u62e9\u7684\u9879\uff0c\u5219\u70b9\u51fb\u4e0b\u62c9\u5217\u8868\u53f3\u65b9\u7684\u8bbe\u7f6e\u6309\u94ae\u9009\u62e9 Add\u2026\u3002\u5176\u4f59\u6b65\u9aa4\u548c\u521b\u5efa\u65b0\u9879\u76ee\u7684\u6b65\u9aa4\u76f8\u540c\u3002<\/span><\/p>\n<h2><span style=\"font-size: 15px;\"><span style=\"color: #ff0000;\"><strong>7. \u4f7f\u7528\u641c\u7d22\u548c\u5bfc\u822a<\/strong><\/span><\/span><\/h2>\n<p style=\"margin-top: 1.5em; margin-bottom: 1.5em; max-width: 100%; min-height: 1em; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; white-space: normal; background-color: #ffffff; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"font-size: 15px;\">\u5728\u5927\u9879\u76ee\u4e2d\uff0c\u6211\u4eec\u5f88\u96be\u8bb0\u4f4f\u6bcf\u4e2a\u4e8b\u7269\u7684\u4f4d\u7f6e\uff0c\u56e0\u6b64\u5feb\u901f\u5bfc\u822a\u548c\u641c\u7d22\u975e\u5e38\u91cd\u8981\u3002PyCharm \u53ef\u4ee5\u63d0\u4f9b\u8fd9\u4e9b\u529f\u80fd\u3002\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u4f7f\u7528\u4e0a\u4e00\u8282\u4e2d\u6253\u5f00\u7684\u9879\u76ee\uff0c\u5b9e\u8df5\u4ee5\u4e0b\u5feb\u6377\u952e\uff1a<\/span><\/p>\n<ul class=\"list-paddingleft-2\" style=\"padding-left: 32px; max-width: 100%; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; font-size: inherit; white-space: normal; background-color: #ffffff; width: 577.422px; line-height: inherit; overflow-wrap: break-word !important;\">\n<li style=\"margin-bottom: 0.5em; max-width: 100%; font-size: 15px; color: inherit; line-height: inherit; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\n<p style=\"max-width: 100%; min-height: 1em; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"max-width: 100%; color: inherit; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\u5728\u5f53\u524d\u6587\u4ef6\u4e2d\u641c\u7d22\u4ee3\u7801\u6bb5\uff1a\u5728 Mac \u7cfb\u7edf\u4e2d\u4f7f\u7528 Cmd+F \u952e\uff0c\u5728 Windows \u6216 Linux \u7cfb\u7edf\u4e2d\u4f7f\u7528 Ctrl+F \u952e\u3002<\/span><\/p>\n<\/li>\n<li style=\"margin-bottom: 0.5em; max-width: 100%; font-size: 15px; color: inherit; line-height: inherit; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\n<p style=\"max-width: 100%; min-height: 1em; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"max-width: 100%; color: inherit; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\u5728\u6574\u4e2a\u9879\u76ee\u4e2d\u641c\u7d22\u4ee3\u7801\u6bb5\uff1a\u5728 Mac \u7cfb\u7edf\u4e2d\u4f7f\u7528 Cmd+Shift+F \u952e\uff0c\u5728 Windows \u6216 Linux \u7cfb\u7edf\u4e2d\u4f7f\u7528 Ctrl+Shift+F \u952e\u3002<\/span><\/p>\n<\/li>\n<li style=\"margin-bottom: 0.5em; max-width: 100%; font-size: 15px; color: inherit; line-height: inherit; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\n<p style=\"max-width: 100%; min-height: 1em; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"max-width: 100%; color: inherit; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\u641c\u7d22\u7c7b\uff1a\u5728 Mac \u7cfb\u7edf\u4e2d\u4f7f\u7528 Cmd+O \u952e\uff0c\u5728 Windows \u6216 Linux \u7cfb\u7edf\u4e2d\u4f7f\u7528 Ctrl+N \u952e\u3002<\/span><\/p>\n<\/li>\n<li style=\"margin-bottom: 0.5em; max-width: 100%; font-size: 15px; color: inherit; line-height: inherit; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\n<p style=\"max-width: 100%; min-height: 1em; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"max-width: 100%; color: inherit; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\u641c\u7d22\u6587\u4ef6\uff1a\u5728 Mac \u7cfb\u7edf\u4e2d\u4f7f\u7528 Cmd+Shift+O \u952e\uff0c\u5728 Windows \u6216 Linux \u7cfb\u7edf\u4e2d\u4f7f\u7528 Ctrl+Shift+N \u952e\u3002<\/span><\/p>\n<\/li>\n<li style=\"margin-bottom: 0.5em; max-width: 100%; font-size: 15px; color: inherit; line-height: inherit; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\n<p style=\"max-width: 100%; min-height: 1em; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"max-width: 100%; color: inherit; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\u5982\u679c\u4f60\u4e0d\u77e5\u9053\u8981\u641c\u7d22\u7684\u662f\u6587\u4ef6\u3001\u7c7b\u8fd8\u662f\u4ee3\u7801\u6bb5\uff0c\u5219\u641c\u7d22\u5168\u90e8\uff1a\u6309\u4e24\u6b21 Shift \u952e\u3002<\/span><\/p>\n<\/li>\n<\/ul>\n<p style=\"margin-top: 1.5em; margin-bottom: 1.5em; max-width: 100%; min-height: 1em; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; white-space: normal; background-color: #ffffff; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"font-size: 15px;\">\u5bfc\u822a\u53ef\u4f7f\u7528\u4ee5\u4e0b\u5feb\u6377\u952e\uff1a<\/span><\/p>\n<ul class=\"list-paddingleft-2\" style=\"padding-left: 32px; max-width: 100%; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; font-size: inherit; white-space: normal; background-color: #ffffff; width: 577.422px; line-height: inherit; overflow-wrap: break-word !important;\">\n<li style=\"margin-bottom: 0.5em; max-width: 100%; font-size: 15px; color: inherit; line-height: inherit; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\n<p style=\"max-width: 100%; min-height: 1em; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"max-width: 100%; color: inherit; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\u524d\u5f80\u53d8\u91cf\u7684\u58f0\u660e\uff1a\u5728 Mac \u7cfb\u7edf\u4e2d\u4f7f\u7528 Cmd \u952e\uff0c\u5728 Windows \u6216 Linux \u7cfb\u7edf\u4e2d\u4f7f\u7528 Ctrl \u952e\uff0c\u7136\u540e\u5355\u51fb\u53d8\u91cf\u3002<\/span><\/p>\n<\/li>\n<li style=\"margin-bottom: 0.5em; max-width: 100%; font-size: 15px; color: inherit; line-height: inherit; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\n<p style=\"max-width: 100%; min-height: 1em; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"max-width: 100%; color: inherit; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\u5bfb\u627e\u7c7b\u3001\u65b9\u6cd5\u6216\u6587\u4ef6\u7684\u7528\u6cd5\uff1a\u4f7f\u7528 Alt+F7 \u952e\u3002<\/span><\/p>\n<\/li>\n<li style=\"margin-bottom: 0.5em; max-width: 100%; font-size: 15px; color: inherit; line-height: inherit; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\n<p style=\"max-width: 100%; min-height: 1em; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"max-width: 100%; color: inherit; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\u67e5\u770b\u8fd1\u671f\u66f4\u6539\uff1a\u4f7f\u7528 Shift+Alt+C \u952e\uff0c\u6216\u8005\u5728\u4e3b\u83dc\u5355\u4e2d\u70b9\u51fb View \u2192 Recent Changes\u3002<\/span><\/p>\n<\/li>\n<li style=\"margin-bottom: 0.5em; max-width: 100%; font-size: 15px; color: inherit; line-height: inherit; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\n<p style=\"max-width: 100%; min-height: 1em; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"max-width: 100%; color: inherit; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\u67e5\u770b\u8fd1\u671f\u6587\u4ef6\uff1a\u5728 Mac \u7cfb\u7edf\u4e2d\u4f7f\u7528 Cmd+E \u952e\uff0c\u5728 Windows \u6216 Linux \u7cfb\u7edf\u4e2d\u4f7f\u7528 Ctrl+E \u952e\uff0c\u6216\u8005\u5728\u4e3b\u83dc\u5355\u4e2d\u70b9\u51fb View \u2192 Recent Files\u3002<\/span><\/p>\n<\/li>\n<li style=\"margin-bottom: 0.5em; max-width: 100%; font-size: 15px; color: inherit; line-height: inherit; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\n<p style=\"max-width: 100%; min-height: 1em; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"max-width: 100%; color: inherit; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\u591a\u6b21\u8df3\u8f6c\u540e\u5728\u5bfc\u822a\u5386\u53f2\u4e2d\u524d\u8fdb\u548c\u540e\u9000\uff1a\u5728 Mac \u7cfb\u7edf\u4e2d\u4f7f\u7528 Cmd+[ \/ Cmd+] \u952e\uff0c\u5728 Windows \u6216 Linux \u7cfb\u7edf\u4e2d\u4f7f\u7528 Ctrl+Alt+Left \/ Ctrl+Alt+Right \u952e\u3002<\/span><\/p>\n<\/li>\n<\/ul>\n<p style=\"margin-top: 1.5em; margin-bottom: 1.5em; max-width: 100%; min-height: 1em; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; white-space: normal; background-color: #ffffff; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"font-size: 15px;\">\u66f4\u591a\u7ec6\u8282\uff0c\u53c2\u89c1\u5b98\u65b9\u6587\u6863\uff1ahttps:\/\/www.jetbrains.com\/help\/pycharm\/tutorial-exploring-navigation-and-search.html\u3002<\/span><\/p>\n<p style=\"margin-top: 1.5em; margin-bottom: 1.5em; max-width: 100%; min-height: 1em; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; white-space: normal; background-color: #ffffff; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"font-size: 15px;\"><strong style=\"max-width: 100%; font-size: inherit; line-height: inherit; color: #ff3502; box-sizing: border-box !important; overflow-wrap: break-word !important;\">PyCharm \u4e2d\u7684\u7248\u672c\u63a7\u5236<\/strong><\/span><\/p>\n<p style=\"margin-top: 1.5em; margin-bottom: 1.5em; max-width: 100%; min-height: 1em; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; white-space: normal; background-color: #ffffff; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"font-size: 15px;\">\u7248\u672c\u63a7\u5236\u7cfb\u7edf\uff08\u5982 Git \u548c Mercurial\uff09\u662f\u73b0\u4ee3\u8f6f\u4ef6\u5f00\u53d1\u4e16\u754c\u4e2d\u6700\u91cd\u8981\u7684\u5de5\u5177\u4e4b\u4e00\u3002\u56e0\u6b64\uff0cIDE \u5fc5\u987b\u652f\u6301\u7248\u672c\u63a7\u5236\u3002PyCharm \u5728\u8fd9\u65b9\u9762\u505a\u5f97\u5f88\u597d\uff0c\u5b83\u96c6\u6210\u4e86\u5927\u91cf\u6d41\u884c\u7684\u7248\u672c\u63a7\u5236\u7cfb\u7edf\uff0c\u5982 Git\uff08\u548c Github (https:\/\/github.com\/)\uff09\u3001Mercurial\u3001Perforce \u548c Subversion\u3002<\/span><\/p>\n<p style=\"margin-top: 1.5em; margin-bottom: 1.5em; max-width: 100%; min-height: 1em; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; white-space: normal; background-color: #ffffff; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"font-size: 15px;\">\u6ce8\uff1a\u4ee5\u4e0b\u793a\u4f8b\u4e2d\u4f7f\u7528\u7684\u7248\u672c\u63a7\u5236\u7cfb\u7edf\u4e3a Git\u3002<\/span><\/p>\n<h2><span style=\"font-size: 15px;\"><span style=\"color: #ff0000;\"><strong>8. \u914d\u7f6e\u7248\u672c\u63a7\u5236\u7cfb\u7edf\uff08VCS\uff09<\/strong><\/span><\/span><\/h2>\n<p style=\"margin-top: 1.5em; margin-bottom: 1.5em; max-width: 100%; min-height: 1em; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; white-space: normal; background-color: #ffffff; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"font-size: 15px;\">\u8981\u60f3\u5b9e\u73b0 VCS \u96c6\u6210\uff0c\u4f60\u9700\u8981\u5728\u9876\u90e8\u83dc\u5355\u70b9\u51fb VCS \u2192 VCS Operations Popup\u2026\uff0c\u6216\u8005\u5728 Mac \u7cfb\u7edf\u4e2d\u4f7f\u7528 Ctrl+V \u952e\uff0c\u5728 Windows \u6216 Linux \u7cfb\u7edf\u4e2d\u4f7f\u7528 Alt+` \u952e\u3002\u9009\u62e9 Enable Version Control Integration\u2026\uff0c\u4f60\u5c06\u770b\u5230\u4ee5\u4e0b\u7a97\u53e3\uff1a<\/span><\/p>\n<figure style=\"max-width: 100%; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; font-size: inherit; white-space: normal; background-color: #ffffff; line-height: inherit; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><img decoding=\"async\" style=\"margin-right: auto; margin-left: auto; font-size: inherit; color: inherit; line-height: inherit; display: block; border-radius: 10px; box-sizing: border-box !important; overflow-wrap: break-word !important; width: 677px !important; visibility: visible !important; border: 2px solid green;\" title=\"\u8be6\u5c3d\u5b9e\u7528\u7684 PyCharm \u6559\u7a0b\uff0c\u8fd9\u7bc7\u6587\u7ae0\u503c\u5f97\u4e00\u770b\" src=\"http:\/\/www.zhushiyao.com\/wp-content\/uploads\/2020\/06\/6-1591632161-1.jpeg\" alt=\"\u8be6\u5c3d\u5b9e\u7528\u7684 PyCharm \u6559\u7a0b\uff0c\u8fd9\u7bc7\u6587\u7ae0\u503c\u5f97\u4e00\u770b\" \/><\/figure>\n<p style=\"margin-top: 1.5em; margin-bottom: 1.5em; max-width: 100%; min-height: 1em; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; white-space: normal; background-color: #ffffff; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"font-size: 15px;\">\u4ece\u4e0b\u62c9\u5217\u8868\u4e2d\u9009\u62e9 Git\uff0c\u70b9\u51fb OK\uff0c\u8fd9\u6837\u4f60\u5c31\u4e3a\u9879\u76ee\u8bbe\u7f6e\u597d\u4e86 VCS\u3002\uff08\u6ce8\u610f\uff0c\u5982\u679c\u4f60\u6253\u5f00\u7684\u5df2\u6709\u9879\u76ee\u5df2\u7ecf\u5177\u5907\u7248\u672c\u63a7\u5236\u7cfb\u7edf\uff0cPyCharm \u5c06\u4f1a\u53d1\u73b0\u5e76\u81ea\u52a8\u4f7f\u7528\u8be5\u7248\u672c\u63a7\u5236\u7cfb\u7edf\u3002\uff09<\/span><\/p>\n<p style=\"margin-top: 1.5em; margin-bottom: 1.5em; max-width: 100%; min-height: 1em; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; white-space: normal; background-color: #ffffff; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"font-size: 15px;\">\u8fd9\u65f6\u5982\u679c\u4f60\u524d\u5f80 VCS Operations Popup\u2026\uff0c\u4f60\u4f1a\u53d1\u73b0\u4e00\u4e2a\u4e0d\u540c\u7684\u5f39\u7a97\uff0c\u5b83\u5177\u5907\u9009\u9879 git add\u3001git stash\u3001git branch\u3001git commit\u3001git push \u7b49\u7b49\uff1a<\/span><\/p>\n<figure style=\"max-width: 100%; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; font-size: inherit; white-space: normal; background-color: #ffffff; line-height: inherit; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><img decoding=\"async\" style=\"margin-right: auto; margin-left: auto; font-size: inherit; color: inherit; line-height: inherit; display: block; border-radius: 10px; box-sizing: border-box !important; overflow-wrap: break-word !important; width: 640px !important; visibility: visible !important; border: 2px solid green;\" title=\"\u8be6\u5c3d\u5b9e\u7528\u7684 PyCharm \u6559\u7a0b\uff0c\u8fd9\u7bc7\u6587\u7ae0\u503c\u5f97\u4e00\u770b\" src=\"http:\/\/www.zhushiyao.com\/wp-content\/uploads\/2020\/06\/1-1591632161.jpeg\" alt=\"\u8be6\u5c3d\u5b9e\u7528\u7684 PyCharm \u6559\u7a0b\uff0c\u8fd9\u7bc7\u6587\u7ae0\u503c\u5f97\u4e00\u770b\" \/><\/figure>\n<p style=\"margin-top: 1.5em; margin-bottom: 1.5em; max-width: 100%; min-height: 1em; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; white-space: normal; background-color: #ffffff; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"font-size: 15px;\">\u5982\u679c\u4f60\u627e\u4e0d\u5230\u6240\u9700\u8981\u7684\u9009\u9879\uff0c\u4f60\u53ef\u4ee5\u5728\u9876\u90e8\u83dc\u5355\u4e2d\u70b9\u51fb VCS\uff0c\u9009\u62e9 Git\uff0c\u5728\u8fd9\u91cc\u4f60\u53ef\u4ee5\u521b\u5efa\u548c\u67e5\u770b pull request\u3002<\/span><\/p>\n<h3 style=\"margin-top: 1.5em; margin-bottom: 1.5em; font-weight: bold; font-size: 1.1em; max-width: 100%; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; white-space: normal; background-color: #ffffff; line-height: inherit; color: #e4470a; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"max-width: 100%; color: inherit; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><strong style=\"max-width: 100%; font-size: inherit; line-height: inherit; color: #ff3502; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\u63d0\u4ea4\u548c\u51b2\u7a81\u5904\u7406<\/strong><\/span><\/h3>\n<p style=\"margin-top: 1.5em; margin-bottom: 1.5em; max-width: 100%; min-height: 1em; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; white-space: normal; background-color: #ffffff; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"font-size: 15px;\">\u8fd9\u662f PyCharm \u4e2d VCS \u96c6\u6210\u7684\u4e24\u5927\u7279\u5f81\uff0c\u6211\u4e2a\u4eba\u7ecf\u5e38\u4f7f\u7528\u5e76\u4e14\u975e\u5e38\u559c\u6b22\u3002\u5047\u5982\u4f60\u5b8c\u6210\u4e86\u5de5\u4f5c\uff0c\u6253\u7b97\u63d0\u4ea4\uff0c\u524d\u5f80 VCS \u2192 VCS Operations Popup\u2026 \u2192 Commit\u2026\uff0c\u6216\u8005\u5728 Mac \u7cfb\u7edf\u4e2d\u4f7f\u7528 Cmd+K \u952e\uff0c\u5728 Windows \u6216 Linux \u7cfb\u7edf\u4e2d\u4f7f\u7528 Ctrl+K \u952e\u3002\u4f60\u5c06\u770b\u5230\u5982\u4e0b\u7a97\u53e3\uff1a<\/span><\/p>\n<figure style=\"max-width: 100%; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; font-size: inherit; white-space: normal; background-color: #ffffff; line-height: inherit; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><img decoding=\"async\" style=\"margin-right: auto; margin-left: auto; font-size: inherit; color: inherit; line-height: inherit; display: block; border-radius: 10px; box-sizing: border-box !important; overflow-wrap: break-word !important; width: 640px !important; visibility: visible !important; border: 2px solid green;\" title=\"\u8be6\u5c3d\u5b9e\u7528\u7684 PyCharm \u6559\u7a0b\uff0c\u8fd9\u7bc7\u6587\u7ae0\u503c\u5f97\u4e00\u770b\" src=\"http:\/\/www.zhushiyao.com\/wp-content\/uploads\/2020\/06\/4-1591632161-1.jpeg\" alt=\"\u8be6\u5c3d\u5b9e\u7528\u7684 PyCharm \u6559\u7a0b\uff0c\u8fd9\u7bc7\u6587\u7ae0\u503c\u5f97\u4e00\u770b\" \/><\/figure>\n<p style=\"margin-top: 1.5em; margin-bottom: 1.5em; max-width: 100%; min-height: 1em; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; white-space: normal; background-color: #ffffff; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"font-size: 15px;\">\u5728\u8be5\u7a97\u53e3\u4e2d\uff0c\u4f60\u53ef\u4ee5\uff1a<\/span><\/p>\n<ul class=\"list-paddingleft-2\" style=\"padding-left: 32px; max-width: 100%; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; font-size: inherit; white-space: normal; background-color: #ffffff; width: 577.422px; line-height: inherit; overflow-wrap: break-word !important;\">\n<li style=\"margin-bottom: 0.5em; max-width: 100%; font-size: 15px; color: inherit; line-height: inherit; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\n<p style=\"max-width: 100%; min-height: 1em; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"max-width: 100%; color: inherit; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\u9009\u62e9\u8981\u63d0\u4ea4\u7684\u6587\u4ef6<\/span><\/p>\n<\/li>\n<li style=\"margin-bottom: 0.5em; max-width: 100%; font-size: 15px; color: inherit; line-height: inherit; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\n<p style=\"max-width: 100%; min-height: 1em; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"max-width: 100%; color: inherit; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\u5199\u4e0b\u63d0\u4ea4\u4fe1\u606f<\/span><\/p>\n<\/li>\n<li style=\"margin-bottom: 0.5em; max-width: 100%; font-size: 15px; color: inherit; line-height: inherit; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\n<p style=\"max-width: 100%; min-height: 1em; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"max-width: 100%; color: inherit; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\u5728\u63d0\u4ea4\u524d\u6267\u884c\u5404\u9879\u68c0\u67e5<\/span><\/p>\n<\/li>\n<li style=\"margin-bottom: 0.5em; max-width: 100%; font-size: 15px; color: inherit; line-height: inherit; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\n<p style=\"max-width: 100%; min-height: 1em; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"max-width: 100%; color: inherit; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\u67e5\u770b\u66f4\u6539<\/span><\/p>\n<\/li>\n<li style=\"margin-bottom: 0.5em; max-width: 100%; font-size: 15px; color: inherit; line-height: inherit; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\n<p style=\"max-width: 100%; min-height: 1em; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"max-width: 100%; color: inherit; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\u70b9\u51fb\u53f3\u4e0b\u89d2 Commit \u6309\u94ae\u65c1\u8fb9\u7684\u7bad\u5934\uff0c\u9009\u62e9 Commit and Push\u2026\uff0c\u4ece\u800c\u4e00\u6b21\u6027\u5b8c\u6210\u63d0\u4ea4\u548c push\u3002<\/span><\/p>\n<\/li>\n<\/ul>\n<p style=\"margin-top: 1.5em; margin-bottom: 1.5em; max-width: 100%; min-height: 1em; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; white-space: normal; background-color: #ffffff; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"font-size: 15px;\">\u662f\u4e0d\u662f\u611f\u89c9\u5f88\u795e\u5947\u5f88\u8fc5\u901f\uff1f\u7279\u522b\u662f\u5982\u679c\u4f60\u4ee5\u524d\u7ecf\u5e38\u901a\u8fc7\u547d\u4ee4\u884c\u624b\u52a8\u6267\u884c\u8fd9\u4e9b\u4efb\u52a1\u65f6\u3002<\/span><\/p>\n<p style=\"margin-top: 1.5em; margin-bottom: 1.5em; max-width: 100%; min-height: 1em; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; white-space: normal; background-color: #ffffff; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"font-size: 15px;\">\u56e2\u961f\u5408\u4f5c\u4e2d\u4f1a\u51fa\u73b0\u5408\u5e76\u51b2\u7a81\uff08merge conflict\uff09\u3002\u5f53\u4e00\u4e2a\u4eba\u5bf9\u4f60\u6b63\u5728\u5904\u7406\u7684\u6587\u4ef6\u63d0\u4ea4\u66f4\u6539\u65f6\uff0c\u4f60\u4eec\u4e8c\u4eba\u66f4\u6539\u4e86\u540c\u4e00\u884c\u5bfc\u81f4\u66f4\u6539\u91cd\u53e0\uff0c\u8fd9\u65f6 VCS \u65e0\u6cd5\u51b3\u5b9a\u9009\u62e9\u4f60\u7684\u66f4\u6539\u8fd8\u662f\u961f\u53cb\u7684\u66f4\u6539\u3002\u90a3\u4e48\u4f60\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u7bad\u5934\u548c\u7b26\u53f7\u6765\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\uff1a<\/span><\/p>\n<figure style=\"max-width: 100%; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; font-size: inherit; white-space: normal; background-color: #ffffff; line-height: inherit; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><img decoding=\"async\" style=\"margin-right: auto; margin-left: auto; font-size: inherit; color: inherit; line-height: inherit; display: block; border-radius: 10px; box-sizing: border-box !important; overflow-wrap: break-word !important; width: 640px !important; visibility: visible !important; border: 2px solid green;\" title=\"\u8be6\u5c3d\u5b9e\u7528\u7684 PyCharm \u6559\u7a0b\uff0c\u8fd9\u7bc7\u6587\u7ae0\u503c\u5f97\u4e00\u770b\" src=\"http:\/\/www.zhushiyao.com\/wp-content\/uploads\/2020\/06\/10-1591632161.jpeg\" alt=\"\u8be6\u5c3d\u5b9e\u7528\u7684 PyCharm \u6559\u7a0b\uff0c\u8fd9\u7bc7\u6587\u7ae0\u503c\u5f97\u4e00\u770b\" \/><\/figure>\n<p style=\"margin-top: 1.5em; margin-bottom: 1.5em; max-width: 100%; min-height: 1em; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; white-space: normal; background-color: #ffffff; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"font-size: 15px;\">\u770b\u8d77\u6765\u5f88\u5947\u602a\uff0c\u6211\u4eec\u5f88\u96be\u5206\u8fa8\u5e94\u8be5\u5220\u9664\u54ea\u4e9b\u66f4\u6539\u3001\u4fdd\u7559\u54ea\u4e9b\u66f4\u6539\u3002\u4e0d\u8981\u6015\uff0cPyCharm \u6765\u4e86\uff01\u5b83\u53ef\u4ee5\u7528\u66f4\u597d\u3001\u66f4\u7b80\u6d01\u7684\u65b9\u6cd5\u89e3\u51b3\u51b2\u7a81\u3002\u5728\u9876\u90e8\u83dc\u5355\u4e2d\u524d\u5f80 VCS\uff0c\u9009\u62e9 Git\uff0c\u7136\u540e\u9009\u62e9 Resolve conflicts\u2026\u3002\u9009\u62e9\u5b58\u5728\u51b2\u7a81\u7684\u6587\u4ef6\uff0c\u70b9\u51fb Merge\uff0c\u51fa\u73b0\u4ee5\u4e0b\u7a97\u53e3\uff1a<\/span><\/p>\n<figure style=\"max-width: 100%; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; font-size: inherit; white-space: normal; background-color: #ffffff; line-height: inherit; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><img decoding=\"async\" style=\"margin-right: auto; margin-left: auto; font-size: inherit; color: inherit; line-height: inherit; display: block; border-radius: 10px; box-sizing: border-box !important; overflow-wrap: break-word !important; width: 640px !important; visibility: visible !important; border: 2px solid green;\" title=\"\u8be6\u5c3d\u5b9e\u7528\u7684 PyCharm \u6559\u7a0b\uff0c\u8fd9\u7bc7\u6587\u7ae0\u503c\u5f97\u4e00\u770b\" src=\"http:\/\/www.zhushiyao.com\/wp-content\/uploads\/2020\/06\/5-1591632161.jpeg\" alt=\"\u8be6\u5c3d\u5b9e\u7528\u7684 PyCharm \u6559\u7a0b\uff0c\u8fd9\u7bc7\u6587\u7ae0\u503c\u5f97\u4e00\u770b\" \/><\/figure>\n<p style=\"margin-top: 1.5em; margin-bottom: 1.5em; max-width: 100%; min-height: 1em; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; white-space: normal; background-color: #ffffff; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"font-size: 15px;\">\u5728\u5de6\u4fa7\u5217\u4e2d\uff0c\u4f60\u53ef\u4ee5\u67e5\u770b\u81ea\u5df1\u505a\u7684\u66f4\u6539\u3002\u5728\u53f3\u4fa7\u5217\u4e2d\uff0c\u53ef\u4ee5\u67e5\u770b\u961f\u53cb\u505a\u7684\u66f4\u6539\u3002\u800c\u4e2d\u95f4\u5217\u5219\u663e\u793a\u7ed3\u679c\u3002\u5b58\u5728\u51b2\u7a81\u7684\u4ee3\u7801\u884c\u88ab\u9ad8\u4eae\u663e\u793a\uff0c\u4f60\u53ef\u4ee5\u5728\u5b83\u4eec\u65c1\u8fb9\u770b\u5230 X \u548c &gt;&gt;\/&lt;&lt;\u3002\u70b9\u51fb\u7bad\u5934\u8868\u793a\u63a5\u53d7\u66f4\u6539\uff0c\u70b9\u51fb X \u5219\u8868\u793a\u62d2\u7edd\u66f4\u6539\u3002\u89e3\u51b3\u6240\u6709\u51b2\u7a81\u540e\uff0c\u70b9\u51fb Apply \u6309\u94ae\uff1a<\/span><\/p>\n<figure style=\"max-width: 100%; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; font-size: inherit; white-space: normal; background-color: #ffffff; line-height: inherit; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><img decoding=\"async\" class=\"__bg_gif\" style=\"margin-right: auto; margin-left: auto; font-size: inherit; color: inherit; line-height: inherit; display: block; border-radius: 10px; box-sizing: border-box !important; overflow-wrap: break-word !important; width: 640px !important; visibility: visible !important; border: 2px solid green;\" title=\"\u8be6\u5c3d\u5b9e\u7528\u7684 PyCharm \u6559\u7a0b\uff0c\u8fd9\u7bc7\u6587\u7ae0\u503c\u5f97\u4e00\u770b\" src=\"http:\/\/www.zhushiyao.com\/wp-content\/uploads\/2020\/06\/0-1591632161.gif\" alt=\"\u8be6\u5c3d\u5b9e\u7528\u7684 PyCharm \u6559\u7a0b\uff0c\u8fd9\u7bc7\u6587\u7ae0\u503c\u5f97\u4e00\u770b\" \/><\/figure>\n<p style=\"margin-top: 1.5em; margin-bottom: 1.5em; max-width: 100%; min-height: 1em; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; white-space: normal; background-color: #ffffff; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"font-size: 15px;\">\u5728\u4e0a\u56fe\u4e2d\uff0c\u5bf9\u4e8e\u7b2c\u4e00\u4e2a\u51b2\u7a81\u884c\uff0c\u4f5c\u8005\u9009\u62e9\u62d2\u7edd\u81ea\u5df1\u7684\u66f4\u6539\uff0c\u63a5\u53d7\u961f\u53cb\u7684\u66f4\u6539\u3002\u800c\u5728\u7b2c\u4e8c\u4e2a\u51b2\u7a81\u884c\u4e2d\uff0c\u4f5c\u8005\u63a5\u53d7\u4e86\u81ea\u5df1\u7684\u66f4\u6539\uff0c\u62d2\u7edd\u4e86\u961f\u53cb\u7684\u66f4\u6539\u3002<\/span><\/p>\n<p style=\"margin-top: 1.5em; margin-bottom: 1.5em; max-width: 100%; min-height: 1em; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; white-space: normal; background-color: #ffffff; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"font-size: 15px;\">\u4f7f\u7528 PyCharm \u4e2d\u7684 VCS \u96c6\u6210\u8fd8\u53ef\u4ee5\u6267\u884c\u5f88\u591a\u64cd\u4f5c\u3002\u8be6\u60c5\u53c2\u89c1 https:\/\/www.jetbrains.com\/help\/pycharm\/version-control-integration.html\u3002<\/span><\/p>\n<h2><span style=\"font-size: 15px;\"><span style=\"color: #ff0000;\"><strong>9. \u4f7f\u7528\u63d2\u4ef6\u548c\u5916\u90e8\u5de5\u5177<\/strong><\/span><\/span><\/h2>\n<p style=\"margin-top: 1.5em; margin-bottom: 1.5em; max-width: 100%; min-height: 1em; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; white-space: normal; background-color: #ffffff; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"font-size: 15px;\">\u5728 PyCharm \u4e2d\u4f60\u53ef\u4ee5\u627e\u5230\u5f00\u53d1\u6240\u9700\u7684\u51e0\u4e4e\u6240\u6709\u529f\u80fd\u3002\u5982\u679c\u6ca1\u627e\u5230\uff0c\u90a3\u4e48\u5f88\u53ef\u80fd\u5b58\u5728\u4e00\u4e2a\u63d2\u4ef6\uff0c\u5411 PyCharm \u63d0\u4f9b\u4f60\u9700\u8981\u7684\u529f\u80fd\u3002\u4f8b\u5982\uff0c\u5b83\u4eec\u53ef\u4ee5\uff1a<\/span><\/p>\n<ul class=\"list-paddingleft-2\" style=\"padding-left: 32px; max-width: 100%; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; font-size: inherit; white-space: normal; background-color: #ffffff; width: 577.422px; line-height: inherit; overflow-wrap: break-word !important;\">\n<li style=\"margin-bottom: 0.5em; max-width: 100%; font-size: 15px; color: inherit; line-height: inherit; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\n<p style=\"max-width: 100%; min-height: 1em; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"max-width: 100%; color: inherit; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\u6dfb\u52a0\u591a\u8bed\u8a00\u548c\u591a\u6846\u67b6\u652f\u6301<\/span><\/p>\n<\/li>\n<li style=\"margin-bottom: 0.5em; max-width: 100%; font-size: 15px; color: inherit; line-height: inherit; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\n<p style=\"max-width: 100%; min-height: 1em; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"max-width: 100%; color: inherit; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\u4f7f\u7528\u5feb\u6377\u952e\u63d0\u793a\uff08shortcut hint\uff09\u3001\u6587\u4ef6\u76d1\u89c6\u5668\uff08file watcher\uff09\u7b49\u63d0\u5347\u4f60\u7684\u751f\u4ea7\u6548\u7387<\/span><\/p>\n<\/li>\n<li style=\"margin-bottom: 0.5em; max-width: 100%; font-size: 15px; color: inherit; line-height: inherit; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\n<p style=\"max-width: 100%; min-height: 1em; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"max-width: 100%; color: inherit; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\u5229\u7528\u4ee3\u7801\u7ec3\u4e60\uff0c\u5e2e\u52a9\u4f60\u5b66\u4e60\u65b0\u7684\u7f16\u7a0b\u8bed\u8a00<\/span><\/p>\n<\/li>\n<\/ul>\n<p style=\"margin-top: 1.5em; margin-bottom: 1.5em; max-width: 100%; min-height: 1em; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; white-space: normal; background-color: #ffffff; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"font-size: 15px;\">\u4f8b\u5982\uff0cIdeaVim \u63d2\u4ef6\u5411 PyCharm \u6dfb\u52a0 Vim \u6a21\u62df\u3002\u5982\u679c\u4f60\u559c\u6b22 Vim\uff0c\u8fd9\u4e2a\u63d2\u4ef6\u53ef\u4ee5\u5b9e\u73b0\u4e0d\u9519\u7684\u7ed3\u5408\u3002<\/span><\/p>\n<p style=\"margin-top: 1.5em; margin-bottom: 1.5em; max-width: 100%; min-height: 1em; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; white-space: normal; background-color: #ffffff; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"font-size: 15px;\">Material Theme UI \u63d2\u4ef6\u53ef\u5c06 PyCharm \u7684\u5916\u89c2\u6539\u53d8\u4e3a Material Design \u7684\u5916\u89c2\uff1a<\/span><\/p>\n<figure style=\"max-width: 100%; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; font-size: inherit; white-space: normal; background-color: #ffffff; line-height: inherit; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><img decoding=\"async\" style=\"margin-right: auto; margin-left: auto; font-size: inherit; color: inherit; line-height: inherit; display: block; border-radius: 10px; box-sizing: border-box !important; overflow-wrap: break-word !important; width: 640px !important; visibility: visible !important; border: 2px solid green;\" title=\"\u8be6\u5c3d\u5b9e\u7528\u7684 PyCharm \u6559\u7a0b\uff0c\u8fd9\u7bc7\u6587\u7ae0\u503c\u5f97\u4e00\u770b\" src=\"http:\/\/www.zhushiyao.com\/wp-content\/uploads\/2020\/06\/5-1591632161-1.jpeg\" alt=\"\u8be6\u5c3d\u5b9e\u7528\u7684 PyCharm \u6559\u7a0b\uff0c\u8fd9\u7bc7\u6587\u7ae0\u503c\u5f97\u4e00\u770b\" \/><\/figure>\n<p style=\"margin-top: 1.5em; margin-bottom: 1.5em; max-width: 100%; min-height: 1em; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; white-space: normal; background-color: #ffffff; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"font-size: 15px;\">Vue.js \u63d2\u4ef6\u4f7f PyCharm \u652f\u6301 Vue.js \u9879\u76ee\u3002Markdown \u63d2\u4ef6\u4f7f\u5f97\u5728 IDE \u5185\u53ef\u4ee5\u7f16\u8f91 Markdown \u6587\u4ef6\uff0c\u5e76\u5b9e\u65f6\u9884\u89c8\u6e32\u67d3\u540e\u7684 HTML\u3002<\/span><\/p>\n<p style=\"margin-top: 1.5em; margin-bottom: 1.5em; max-width: 100%; min-height: 1em; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; white-space: normal; background-color: #ffffff; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"font-size: 15px;\">\u5728 Mac \u7cfb\u7edf\u4e0a\u70b9\u51fb Preferences \u2192 Plugins\uff0c\u5728 Windows \u6216 Linux \u7cfb\u7edf\u4e2d\u70b9\u51fb Settings \u2192 Plugins\uff0c\u4f60\u53ef\u4ee5\u5728 Marketplace \u6807\u7b7e\u4e0b\u627e\u5230\u548c\u5b89\u88c5\u6240\u6709\u53ef\u7528\u63d2\u4ef6\uff1a<\/span><\/p>\n<figure style=\"max-width: 100%; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; font-size: inherit; white-space: normal; background-color: #ffffff; line-height: inherit; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><img decoding=\"async\" style=\"margin-right: auto; margin-left: auto; font-size: inherit; color: inherit; line-height: inherit; display: block; border-radius: 10px; box-sizing: border-box !important; overflow-wrap: break-word !important; width: 640px !important; visibility: visible !important; border: 2px solid green;\" title=\"\u8be6\u5c3d\u5b9e\u7528\u7684 PyCharm \u6559\u7a0b\uff0c\u8fd9\u7bc7\u6587\u7ae0\u503c\u5f97\u4e00\u770b\" src=\"http:\/\/www.zhushiyao.com\/wp-content\/uploads\/2020\/06\/7-1591632161.jpeg\" alt=\"\u8be6\u5c3d\u5b9e\u7528\u7684 PyCharm \u6559\u7a0b\uff0c\u8fd9\u7bc7\u6587\u7ae0\u503c\u5f97\u4e00\u770b\" \/><\/figure>\n<p style=\"margin-top: 1.5em; margin-bottom: 1.5em; max-width: 100%; min-height: 1em; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; white-space: normal; background-color: #ffffff; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"font-size: 15px;\">\u5982\u679c\u4ecd\u7136\u6ca1\u627e\u5230\u6240\u9700\u63d2\u4ef6\uff0c\u4f60\u751a\u81f3\u53ef\u4ee5\u81ea\u5df1\u5f00\u53d1\u4e00\u4e2a\u3002<\/span><\/p>\n<p style=\"margin-top: 1.5em; margin-bottom: 1.5em; max-width: 100%; min-height: 1em; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; white-space: normal; background-color: #ffffff; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"font-size: 15px;\">\u5982\u679c\u4f60\u627e\u4e0d\u5230\u5408\u9002\u7684\u63d2\u4ef6\uff0c\u53c8\u4e0d\u60f3\u81ea\u5df1\u5f00\u53d1\uff0c\u56e0\u4e3a PyPI \u4e0a\u6709\u53ef\u7528\u7684\u5305\uff0c\u4f60\u53ef\u4ee5\u5c06\u8fd9\u4e2a\u5305\u4f5c\u4e3a\u5916\u90e8\u5de5\u5177\u6dfb\u52a0\u5230 PyCharm\u3002\u4ee5\u4ee3\u7801\u5206\u6790\u5668 Flake8 \u4e3a\u4f8b\u3002<\/span><\/p>\n<p style=\"margin-top: 1.5em; margin-bottom: 1.5em; max-width: 100%; min-height: 1em; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; white-space: normal; background-color: #ffffff; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"font-size: 15px;\">\u9009 Terminal app \u4e2d\u952e\u5165 pip install flake8\uff0c\u4ece\u800c\u5728\u865a\u62df\u73af\u5883\u4e2d\u5b89\u88c5 Flake8\u3002\u6216\u8005\u4e5f\u53ef\u4ee5\u4f7f\u7528 PyCharm \u96c6\u6210\u7684 Terminal\uff1a<\/span><\/p>\n<figure style=\"max-width: 100%; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; font-size: inherit; white-space: normal; background-color: #ffffff; line-height: inherit; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><img decoding=\"async\" style=\"margin-right: auto; margin-left: auto; font-size: inherit; color: inherit; line-height: inherit; display: block; border-radius: 10px; box-sizing: border-box !important; overflow-wrap: break-word !important; width: 640px !important; visibility: visible !important; border: 2px solid green;\" title=\"\u8be6\u5c3d\u5b9e\u7528\u7684 PyCharm \u6559\u7a0b\uff0c\u8fd9\u7bc7\u6587\u7ae0\u503c\u5f97\u4e00\u770b\" src=\"http:\/\/www.zhushiyao.com\/wp-content\/uploads\/2020\/06\/0-1591632161.jpeg\" alt=\"\u8be6\u5c3d\u5b9e\u7528\u7684 PyCharm \u6559\u7a0b\uff0c\u8fd9\u7bc7\u6587\u7ae0\u503c\u5f97\u4e00\u770b\" \/><\/figure>\n<p style=\"margin-top: 1.5em; margin-bottom: 1.5em; max-width: 100%; min-height: 1em; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; white-space: normal; background-color: #ffffff; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"font-size: 15px;\">\u5728 Mac \u7cfb\u7edf\u4e0a\u70b9\u51fb Preferences \u2192 Tools\uff0c\u5728 Windows \u6216 Linux \u7cfb\u7edf\u4e2d\u70b9\u51fb Settings \u2192 Tools\uff0c\u9009\u62e9 External Tools\u3002\u7136\u540e\u70b9\u51fb\u5e95\u90e8 (1) \u5904\u7684 + \u6309\u94ae\u3002\u5728\u5f39\u51fa\u7684\u7a97\u53e3\u4e2d\uff0c\u8f93\u5165\u7ec6\u8282\u5e76\u5728\u4e24\u4e2a\u7a97\u53e3\u4e2d\u70b9\u51fb OK\uff0c\u5982\u4e0b\u56fe\u6240\u793a\uff1a<\/span><\/p>\n<figure style=\"max-width: 100%; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; font-size: inherit; white-space: normal; background-color: #ffffff; line-height: inherit; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><img decoding=\"async\" style=\"margin-right: auto; margin-left: auto; font-size: inherit; color: inherit; line-height: inherit; display: block; border-radius: 10px; box-sizing: border-box !important; overflow-wrap: break-word !important; width: 640px !important; visibility: visible !important; border: 2px solid green;\" title=\"\u8be6\u5c3d\u5b9e\u7528\u7684 PyCharm \u6559\u7a0b\uff0c\u8fd9\u7bc7\u6587\u7ae0\u503c\u5f97\u4e00\u770b\" src=\"http:\/\/www.zhushiyao.com\/wp-content\/uploads\/2020\/06\/10-1591632161-1.jpeg\" alt=\"\u8be6\u5c3d\u5b9e\u7528\u7684 PyCharm \u6559\u7a0b\uff0c\u8fd9\u7bc7\u6587\u7ae0\u503c\u5f97\u4e00\u770b\" \/><\/figure>\n<p style=\"margin-top: 1.5em; margin-bottom: 1.5em; max-width: 100%; min-height: 1em; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; white-space: normal; background-color: #ffffff; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"font-size: 15px;\">\u4e0a\u56fe\u4e2d\uff0cProgram (2) \u6307 Flake8\uff0c\u4f60\u53ef\u4ee5\u5728\u865a\u62df\u73af\u5883\u6587\u4ef6\u5939\uff08bin\uff09\u4e2d\u627e\u5230\u5b83\u3002Arguments (3) \u8868\u793a\u4f60\u60f3\u7528 Flake8 \u5206\u6790\u7684\u6587\u4ef6\u3002Working directory \u8868\u793a\u9879\u76ee\u76ee\u5f55\u3002<\/span><\/p>\n<p style=\"margin-top: 1.5em; margin-bottom: 1.5em; max-width: 100%; min-height: 1em; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; white-space: normal; background-color: #ffffff; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"font-size: 15px;\">\u4f60\u53ef\u4ee5\u628a\u8fd9\u91cc\u6240\u6709\u9879\u7684\u7edd\u5bf9\u8def\u5f84\u5199\u6b7b\uff0c\u4f46\u8fd9\u5c31\u610f\u5473\u7740\u4f60\u65e0\u6cd5\u5728\u5176\u4ed6\u9879\u76ee\u4e2d\u4f7f\u7528\u8be5\u5916\u90e8\u5de5\u5177\uff0c\u53ea\u80fd\u5728\u4e00\u4e2a\u9879\u76ee\u4e2d\u9488\u5bf9\u4e00\u4e2a\u6587\u4ef6\u4f7f\u7528\u8be5\u5de5\u5177\u3002<\/span><\/p>\n<p style=\"margin-top: 1.5em; margin-bottom: 1.5em; max-width: 100%; min-height: 1em; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; white-space: normal; background-color: #ffffff; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"font-size: 15px;\">\u56e0\u6b64\u4f60\u9700\u8981\u4f7f\u7528 Macros\u3002\u5b83\u662f<span style=\"max-width: 100%; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><img decoding=\"async\" style=\"margin-right: auto; margin-left: auto; font-size: inherit; color: inherit; line-height: inherit; border-radius: 10px; display: inline-block; vertical-align: middle; box-sizing: border-box !important; overflow-wrap: break-word !important; width: 88px !important; visibility: visible !important; border: 2px solid green;\" title=\"\u8be6\u5c3d\u5b9e\u7528\u7684 PyCharm \u6559\u7a0b\uff0c\u8fd9\u7bc7\u6587\u7ae0\u503c\u5f97\u4e00\u770b\" src=\"http:\/\/www.zhushiyao.com\/wp-content\/uploads\/2020\/06\/0-1591632161.png\" alt=\"\u8be6\u5c3d\u5b9e\u7528\u7684 PyCharm \u6559\u7a0b\uff0c\u8fd9\u7bc7\u6587\u7ae0\u503c\u5f97\u4e00\u770b\" \/><\/span>\u683c\u5f0f\u7684\u53d8\u91cf\uff0c\u6839\u636e\u8bed\u5883\u800c\u53d8\u5316\u3002\u4f8b\u5982\uff0c\u5f53\u4f60\u7f16\u8f91 first.py \u65f6\uff0c<span style=\"max-width: 100%; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><img decoding=\"async\" style=\"margin-right: auto; margin-left: auto; font-size: inherit; color: inherit; line-height: inherit; border-radius: 10px; display: inline-block; vertical-align: middle; box-sizing: border-box !important; overflow-wrap: break-word !important; width: 154px !important; visibility: visible !important; border: 2px solid green;\" title=\"\u8be6\u5c3d\u5b9e\u7528\u7684 PyCharm \u6559\u7a0b\uff0c\u8fd9\u7bc7\u6587\u7ae0\u503c\u5f97\u4e00\u770b\" src=\"http:\/\/www.zhushiyao.com\/wp-content\/uploads\/2020\/06\/6-1591632161.png\" alt=\"\u8be6\u5c3d\u5b9e\u7528\u7684 PyCharm \u6559\u7a0b\uff0c\u8fd9\u7bc7\u6587\u7ae0\u503c\u5f97\u4e00\u770b\" \/><\/span>\u00a0\u4e3a first.py\uff0c\u5f53\u4f60\u7f16\u8f91 second.py \u65f6\uff0c<span style=\"max-width: 100%; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><img decoding=\"async\" style=\"margin-right: auto; margin-left: auto; font-size: inherit; color: inherit; line-height: inherit; border-radius: 10px; display: inline-block; vertical-align: middle; box-sizing: border-box !important; overflow-wrap: break-word !important; width: 154px !important; visibility: visible !important; border: 2px solid green;\" title=\"\u8be6\u5c3d\u5b9e\u7528\u7684 PyCharm \u6559\u7a0b\uff0c\u8fd9\u7bc7\u6587\u7ae0\u503c\u5f97\u4e00\u770b\" src=\"http:\/\/www.zhushiyao.com\/wp-content\/uploads\/2020\/06\/0-1591632162.png\" alt=\"\u8be6\u5c3d\u5b9e\u7528\u7684 PyCharm \u6559\u7a0b\uff0c\u8fd9\u7bc7\u6587\u7ae0\u503c\u5f97\u4e00\u770b\" \/><\/span>\u00a0\u4e3a second.py\u3002\u4f60\u53ef\u4ee5\u67e5\u770b\u5b83\u4eec\u7684\u5217\u8868\uff0c\u70b9\u51fb Insert Macro\u2026 \u6309\u94ae\u5c06\u5176\u4e2d\u4e00\u4e2a\u63d2\u5165\u3002\u6b64\u5904\u4f60\u4f7f\u7528\u4e86 macros\uff0c\u5b83\u4eec\u7684\u503c\u4f1a\u6839\u636e\u4f60\u76ee\u524d\u5904\u7406\u7684\u9879\u76ee\u800c\u6539\u53d8\uff0cFlake8 \u5c06\u7ee7\u7eed\u51c6\u786e\u6267\u884c\u5176\u5de5\u4f5c\u3002<\/span><\/p>\n<p style=\"margin-top: 1.5em; margin-bottom: 1.5em; max-width: 100%; min-height: 1em; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; white-space: normal; background-color: #ffffff; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"font-size: 15px;\">\u8981\u60f3\u4f7f\u7528\u5b83\uff0c\u4f60\u9700\u8981\u521b\u5efa\u6587\u4ef6 example.py\uff0c\u5e76\u5728\u5176\u4e2d\u5199\u5165\u4ee5\u4e0b\u4ee3\u7801\uff1a<\/span><\/p>\n<figure style=\"max-width: 100%; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; font-size: inherit; white-space: normal; background-color: #ffffff; line-height: inherit; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><img decoding=\"async\" style=\"margin-right: auto; margin-left: auto; font-size: inherit; color: inherit; line-height: inherit; display: block; border-radius: 10px; box-sizing: border-box !important; overflow-wrap: break-word !important; width: 677px !important; visibility: visible !important; border: 2px solid green;\" title=\"\u8be6\u5c3d\u5b9e\u7528\u7684 PyCharm \u6559\u7a0b\uff0c\u8fd9\u7bc7\u6587\u7ae0\u503c\u5f97\u4e00\u770b\" src=\"http:\/\/www.zhushiyao.com\/wp-content\/uploads\/2020\/06\/4-1591632162.jpeg\" alt=\"\u8be6\u5c3d\u5b9e\u7528\u7684 PyCharm \u6559\u7a0b\uff0c\u8fd9\u7bc7\u6587\u7ae0\u503c\u5f97\u4e00\u770b\" \/><\/figure>\n<p style=\"margin-top: 1.5em; margin-bottom: 1.5em; max-width: 100%; min-height: 1em; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; white-space: normal; background-color: #ffffff; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"font-size: 15px;\">\u4e0a\u8ff0\u4ee3\u7801\u6545\u610f\u7834\u574f\u4e86 Flake8 \u7684\u4e00\u4e9b\u89c4\u5219\u3002\u53f3\u952e\u5355\u51fb\u6587\u4ef6\u80cc\u666f\uff0c\u9009\u62e9 External Tools \u2192 Flake8\u3002Flake8 \u5206\u6790\u7ed3\u679c\u5c06\u51fa\u73b0\u5728\u7a97\u53e3\u5e95\u90e8\uff1a<\/span><\/p>\n<figure style=\"max-width: 100%; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; font-size: inherit; white-space: normal; background-color: #ffffff; line-height: inherit; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><img decoding=\"async\" style=\"margin-right: auto; margin-left: auto; font-size: inherit; color: inherit; line-height: inherit; display: block; border-radius: 10px; box-sizing: border-box !important; overflow-wrap: break-word !important; width: 640px !important; visibility: visible !important; border: 2px solid green;\" title=\"\u8be6\u5c3d\u5b9e\u7528\u7684 PyCharm \u6559\u7a0b\uff0c\u8fd9\u7bc7\u6587\u7ae0\u503c\u5f97\u4e00\u770b\" src=\"http:\/\/www.zhushiyao.com\/wp-content\/uploads\/2020\/06\/7-1591632162.jpeg\" alt=\"\u8be6\u5c3d\u5b9e\u7528\u7684 PyCharm \u6559\u7a0b\uff0c\u8fd9\u7bc7\u6587\u7ae0\u503c\u5f97\u4e00\u770b\" \/><\/figure>\n<p style=\"margin-top: 1.5em; margin-bottom: 1.5em; max-width: 100%; min-height: 1em; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; white-space: normal; background-color: #ffffff; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"font-size: 15px;\">\u4e3a\u4e86\u4f7f\u6548\u679c\u66f4\u597d\uff0c\u4f60\u53ef\u4ee5\u4e3a\u5176\u6dfb\u52a0\u5feb\u6377\u952e\u3002\u5728 Mac \u7cfb\u7edf\u4e2d\u9009\u62e9 Preferences\uff0c\u5728 Windows \u6216 Linux \u7cfb\u7edf\u4e2d\u9009\u62e9 Settings\u3002\u7136\u540e\uff0c\u70b9\u51fb Keymap \u2192 External Tools \u2192 External Tools\u3002\u53cc\u51fb Flake8\uff0c\u9009\u62e9 Add Keyboard Shortcut\uff0c\u51fa\u73b0\u4ee5\u4e0b\u7a97\u53e3\uff1a<\/span><\/p>\n<figure style=\"max-width: 100%; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; font-size: inherit; white-space: normal; background-color: #ffffff; line-height: inherit; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><img decoding=\"async\" style=\"margin-right: auto; margin-left: auto; font-size: inherit; color: inherit; line-height: inherit; display: block; border-radius: 10px; box-sizing: border-box !important; overflow-wrap: break-word !important; width: 640px !important; visibility: visible !important; border: 2px solid green;\" title=\"\u8be6\u5c3d\u5b9e\u7528\u7684 PyCharm \u6559\u7a0b\uff0c\u8fd9\u7bc7\u6587\u7ae0\u503c\u5f97\u4e00\u770b\" src=\"http:\/\/www.zhushiyao.com\/wp-content\/uploads\/2020\/06\/1-1591632162.jpeg\" alt=\"\u8be6\u5c3d\u5b9e\u7528\u7684 PyCharm \u6559\u7a0b\uff0c\u8fd9\u7bc7\u6587\u7ae0\u503c\u5f97\u4e00\u770b\" \/><\/figure>\n<p style=\"margin-top: 1.5em; margin-bottom: 1.5em; max-width: 100%; min-height: 1em; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; white-space: normal; background-color: #ffffff; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"font-size: 15px;\">\u4e0a\u56fe\u4e2d\uff0c\u5feb\u6377\u952e\u662f Ctrl+Alt+A\uff08\u672c\u6559\u7a0b\u4f7f\u7528\u8be5\u5feb\u6377\u952e\uff09\u3002\u4f60\u53ef\u4ee5\u5728\u6587\u672c\u6846\u4e2d\u6dfb\u52a0\u559c\u6b22\u7684\u5feb\u6377\u952e\uff0c\u7136\u540e\u5728\u4e24\u4e2a\u7a97\u53e3\u4e2d\u70b9\u51fb OK\u3002\u7136\u540e\uff0c\u4f60\u5c31\u53ef\u4ee5\u7528\u8be5\u5feb\u6377\u952e\uff0c\u5728 Flake8 \u7684\u5e2e\u52a9\u4e0b\u5206\u6790\u76ee\u524d\u5728\u5904\u7406\u7684\u6587\u4ef6\u4e86\u3002<\/span><\/p>\n<h2><span style=\"color: #ff0000; font-size: 15px;\"><strong>10. PyCharm Professional \u529f\u80fd<\/strong><\/span><\/h2>\n<p style=\"margin-top: 1.5em; margin-bottom: 1.5em; max-width: 100%; min-height: 1em; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; white-space: normal; background-color: #ffffff; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"font-size: 15px;\">PyCharm Professional \u662f PyCharm \u7684\u4ed8\u8d39\u7248\u672c\uff0c\u5177\u5907\u66f4\u591a\u5f00\u7bb1\u5373\u7528\u7684\u529f\u80fd\u548c\u96c6\u6210\u3002\u8fd9\u90e8\u5206\u5c06\u6982\u89c8\u5176\u4e3b\u8981\u529f\u80fd\uff0c\u4ee5\u53ca\u5b98\u65b9\u6587\u6863\u94fe\u63a5\uff08\u5176\u4e2d\u8be6\u7ec6\u4ecb\u7ecd\u4e86\u6bcf\u4e00\u9879\u529f\u80fd\uff09\u3002\u8bb0\u4f4f\uff0c\u4ee5\u4e0b\u529f\u80fd\u5728 PyCharm Community \u7248\u672c\u4e2d\u5747\u4e0d\u53ef\u7528\u3002<\/span><\/p>\n<p style=\"margin-top: 1.5em; margin-bottom: 1.5em; max-width: 100%; min-height: 1em; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; white-space: normal; background-color: #ffffff; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"font-size: 15px;\"><strong style=\"max-width: 100%; font-size: inherit; line-height: inherit; color: #ff3502; box-sizing: border-box !important; overflow-wrap: break-word !important;\">Django \u652f\u6301<\/strong><\/span><\/p>\n<p style=\"margin-top: 1.5em; margin-bottom: 1.5em; max-width: 100%; min-height: 1em; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; white-space: normal; background-color: #ffffff; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"font-size: 15px;\">Django \u662f\u6700\u6d41\u884c\u548c\u6700\u53d7\u559c\u7231\u7684 Python web \u6846\u67b6\uff0cPyCharm \u5bf9 Django \u63d0\u4f9b\u5e7f\u6cdb\u7684\u652f\u6301\u3002\u8981\u786e\u4fdd\u5bf9 Django \u7684\u652f\u6301\uff0c\u9700\u8981\u6267\u884c\u4ee5\u4e0b\u6b65\u9aa4\uff1a<\/span><\/p>\n<ol class=\"list-paddingleft-2\" style=\"padding-left: 32px; max-width: 100%; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; font-size: inherit; white-space: normal; background-color: #ffffff; width: 577.422px; line-height: inherit; overflow-wrap: break-word !important;\">\n<li style=\"margin-bottom: 0.5em; max-width: 100%; font-size: 15px; color: inherit; line-height: inherit; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\n<p style=\"max-width: 100%; min-height: 1em; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"max-width: 100%; color: inherit; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\u5728 Mac \u7cfb\u7edf\u4e2d\u6253\u5f00 Preferences\uff0c\u5728 Windows \u6216 Linux \u7cfb\u7edf\u4e2d\u6253\u5f00 Settings\u3002<\/span><\/p>\n<\/li>\n<li style=\"margin-bottom: 0.5em; max-width: 100%; font-size: 15px; color: inherit; line-height: inherit; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\n<p style=\"max-width: 100%; min-height: 1em; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"max-width: 100%; color: inherit; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\u9009\u62e9 Languages and Frameworks\u3002<\/span><\/p>\n<\/li>\n<li style=\"margin-bottom: 0.5em; max-width: 100%; font-size: 15px; color: inherit; line-height: inherit; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\n<p style=\"max-width: 100%; min-height: 1em; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"max-width: 100%; color: inherit; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\u9009\u62e9 Django\u3002<\/span><\/p>\n<\/li>\n<li style=\"margin-bottom: 0.5em; max-width: 100%; font-size: 15px; color: inherit; line-height: inherit; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\n<p style=\"max-width: 100%; min-height: 1em; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"max-width: 100%; color: inherit; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\u68c0\u67e5\u590d\u9009\u6846 Enable Django support\u3002<\/span><\/p>\n<\/li>\n<li style=\"margin-bottom: 0.5em; max-width: 100%; font-size: 15px; color: inherit; line-height: inherit; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\n<p style=\"max-width: 100%; min-height: 1em; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"max-width: 100%; color: inherit; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\u5e94\u7528\u66f4\u6539\u3002<\/span><\/p>\n<\/li>\n<\/ol>\n<p style=\"margin-top: 1.5em; margin-bottom: 1.5em; max-width: 100%; min-height: 1em; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; white-space: normal; background-color: #ffffff; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"font-size: 15px;\">\u73b0\u5728\u786e\u4fdd\u4e86\u5bf9 Django \u7684\u652f\u6301\uff0c\u4f60\u5728 PyCharm \u4e2d\u7684 Django \u5f00\u53d1\u4e4b\u65c5\u5c06\u8f7b\u677e\u5f88\u591a\u3002\u5177\u4f53\u800c\u8a00\u5728\u521b\u5efa\u9879\u76ee\u65f6\uff0c\u4f60\u4f1a\u5f97\u5230\u4e00\u4e2a\u4e13\u7528\u7684 Django \u9879\u76ee\u7c7b\u578b\u3002\u8fd9\u8868\u793a\uff0c\u5f53\u4f60\u9009\u62e9\u8be5\u7c7b\u578b\u65f6\uff0c\u4f60\u5c06\u62e5\u6709\u6240\u6709\u5fc5\u8981\u6587\u4ef6\u548c\u8bbe\u7f6e\u3002\u8fd9\u7b49\u540c\u4e8e\u4f7f\u7528 django-admin startproject mysite\u3002<\/span><\/p>\n<p style=\"margin-top: 1.5em; margin-bottom: 1.5em; max-width: 100%; min-height: 1em; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; white-space: normal; background-color: #ffffff; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"font-size: 15px;\">\u4f60\u4e5f\u53ef\u4ee5\u5728 PyCharm \u5185\u76f4\u63a5\u8fd0\u884c manage.py \u547d\u4ee4\u3002\u76ee\u524d\u652f\u6301\u7684 Django \u6a21\u677f\uff0c\u5305\u62ec\u4ee5\u4e0b\u4e00\u4e9b\uff1a<\/span><\/p>\n<ul class=\"list-paddingleft-2\" style=\"padding-left: 32px; max-width: 100%; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; font-size: inherit; white-space: normal; background-color: #ffffff; width: 577.422px; line-height: inherit; overflow-wrap: break-word !important;\">\n<li style=\"margin-bottom: 0.5em; max-width: 100%; font-size: 15px; color: inherit; line-height: inherit; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\n<p style=\"max-width: 100%; min-height: 1em; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"max-width: 100%; color: inherit; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\u8bed\u6cd5\u548c\u9519\u8bef\u9ad8\u4eae\u663e\u793a<\/span><\/p>\n<\/li>\n<li style=\"margin-bottom: 0.5em; max-width: 100%; font-size: 15px; color: inherit; line-height: inherit; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\n<p style=\"max-width: 100%; min-height: 1em; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"max-width: 100%; color: inherit; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\u4ee3\u7801\u8865\u5168<\/span><\/p>\n<\/li>\n<li style=\"margin-bottom: 0.5em; max-width: 100%; font-size: 15px; color: inherit; line-height: inherit; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\n<p style=\"max-width: 100%; min-height: 1em; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"max-width: 100%; color: inherit; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\u5bfc\u822a<\/span><\/p>\n<\/li>\n<li style=\"margin-bottom: 0.5em; max-width: 100%; font-size: 15px; color: inherit; line-height: inherit; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\n<p style=\"max-width: 100%; min-height: 1em; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"max-width: 100%; color: inherit; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\">block \u540d\u79f0\u8865\u5168<\/span><\/p>\n<\/li>\n<li style=\"margin-bottom: 0.5em; max-width: 100%; font-size: 15px; color: inherit; line-height: inherit; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\n<p style=\"max-width: 100%; min-height: 1em; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"max-width: 100%; color: inherit; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\u81ea\u5b9a\u4e49\u6807\u7b7e\u548c\u8fc7\u6ee4\u5668\u8865\u5168<\/span><\/p>\n<\/li>\n<li style=\"margin-bottom: 0.5em; max-width: 100%; font-size: 15px; color: inherit; line-height: inherit; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\n<p style=\"max-width: 100%; min-height: 1em; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"max-width: 100%; color: inherit; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\u6807\u7b7e\u548c\u8fc7\u6ee4\u5668\u7684\u5feb\u901f\u6587\u6863<\/span><\/p>\n<\/li>\n<li style=\"margin-bottom: 0.5em; max-width: 100%; font-size: 15px; color: inherit; line-height: inherit; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\n<p style=\"max-width: 100%; min-height: 1em; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"max-width: 100%; color: inherit; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\u6a21\u677f debug \u80fd\u529b<\/span><\/p>\n<\/li>\n<\/ul>\n<p style=\"margin-top: 1.5em; margin-bottom: 1.5em; max-width: 100%; min-height: 1em; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; white-space: normal; background-color: #ffffff; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"font-size: 15px;\">\u9664\u6b64\u4e4b\u5916\uff0c\u6211\u4eec\u8fd8\u53ef\u4ee5\u5728\u5176\u4ed6 Django \u90e8\u5206\uff08\u5982\u89c6\u56fe\u3001URL \u548c\u6a21\u578b\uff09\u4e2d\u6267\u884c\u4ee3\u7801\u8865\u5168\u3001\u5bf9 Django ORM \u63d0\u4f9b\u4ee3\u7801\u8ffd\u8e2a\u652f\u6301\uff08code insight support\uff09\u3001\u5bf9 Django \u6a21\u578b\u63d0\u4f9b\u6a21\u578b\u4f9d\u8d56\u9879\u5173\u7cfb\u56fe\u3002<\/span><\/p>\n<p style=\"margin-top: 1.5em; margin-bottom: 1.5em; max-width: 100%; min-height: 1em; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; white-space: normal; background-color: #ffffff; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"font-size: 15px;\">\u66f4\u591a\u7ec6\u8282\uff0c\u53c2\u89c1\u5b98\u65b9\u6587\u6863\uff1ahttps:\/\/www.jetbrains.com\/help\/pycharm\/django-support7.html\u3002<\/span><\/p>\n<h2><span style=\"color: #ff0000; font-size: 15px;\"><strong>11. \u6570\u636e\u5e93\u652f\u6301<\/strong><\/span><\/h2>\n<p style=\"margin-top: 1.5em; margin-bottom: 1.5em; max-width: 100%; min-height: 1em; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; white-space: normal; background-color: #ffffff; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"font-size: 15px;\">\u73b0\u4ee3\u6570\u636e\u5e93\u5f00\u53d1\u662f\u4e00\u4e2a\u590d\u6742\u7684\u4efb\u52a1\uff0c\u9700\u8981\u591a\u4e2a\u652f\u6301\u7cfb\u7edf\u548c\u5de5\u4f5c\u6d41\u3002\u8fd9\u4e5f\u662f JetBrains \u5f00\u53d1\u72ec\u7acb IDE DataGrip \u7684\u539f\u56e0\u3002DataGrip \u662f\u72ec\u7acb\u4e8e PyCharm \u7684\u4ea7\u54c1\uff0c\u4e8c\u8005\u7684\u5e94\u7528\u573a\u666f\u548c\u6388\u6743\u90fd\u4e0d\u76f8\u540c\u3002<\/span><\/p>\n<p style=\"margin-top: 1.5em; margin-bottom: 1.5em; max-width: 100%; min-height: 1em; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; white-space: normal; background-color: #ffffff; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"font-size: 15px;\">\u4f46\u5e78\u8fd0\u7684\u662f\uff0c\u901a\u8fc7 Database tools and SQL \u63d2\u4ef6\uff08\u8be5\u63d2\u4ef6\u9ed8\u8ba4\u5f00\u542f\uff09\uff0cPyCharm \u53ef\u4ee5\u652f\u6301 DataGrip \u4e2d\u7684\u6240\u6709\u7279\u6027\u3002\u5728\u8be5\u63d2\u4ef6\u7684\u5e2e\u52a9\u4e0b\uff0c\u4f60\u53ef\u4ee5\u67e5\u8be2\u3001\u521b\u5efa\u548c\u7ba1\u7406\u6570\u636e\u5e93\uff0c\u4e0d\u7ba1\u6570\u636e\u5e93\u5728\u672c\u5730\u3001\u670d\u52a1\u5668\uff0c\u8fd8\u662f\u5728\u4e91\u7aef\u3002\u8be5\u63d2\u4ef6\u652f\u6301 MySQL\u3001PostgreSQL\u3001Microsoft SQL Server\u3001SQLite\u3001MariaDB\u3001Oracle\u3001Apache Cassandra \u7b49\u3002<\/span><\/p>\n<p style=\"margin-top: 1.5em; margin-bottom: 1.5em; max-width: 100%; min-height: 1em; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; white-space: normal; background-color: #ffffff; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"font-size: 15px;\">\u5173\u4e8e\u8be5\u63d2\u4ef6\u7684\u66f4\u591a\u7528\u9014\uff0c\u8bf7\u67e5\u770b\u6587\u6863\uff1ahttps:\/\/www.jetbrains.com\/help\/pycharm\/relational-databases.html\u3002<\/span><\/p>\n<p style=\"margin-top: 1.5em; margin-bottom: 1.5em; max-width: 100%; min-height: 1em; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; white-space: normal; background-color: #ffffff; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"font-size: 15px;\"><strong style=\"max-width: 100%; font-size: inherit; line-height: inherit; color: #ff3502; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\u7a0b\u5e76\u53d1\u53ef\u89c6\u5316\uff08Thread Concurrency Visualization\uff09<\/strong><\/span><\/p>\n<p style=\"margin-top: 1.5em; margin-bottom: 1.5em; max-width: 100%; min-height: 1em; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; white-space: normal; background-color: #ffffff; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"font-size: 15px;\">Django Channels\u3001asyncio \u548c\u8fd1\u671f\u6846\u67b6\uff08\u5982 Starlette (https:\/\/www.starlette.io\/)\uff09\u8868\u660e\u5f02\u6b65 Python \u7f16\u7a0b\u6b63\u9010\u6e10\u6210\u4e3a\u8d8b\u52bf\u3002\u5f02\u6b65\u7f16\u7a0b\u5177\u5907\u5f88\u591a\u597d\u5904\uff0c\u4f46\u5f88\u96be\u5199\uff0c\u4e5f\u5f88\u96be debug\u3002\u5728\u6b64\u7c7b\u6848\u4f8b\u4e2d\uff0cThread Concurrency Visualization \u5c31\u662f\u533b\u751f\uff0c\u5e2e\u52a9\u4f60\u5168\u9762\u7ba1\u7406\u591a\u7ebf\u7a0b\u5e94\u7528\u5e76\u8fdb\u884c\u4f18\u5316\u3002<\/span><\/p>\n<p style=\"margin-top: 1.5em; margin-bottom: 1.5em; max-width: 100%; min-height: 1em; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; white-space: normal; background-color: #ffffff; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"font-size: 15px;\">\u66f4\u591a\u7ec6\u8282\uff0c\u53c2\u89c1\u6587\u6863\uff1ahttps:\/\/www.jetbrains.com\/help\/pycharm\/thread-concurrency-visualization.html\u3002<\/span><\/p>\n<h2><span style=\"color: #ff0000; font-size: 15px;\"><strong>12. Profiler \u6027\u80fd\u5206\u6790<\/strong><\/span><\/h2>\n<p style=\"margin-top: 1.5em; margin-bottom: 1.5em; max-width: 100%; min-height: 1em; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; white-space: normal; background-color: #ffffff; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"font-size: 15px;\">\u8bf4\u5230\u4f18\u5316\uff0cprofiling \u662f\u53e6\u4e00\u79cd\u4ee3\u7801\u4f18\u5316\u65b9\u6cd5\u3002profiling \u53ef\u4ee5\u5e2e\u52a9\u4f60\u67e5\u770b\u4ee3\u7801\u7684\u54ea\u4e00\u90e8\u5206\u5360\u7528\u4e86\u6700\u591a\u7684\u6267\u884c\u65f6\u95f4\u3002profiler \u8fd0\u884c\u7684\u4f18\u5148\u7ea7\u5982\u4e0b\uff1a<\/span><\/p>\n<ol class=\"list-paddingleft-2\" style=\"padding-left: 32px; max-width: 100%; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; font-size: inherit; white-space: normal; background-color: #ffffff; width: 577.422px; line-height: inherit; overflow-wrap: break-word !important;\">\n<li style=\"margin-bottom: 0.5em; max-width: 100%; font-size: 15px; color: inherit; line-height: inherit; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\n<p style=\"margin-top: 1.5em; margin-bottom: 1.5em; max-width: 100%; min-height: 1em; color: inherit; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"font-size: 15px;\">vmprof<\/span><\/p>\n<\/li>\n<li style=\"margin-bottom: 0.5em; max-width: 100%; font-size: 15px; color: inherit; line-height: inherit; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\n<p style=\"margin-top: 1.5em; margin-bottom: 1.5em; max-width: 100%; min-height: 1em; color: inherit; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"font-size: 15px;\">yappi<\/span><\/p>\n<\/li>\n<li style=\"margin-bottom: 0.5em; max-width: 100%; font-size: 15px; color: inherit; line-height: inherit; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\n<p style=\"margin-top: 1.5em; margin-bottom: 1.5em; max-width: 100%; min-height: 1em; color: inherit; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"font-size: 15px;\">cProfil<\/span><\/p>\n<\/li>\n<\/ol>\n<p style=\"margin-top: 1.5em; margin-bottom: 1.5em; max-width: 100%; min-height: 1em; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; white-space: normal; background-color: #ffffff; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"font-size: 15px;\">\u5982\u679c\u4f60\u6ca1\u6709\u5b89\u88c5 vmprof \u6216 yappi\uff0c\u5219\u8fd0\u884c\u6807\u51c6 cProfile\u3002\u66f4\u591a\u7ec6\u8282\uff0c\u53c2\u89c1\uff1ahttps:\/\/www.jetbrains.com\/help\/pycharm\/profiler.html\u3002<\/span><\/p>\n<h2><span style=\"color: #ff0000; font-size: 15px;\"><strong>13. \u79d1\u5b66\u6a21\u5f0f<\/strong><\/span><\/h2>\n<p style=\"margin-top: 1.5em; margin-bottom: 1.5em; max-width: 100%; min-height: 1em; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; white-space: normal; background-color: #ffffff; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"font-size: 15px;\">Python \u4e0d\u4ec5\u662f\u901a\u7528\u548c web \u7f16\u7a0b\u8bed\u8a00\uff0c\u7531\u4e8e NumPy\u3001SciPy\u3001scikit-learn\u3001Matplotlib\u3001Jupyter \u7b49\u5e93\u548c\u5de5\u5177\u7684\u52a0\u6301\uff0cPython \u6210\u4e3a\u6570\u636e\u79d1\u5b66\u548c\u673a\u5668\u5b66\u4e60\u9886\u57df\u7684\u6700\u4f18\u5de5\u5177\u3002\u6709\u4e86\u8fd9\u4e9b\u5f3a\u5927\u5de5\u5177\uff0c\u4f60\u8fd8\u9700\u8981\u4e00\u4e2a\u5f3a\u5927\u7684 IDE \u6765\u652f\u6301\u8fd9\u4e9b\u5e93\u6240\u5177\u5907\u7684\u7ed8\u56fe\u3001\u5206\u6790\u7b49\u6240\u6709\u529f\u80fd\u3002<\/span><\/p>\n<p style=\"margin-top: 1.5em; margin-bottom: 1.5em; max-width: 100%; min-height: 1em; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; white-space: normal; background-color: #ffffff; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"font-size: 15px;\">\u5173\u4e8e\u79d1\u5b66\u6a21\u5f0f\u7684\u66f4\u591a\u8be6\u60c5\uff0c\u53c2\u89c1 https:\/\/www.jetbrains.com\/help\/pycharm\/matplotlib-support.html\u3002<\/span><\/p>\n<h2><span style=\"color: #ff0000; font-size: 15px;\"><strong>14. \u8fdc\u7a0b\u5f00\u53d1<\/strong><\/span><\/h2>\n<p style=\"margin-top: 1.5em; margin-bottom: 1.5em; max-width: 100%; min-height: 1em; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; white-space: normal; background-color: #ffffff; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"font-size: 15px;\">\u5f88\u591a\u5e94\u7528\u51fa\u73b0 bug \u7684\u4e00\u4e2a\u5e38\u89c1\u539f\u56e0\u662f\uff0c\u5f00\u53d1\u73af\u5883\u548c\u751f\u4ea7\u73af\u5883\u4e0d\u540c\u3002\u5c3d\u7ba1\u5728\u5927\u591a\u6570\u60c5\u51b5\u4e0b\uff0c\u5f00\u53d1\u65f6\u5b8c\u7f8e\u590d\u5236\u751f\u4ea7\u73af\u5883\u5e76\u4e0d\u73b0\u5b9e\uff0c\u4f46\u529b\u6c42\u5b9e\u73b0\u5b8c\u7f8e\u590d\u523b\u662f\u503c\u5f97\u8ffd\u5bfb\u7684\u76ee\u6807\u3002<\/span><\/p>\n<p style=\"margin-top: 1.5em; margin-bottom: 1.5em; max-width: 100%; min-height: 1em; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; white-space: normal; background-color: #ffffff; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"font-size: 15px;\">\u5728 PyCharm \u7684\u5e2e\u52a9\u4e0b\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528\u53e6\u4e00\u53f0\u8ba1\u7b97\u673a\uff08\u5982 Linux VM\uff09\u4e0a\u7684\u89e3\u91ca\u5668\u5bf9\u5e94\u7528\u8fdb\u884c debug\u3002\u8fd9\u6837\uff0c\u4f60\u5c31\u53ef\u4ee5\u62e5\u6709\u4e0e\u751f\u4ea7\u73af\u5883\u4e00\u6837\u7684\u89e3\u91ca\u5668\u4e86\uff0c\u4ece\u800c\u907f\u514d\u5f88\u591a\u56e0\u5f00\u53d1\u73af\u5883\u548c\u751f\u4ea7\u73af\u5883\u5dee\u5f02\u5bfc\u81f4\u7684 bug\u3002<\/span><\/p>\n<p style=\"margin-top: 1.5em; margin-bottom: 1.5em; max-width: 100%; min-height: 1em; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; white-space: normal; background-color: #ffffff; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"font-size: 15px;\">\u8be6\u60c5\u53c2\u89c1\uff1ahttps:\/\/www.jetbrains.com\/help\/pycharm\/remote-debugging-with-product.html\u3002<\/span><\/p>\n<h2><span style=\"color: #ff0000; font-size: 15px;\"><strong>15. \u5199\u5728\u6700\u540e<\/strong><\/span><\/h2>\n<section style=\"margin-top: 1.5em; margin-bottom: 10px; max-width: 100%; color: inherit; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; white-space: normal; background-color: #ffffff; line-height: inherit; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"font-size: 15px;\">PyCharm \u662f\u6700\u597d\u7684 Python \u5f00\u53d1 IDE \u4e4b\u4e00\u3002\u5b83\u63d0\u4f9b\u5927\u91cf\u4f18\u52bf\uff0c\u5e2e\u52a9\u6267\u884c\u4f8b\u884c\u4efb\u52a1\uff0c\u4ece\u800c\u8282\u7ea6\u5927\u91cf\u65f6\u95f4\u3002\u5b66\u5b8c\u672c\u6559\u7a0b\uff0c\u73b0\u5728\u4f60\u77e5\u9053\u5982\u4f55\u5229\u7528 PyCharm \u63d0\u9ad8\u751f\u4ea7\u6548\u7387\u4e86\u5417\uff1f<\/span><\/section>\n<p style=\"white-space: normal;\">\n<p style=\"white-space: normal;\"><span style=\"font-size: 15px;\">\u00a0\u8f6c\u81ea\uff1ahttps:\/\/mp.weixin.qq.com\/s\/mGDh1pt8-2jXM-mJ3VDPxg<\/span><\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u6765\u6e90\uff1aPython\u732b \u672c\u6587\u5047\u8bbe\u8bfb\u8005\u719f\u6089 Python \u5f00\u53d1\uff0c\u4e14\u8ba1\u7b97\u673a\u4e2d\u5df2\u5b89\u88c5\u67d0\u4e2a\u7248\u672c\u7684 Python\u3002\u8be5\u6559\u7a0b\u5c06 &hellip; <a href=\"http:\/\/www.zhushiyao.com\/?p=29182\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb<span class=\"screen-reader-text\">\u201c\u8be6\u5c3d\u5b9e\u7528\u7684 PyCharm \u6559\u7a0b\u201d<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[2],"tags":[565,8],"_links":{"self":[{"href":"http:\/\/www.zhushiyao.com\/index.php?rest_route=\/wp\/v2\/posts\/29182"}],"collection":[{"href":"http:\/\/www.zhushiyao.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.zhushiyao.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.zhushiyao.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.zhushiyao.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=29182"}],"version-history":[{"count":2,"href":"http:\/\/www.zhushiyao.com\/index.php?rest_route=\/wp\/v2\/posts\/29182\/revisions"}],"predecessor-version":[{"id":29220,"href":"http:\/\/www.zhushiyao.com\/index.php?rest_route=\/wp\/v2\/posts\/29182\/revisions\/29220"}],"wp:attachment":[{"href":"http:\/\/www.zhushiyao.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=29182"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.zhushiyao.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=29182"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.zhushiyao.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=29182"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}