{"id":1139977,"date":"2025-01-08T22:15:35","date_gmt":"2025-01-08T14:15:35","guid":{"rendered":""},"modified":"2025-01-08T22:15:38","modified_gmt":"2025-01-08T14:15:38","slug":"%e5%8d%8e%e4%b8%ba%e7%ac%94%e8%ae%b0%e6%9c%ac%e7%94%b5%e8%84%91%e5%a6%82%e4%bd%95%e4%b8%8b%e8%bd%bdpython3","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1139977.html","title":{"rendered":"\u534e\u4e3a\u7b14\u8bb0\u672c\u7535\u8111\u5982\u4f55\u4e0b\u8f7dpython3"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25103109\/d03b7b6c-9833-4b24-899c-97773a7ca4f3.webp\" alt=\"\u534e\u4e3a\u7b14\u8bb0\u672c\u7535\u8111\u5982\u4f55\u4e0b\u8f7dpython3\" \/><\/p>\n<p><p> <strong>\u534e\u4e3a\u7b14\u8bb0\u672c\u7535\u8111\u5982\u4f55\u4e0b\u8f7dpython3\uff1a<\/strong><\/p>\n<\/p>\n<p><p><strong>1. \u8bbf\u95eePython\u5b98\u65b9\u7f51\u7ad9\u30012. \u4e0b\u8f7d\u9002\u5408\u7684\u5b89\u88c5\u5305\u30013. \u5b89\u88c5Python3\u30014. \u914d\u7f6e\u73af\u5883\u53d8\u91cf\u30015. \u9a8c\u8bc1\u5b89\u88c5\u3002<\/strong> \u5728\u8fd9\u7bc7\u6587\u7ae0\u4e2d\uff0c\u6211\u4eec\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u5728\u534e\u4e3a\u7b14\u8bb0\u672c\u7535\u8111\u4e0a\u4e0b\u8f7d\u548c\u5b89\u88c5Python3\u3002\u65e0\u8bba\u4f60\u662f\u7f16\u7a0b\u65b0\u624b\u8fd8\u662f\u6709\u7ecf\u9a8c\u7684\u5f00\u53d1\u8005\uff0c\u6b63\u786e\u5b89\u88c5Python3\u662f\u8fdb\u884c\u4efb\u4f55Python\u7f16\u7a0b\u5de5\u4f5c\u7684\u7b2c\u4e00\u6b65\u3002\u672c\u6587\u5c06\u901a\u8fc7\u5177\u4f53\u6b65\u9aa4\u548c\u56fe\u793a\u6765\u5e2e\u52a9\u4f60\u5b8c\u6210\u8fd9\u4e00\u8fc7\u7a0b\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u8bbf\u95eePython\u5b98\u65b9\u7f51\u7ad9<\/h3>\n<\/p>\n<p><h4>1. \u4e3a\u4ec0\u4e48\u9009\u62e9Python\u5b98\u65b9\u7f51\u7ad9<\/h4>\n<\/p>\n<p><p>\u8bbf\u95eePython\u5b98\u65b9\u7f51\u7ad9\uff08<a href=\"https:\/\/www.python.org\">python.org<\/a>\uff09\u662f\u4e0b\u8f7dPython3\u7684\u6700\u6743\u5a01\u3001\u6700\u53ef\u9760\u7684\u65b9\u5f0f\u3002\u5b98\u65b9\u7f51\u7ad9\u63d0\u4f9b\u4e86\u6700\u65b0\u7684\u7a33\u5b9a\u7248\u672c\uff0c\u5e76\u4e14\u80fd\u591f\u786e\u4fdd\u4f60\u4e0b\u8f7d\u7684\u662f\u539f\u7248\u8f6f\u4ef6\uff0c\u4e0d\u5305\u542b\u4efb\u4f55\u6076\u610f\u7a0b\u5e8f\u6216\u5e7f\u544a\u63d2\u4ef6\u3002<\/p>\n<\/p>\n<p><h4>2. \u5982\u4f55\u8bbf\u95eePython\u5b98\u65b9\u7f51\u7ad9<\/h4>\n<\/p>\n<p><p>\u5728\u534e\u4e3a\u7b14\u8bb0\u672c\u7535\u8111\u4e0a\u6253\u5f00\u4f60\u5e38\u7528\u7684\u6d4f\u89c8\u5668\uff08\u5982Microsoft Edge\u3001Google Chrome\u6216Firefox\uff09\u3002\u5728\u5730\u5740\u680f\u8f93\u5165\u201c<a href=\"https:\/\/www.python.org\">python.org<\/a>\u201d\u5e76\u6309\u4e0b\u56de\u8f66\u952e\u3002\u4f60\u5c06\u4f1a\u8fdb\u5165Python\u7684\u5b98\u65b9\u7f51\u7ad9\u9996\u9875\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u4e0b\u8f7d\u9002\u5408\u7684\u5b89\u88c5\u5305<\/h3>\n<\/p>\n<p><h4>1. \u9009\u62e9\u64cd\u4f5c\u7cfb\u7edf<\/h4>\n<\/p>\n<p><p>\u5728Python\u5b98\u65b9\u7f51\u7ad9\u9996\u9875\uff0c\u627e\u5230\u5bfc\u822a\u680f\u4e2d\u7684\u201cDownloads\u201d\u9009\u9879\u3002\u5c06\u9f20\u6807\u60ac\u505c\u5728\u201cDownloads\u201d\u4e0a\uff0c\u4f1a\u5f39\u51fa\u4e00\u4e2a\u4e0b\u62c9\u83dc\u5355\uff0c\u9009\u62e9\u201cWindows\u201d\u4ee5\u4e0b\u8f7d\u9002\u7528\u4e8eWindows\u64cd\u4f5c\u7cfb\u7edf\u7684Python\u5b89\u88c5\u5305\u3002<\/p>\n<\/p>\n<p><h4>2. \u4e0b\u8f7d\u6700\u65b0\u7248\u672c<\/h4>\n<\/p>\n<p><p>\u5728\u201cWindows\u201d\u4e0b\u8f7d\u9875\u9762\u4e0a\uff0c\u4f60\u5c06\u770b\u5230\u5f53\u524d\u63a8\u8350\u4e0b\u8f7d\u7684Python\u7248\u672c\u3002\u70b9\u51fb\u9875\u9762\u4e2d\u7684\u201cDownload Python 3.x.x\u201d\u6309\u94ae\uff08\u5176\u4e2d3.x.x\u4ee3\u8868\u6700\u65b0\u7248\u672c\u53f7\uff0c\u59823.9.7\uff09\uff0c\u5f00\u59cb\u4e0b\u8f7dPython\u5b89\u88c5\u5305\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001\u5b89\u88c5Python3<\/h3>\n<\/p>\n<p><h4>1. \u542f\u52a8\u5b89\u88c5\u7a0b\u5e8f<\/h4>\n<\/p>\n<p><p>\u53cc\u51fb\u521a\u624d\u4e0b\u8f7d\u7684Python\u5b89\u88c5\u5305\uff08\u901a\u5e38\u662f\u4e00\u4e2a.exe\u6587\u4ef6\uff09\uff0c\u542f\u52a8Python\u5b89\u88c5\u7a0b\u5e8f\u3002\u5728\u5b89\u88c5\u7a0b\u5e8f\u7684\u9996\u9875\uff0c\u4f60\u4f1a\u770b\u5230\u4e00\u4e2a\u9009\u9879\u201cAdd Python 3.x to PATH\u201d\uff0c<strong>\u52a1\u5fc5\u52fe\u9009\u8fd9\u4e2a\u9009\u9879<\/strong>\uff0c\u4ee5\u4fbf\u540e\u7eed\u914d\u7f6e\u73af\u5883\u53d8\u91cf\u3002\u7136\u540e\u70b9\u51fb\u201cInstall Now\u201d\u6309\u94ae\uff0c\u5f00\u59cb\u5b89\u88c5\u3002<\/p>\n<\/p>\n<p><h4>2. \u5b89\u88c5\u8fc7\u7a0b<\/h4>\n<\/p>\n<p><p>\u5b89\u88c5\u8fc7\u7a0b\u53ef\u80fd\u9700\u8981\u51e0\u5206\u949f\u65f6\u95f4\uff0c\u8bf7\u8010\u5fc3\u7b49\u5f85\u3002\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u70b9\u51fb\u201cClose\u201d\u6309\u94ae\u5173\u95ed\u5b89\u88c5\u7a0b\u5e8f\u3002\u5982\u679c\u5b89\u88c5\u8fc7\u7a0b\u4e2d\u9047\u5230\u4efb\u4f55\u95ee\u9898\uff0c\u5b89\u88c5\u7a0b\u5e8f\u4f1a\u63d0\u4f9b\u8be6\u7ec6\u7684\u9519\u8bef\u4fe1\u606f\u548c\u89e3\u51b3\u5efa\u8bae\u3002<\/p>\n<\/p>\n<p><h3>\u56db\u3001\u914d\u7f6e\u73af\u5883\u53d8\u91cf<\/h3>\n<\/p>\n<p><h4>1. \u9a8c\u8bc1\u73af\u5883\u53d8\u91cf\u914d\u7f6e<\/h4>\n<\/p>\n<p><p>\u867d\u7136\u6211\u4eec\u5728\u5b89\u88c5\u65f6\u5df2\u7ecf\u52fe\u9009\u4e86\u201cAdd Python 3.x to PATH\u201d\u9009\u9879\uff0c\u4f46\u4e3a\u4e86\u786e\u4fdd\u4e07\u65e0\u4e00\u5931\uff0c\u6211\u4eec\u9700\u8981\u624b\u52a8\u9a8c\u8bc1\u73af\u5883\u53d8\u91cf\u7684\u914d\u7f6e\u662f\u5426\u6b63\u786e\u3002<\/p>\n<\/p>\n<p><h4>2. \u624b\u52a8\u914d\u7f6e\u73af\u5883\u53d8\u91cf<\/h4>\n<\/p>\n<p><p>\u5982\u679c\u9700\u8981\u624b\u52a8\u914d\u7f6e\u73af\u5883\u53d8\u91cf\uff0c\u53f3\u952e\u70b9\u51fb\u201c\u6b64\u7535\u8111\u201d\u56fe\u6807\uff0c\u9009\u62e9\u201c\u5c5e\u6027\u201d\u3002\u5728\u6253\u5f00\u7684\u7a97\u53e3\u4e2d\uff0c\u70b9\u51fb\u201c\u9ad8\u7ea7\u7cfb\u7edf\u8bbe\u7f6e\u201d\u94fe\u63a5\uff0c\u7136\u540e\u70b9\u51fb\u201c\u73af\u5883\u53d8\u91cf\u201d\u6309\u94ae\u3002\u5728\u201c\u7cfb\u7edf\u53d8\u91cf\u201d\u5217\u8868\u4e2d\u627e\u5230\u5e76\u9009\u62e9\u201cPath\u201d\u53d8\u91cf\uff0c\u70b9\u51fb\u201c\u7f16\u8f91\u201d\u6309\u94ae\u3002\u786e\u4fdd\u201cPath\u201d\u53d8\u91cf\u4e2d\u5305\u542bPython\u5b89\u88c5\u76ee\u5f55\uff08\u5982C:\\Python39\uff09\u548cScripts\u76ee\u5f55\uff08\u5982C:\\Python39\\Scripts\uff09\u3002<\/p>\n<\/p>\n<p><h3>\u4e94\u3001\u9a8c\u8bc1\u5b89\u88c5<\/h3>\n<\/p>\n<p><h4>1. \u4f7f\u7528\u547d\u4ee4\u884c\u9a8c\u8bc1<\/h4>\n<\/p>\n<p><p>\u6309\u4e0b\u952e\u76d8\u4e0a\u7684\u201cWin+R\u201d\u7ec4\u5408\u952e\uff0c\u6253\u5f00\u201c\u8fd0\u884c\u201d\u7a97\u53e3\uff0c\u8f93\u5165\u201ccmd\u201d\u5e76\u6309\u4e0b\u56de\u8f66\u952e\uff0c\u6253\u5f00\u547d\u4ee4\u63d0\u793a\u7b26\u7a97\u53e3\u3002\u5728\u547d\u4ee4\u63d0\u793a\u7b26\u4e2d\u8f93\u5165\u201cpython &#8211;version\u201d\u5e76\u6309\u4e0b\u56de\u8f66\u952e\uff0c\u5982\u679c\u663e\u793aPython\u7684\u7248\u672c\u53f7\uff08\u5982Python 3.9.7\uff09\uff0c\u5219\u8868\u793aPython\u5b89\u88c5\u6210\u529f\u3002<\/p>\n<\/p>\n<p><h4>2. \u4f7f\u7528Python\u89e3\u91ca\u5668\u9a8c\u8bc1<\/h4>\n<\/p>\n<p><p>\u5728\u547d\u4ee4\u63d0\u793a\u7b26\u4e2d\u8f93\u5165\u201cpython\u201d\u5e76\u6309\u4e0b\u56de\u8f66\u952e\uff0c\u8fdb\u5165Python\u89e3\u91ca\u5668\u3002\u4f60\u5c06\u770b\u5230\u7c7b\u4f3c\u4e8e\u201c&gt;&gt;&gt;\u201d\u7684\u63d0\u793a\u7b26\uff0c\u8868\u793a\u4f60\u5df2\u7ecf\u8fdb\u5165\u4e86Python\u4ea4\u4e92\u6a21\u5f0f\u3002\u8f93\u5165\u201cprint(&#39;Hello, World!&#39;)\u201d\u5e76\u6309\u4e0b\u56de\u8f66\u952e\uff0c\u5982\u679c\u8f93\u51fa\u201cHello, World!\u201d\uff0c\u5219\u8868\u793aPython\u5b89\u88c5\u6210\u529f\u5e76\u53ef\u4ee5\u6b63\u5e38\u4f7f\u7528\u3002<\/p>\n<\/p>\n<p><p>\u901a\u8fc7\u4ee5\u4e0a\u6b65\u9aa4\uff0c\u4f60\u5df2\u7ecf\u5728\u534e\u4e3a\u7b14\u8bb0\u672c\u7535\u8111\u4e0a\u6210\u529f\u4e0b\u8f7d\u5e76\u5b89\u88c5\u4e86Python3\u3002\u63a5\u4e0b\u6765\uff0c\u4f60\u53ef\u4ee5\u5f00\u59cb\u5b66\u4e60\u548c\u4f7f\u7528Python\u8fdb\u884c\u5404\u79cd\u7f16\u7a0b\u4efb\u52a1\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u8fdb\u4e00\u6b65\u7684\u5efa\u8bae\uff0c\u4ee5\u5e2e\u52a9\u4f60\u66f4\u597d\u5730\u4f7f\u7528Python\u3002<\/p>\n<\/p>\n<p><h3>\u516d\u3001\u5b89\u88c5\u5e38\u7528\u7684Python\u5e93<\/h3>\n<\/p>\n<p><h4>1. \u4f7f\u7528pip\u5b89\u88c5\u5e93<\/h4>\n<\/p>\n<p><p>Python\u81ea\u5e26\u7684\u5305\u7ba1\u7406\u5de5\u5177pip\u80fd\u591f\u5e2e\u52a9\u4f60\u8f7b\u677e\u5b89\u88c5\u5404\u79cd\u7b2c\u4e09\u65b9\u5e93\u3002\u5728\u547d\u4ee4\u63d0\u793a\u7b26\u4e2d\u8f93\u5165\u201cpip install \u5e93\u540d\u201d\u5e76\u6309\u4e0b\u56de\u8f66\u952e\u5373\u53ef\u5b89\u88c5\u76f8\u5e94\u7684\u5e93\u3002\u4f8b\u5982\uff0c\u8f93\u5165\u201cpip install numpy\u201d\u53ef\u4ee5\u5b89\u88c5\u7528\u4e8e\u79d1\u5b66\u8ba1\u7b97\u7684NumPy\u5e93\u3002<\/p>\n<\/p>\n<p><h4>2. \u5e38\u7528Python\u5e93\u63a8\u8350<\/h4>\n<\/p>\n<p><p>\u4ee5\u4e0b\u662f\u4e00\u4e9b\u5e38\u7528\u7684Python\u5e93\u63a8\u8350\uff1a<\/p>\n<\/p>\n<ul>\n<li>NumPy\uff1a\u7528\u4e8e\u79d1\u5b66\u8ba1\u7b97\u548c\u6570\u7ec4\u64cd\u4f5c\u3002<\/li>\n<li>pandas\uff1a\u7528\u4e8e\u6570\u636e\u5904\u7406\u548c\u5206\u6790\u3002<\/li>\n<li>matplotlib\uff1a\u7528\u4e8e\u6570\u636e\u53ef\u89c6\u5316\u3002<\/li>\n<li>requests\uff1a\u7528\u4e8e\u53d1\u9001HTTP\u8bf7\u6c42\u3002<\/li>\n<li>Flask\uff1a\u7528\u4e8e\u521b\u5efaWeb\u5e94\u7528\u3002<\/li>\n<\/ul>\n<p><h3>\u4e03\u3001\u4f7f\u7528\u96c6\u6210\u5f00\u53d1\u73af\u5883\uff08IDE\uff09<\/h3>\n<\/p>\n<p><h4>1. \u4e3a\u4ec0\u4e48\u9009\u62e9IDE<\/h4>\n<\/p>\n<p><p>\u867d\u7136\u4f60\u53ef\u4ee5\u4f7f\u7528\u4efb\u4f55\u6587\u672c\u7f16\u8f91\u5668\u7f16\u5199Python\u4ee3\u7801\uff0c\u4f46\u4f7f\u7528\u96c6\u6210\u5f00\u53d1\u73af\u5883\uff08IDE\uff09\u80fd\u591f\u63d0\u4f9b\u66f4\u597d\u7684\u5f00\u53d1\u4f53\u9a8c\u3002IDE\u901a\u5e38\u5177\u6709\u4ee3\u7801\u9ad8\u4eae\u3001\u81ea\u52a8\u8865\u5168\u3001\u8c03\u8bd5\u7b49\u529f\u80fd\uff0c\u80fd\u591f\u5927\u5927\u63d0\u9ad8\u5f00\u53d1\u6548\u7387\u3002<\/p>\n<\/p>\n<p><h4>2. \u63a8\u8350\u7684Python IDE<\/h4>\n<\/p>\n<p><p>\u4ee5\u4e0b\u662f\u4e00\u4e9b\u63a8\u8350\u7684Python IDE\uff1a<\/p>\n<\/p>\n<ul>\n<li>PyCharm\uff1a\u529f\u80fd\u5f3a\u5927\u7684Python\u4e13\u7528IDE\uff0c\u9002\u5408\u4e13\u4e1a\u5f00\u53d1\u8005\u4f7f\u7528\u3002<\/li>\n<li>Visual Studio Code\uff1a\u8f7b\u91cf\u7ea7\u3001\u591a\u8bed\u8a00\u652f\u6301\u7684\u4ee3\u7801\u7f16\u8f91\u5668\uff0c\u9002\u5408\u521d\u5b66\u8005\u548c\u591a\u8bed\u8a00\u5f00\u53d1\u8005\u3002<\/li>\n<li>Jupyter Notebook\uff1a\u9002\u5408\u6570\u636e\u79d1\u5b66\u548c<a href=\"https:\/\/docs.pingcode.com\/ask\/59192.html\" target=\"_blank\">\u673a\u5668\u5b66\u4e60<\/a>\u7684\u4ea4\u4e92\u5f0f\u5f00\u53d1\u73af\u5883\u3002<\/li>\n<\/ul>\n<p><h3>\u516b\u3001\u5b66\u4e60\u8d44\u6e90\u63a8\u8350<\/h3>\n<\/p>\n<p><h4>1. \u5b98\u65b9\u6587\u6863<\/h4>\n<\/p>\n<p><p>Python\u7684\u5b98\u65b9\u6587\u6863\uff08<a href=\"https:\/\/docs.python.org\">docs.python.org<\/a>\uff09\u662f\u5b66\u4e60Python\u6700\u6743\u5a01\u7684\u8d44\u6e90\u3002\u5b98\u65b9\u6587\u6863\u8be6\u7ec6\u4ecb\u7ecd\u4e86Python\u7684\u8bed\u6cd5\u3001\u6807\u51c6\u5e93\u548c\u5404\u79cd\u9ad8\u7ea7\u7279\u6027\uff0c\u975e\u5e38\u9002\u5408\u6df1\u5165\u5b66\u4e60\u3002<\/p>\n<\/p>\n<p><h4>2. \u5728\u7ebf\u8bfe\u7a0b<\/h4>\n<\/p>\n<p><p>\u4ee5\u4e0b\u662f\u4e00\u4e9b\u63a8\u8350\u7684\u5728\u7ebfPython\u8bfe\u7a0b\uff1a<\/p>\n<\/p>\n<ul>\n<li>Coursera\u4e0a\u7684\u201cPython for Everybody\u201d\u8bfe\u7a0b\uff0c\u7531\u5bc6\u6b47\u6839\u5927\u5b66\u63d0\u4f9b\uff0c\u9002\u5408\u521d\u5b66\u8005\u3002<\/li>\n<li>edX\u4e0a\u7684\u201cIntroduction to Python Programming\u201d\u8bfe\u7a0b\uff0c\u7531\u5fae\u8f6f\u63d0\u4f9b\uff0c\u9002\u5408\u521d\u5b66\u8005\u548c\u4e2d\u7ea7\u7528\u6237\u3002<\/li>\n<li>Udemy\u4e0a\u7684\u201cComplete Python Bootcamp\u201d\u8bfe\u7a0b\uff0c\u7531Jose Portilla\u6559\u6388\uff0c\u9002\u5408\u5404\u4e2a\u7ea7\u522b\u7684\u5b66\u4e60\u8005\u3002<\/li>\n<\/ul>\n<p><h4>3. \u7f16\u7a0b\u793e\u533a<\/h4>\n<\/p>\n<p><p>\u52a0\u5165\u7f16\u7a0b\u793e\u533a\u80fd\u591f\u5e2e\u52a9\u4f60\u89e3\u51b3\u9047\u5230\u7684\u95ee\u9898\uff0c\u5e76\u4e0e\u5176\u4ed6\u5f00\u53d1\u8005\u4ea4\u6d41\u7ecf\u9a8c\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u63a8\u8350\u7684\u7f16\u7a0b\u793e\u533a\uff1a<\/p>\n<\/p>\n<ul>\n<li>Stack Overflow\uff1a\u5168\u7403\u6700\u5927\u7684\u7f16\u7a0b\u95ee\u7b54\u793e\u533a\u3002<\/li>\n<li>GitHub\uff1a\u5168\u7403\u6700\u5927\u7684\u4ee3\u7801\u6258\u7ba1\u5e73\u53f0\uff0c\u9002\u5408\u53c2\u4e0e\u5f00\u6e90\u9879\u76ee\u548c\u4ee3\u7801\u5206\u4eab\u3002<\/li>\n<li>Reddit\u7684r\/learnpython\u548cr\/Python\u793e\u533a\uff1a\u9002\u5408\u8ba8\u8bbaPython\u76f8\u5173\u95ee\u9898\u548c\u5206\u4eab\u5b66\u4e60\u8d44\u6e90\u3002<\/li>\n<\/ul>\n<p><h3>\u4e5d\u3001\u7248\u672c\u7ba1\u7406\u5de5\u5177<\/h3>\n<\/p>\n<p><h4>1. \u4e3a\u4ec0\u4e48\u4f7f\u7528\u7248\u672c\u7ba1\u7406\u5de5\u5177<\/h4>\n<\/p>\n<p><p>\u4f7f\u7528\u7248\u672c\u7ba1\u7406\u5de5\u5177\uff08\u5982Git\uff09\u80fd\u591f\u5e2e\u52a9\u4f60\u7ba1\u7406\u4ee3\u7801\u7248\u672c\u3001\u534f\u4f5c\u5f00\u53d1\u548c\u5907\u4efd\u4ee3\u7801\u3002Git\u662f\u76ee\u524d\u6700\u6d41\u884c\u7684\u7248\u672c\u7ba1\u7406\u5de5\u5177\uff0c\u5e7f\u6cdb\u5e94\u7528\u4e8e\u5404\u79cd\u8f6f\u4ef6\u5f00\u53d1\u9879\u76ee\u4e2d\u3002<\/p>\n<\/p>\n<p><h4>2. \u5b89\u88c5\u548c\u914d\u7f6eGit<\/h4>\n<\/p>\n<p><p>\u5728\u534e\u4e3a\u7b14\u8bb0\u672c\u7535\u8111\u4e0a\u5b89\u88c5Git\u975e\u5e38\u7b80\u5355\u3002\u8bbf\u95eeGit\u7684\u5b98\u65b9\u7f51\u7ad9\uff08<a href=\"https:\/\/git-scm.com\">git-scm.com<\/a>\uff09\uff0c\u4e0b\u8f7d\u9002\u7528\u4e8eWindows\u7684\u5b89\u88c5\u5305\u5e76\u8fd0\u884c\u5b89\u88c5\u7a0b\u5e8f\u3002\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u6253\u5f00\u547d\u4ee4\u63d0\u793a\u7b26\uff0c\u8f93\u5165\u201cgit &#8211;version\u201d\u9a8c\u8bc1\u5b89\u88c5\u662f\u5426\u6210\u529f\u3002<\/p>\n<\/p>\n<p><h4>3. \u4f7f\u7528Git\u8fdb\u884c\u7248\u672c\u7ba1\u7406<\/h4>\n<\/p>\n<p><p>\u4ee5\u4e0b\u662f\u4e00\u4e9b\u5e38\u7528\u7684Git\u547d\u4ee4\uff1a<\/p>\n<\/p>\n<ul>\n<li>git init\uff1a\u5728\u5f53\u524d\u76ee\u5f55\u521d\u59cb\u5316\u4e00\u4e2a\u65b0\u7684Git\u4ed3\u5e93\u3002<\/li>\n<li>git clone \u4ed3\u5e93\u5730\u5740\uff1a\u514b\u9686\u4e00\u4e2a\u8fdc\u7a0b\u4ed3\u5e93\u5230\u672c\u5730\u3002<\/li>\n<li>git add \u6587\u4ef6\u540d\uff1a\u5c06\u4fee\u6539\u6dfb\u52a0\u5230\u6682\u5b58\u533a\u3002<\/li>\n<li>git commit -m &quot;\u63d0\u4ea4\u4fe1\u606f&quot;\uff1a\u63d0\u4ea4\u4fee\u6539\u3002<\/li>\n<li>git push\uff1a\u5c06\u672c\u5730\u63d0\u4ea4\u63a8\u9001\u5230\u8fdc\u7a0b\u4ed3\u5e93\u3002<\/li>\n<\/ul>\n<p><p>\u901a\u8fc7\u4ee5\u4e0a\u6b65\u9aa4\uff0c\u4f60\u4e0d\u4ec5\u6210\u529f\u5730\u5728\u534e\u4e3a\u7b14\u8bb0\u672c\u7535\u8111\u4e0a\u5b89\u88c5\u4e86Python3\uff0c\u8fd8\u5b66\u4e60\u4e86\u5982\u4f55\u4f7f\u7528\u5e38\u7528\u7684Python\u5e93\u3001\u96c6\u6210\u5f00\u53d1\u73af\u5883\u3001\u5b66\u4e60\u8d44\u6e90\u4ee5\u53ca\u7248\u672c\u7ba1\u7406\u5de5\u5177\u3002\u5e0c\u671b\u8fd9\u7bc7\u6587\u7ae0\u5bf9\u4f60\u6709\u6240\u5e2e\u52a9\uff0c\u795d\u4f60\u5728Python\u7f16\u7a0b\u7684\u9053\u8def\u4e0a\u53d6\u5f97\u6210\u529f\uff01<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728\u534e\u4e3a\u7b14\u8bb0\u672c\u7535\u8111\u4e0a\u5b89\u88c5Python3\uff1f<\/strong><br \/>\u8981\u5728\u534e\u4e3a\u7b14\u8bb0\u672c\u7535\u8111\u4e0a\u5b89\u88c5Python3\uff0c\u53ef\u4ee5\u8bbf\u95eePython\u7684\u5b98\u65b9\u7f51\u7ad9\uff08python.org\uff09\uff0c\u4e0b\u8f7d\u9002\u5408Windows\u64cd\u4f5c\u7cfb\u7edf\u7684\u5b89\u88c5\u5305\u3002\u4e0b\u8f7d\u5b8c\u6210\u540e\uff0c\u53cc\u51fb\u5b89\u88c5\u5305\uff0c\u6309\u7167\u63d0\u793a\u5b8c\u6210\u5b89\u88c5\uff0c\u5e76\u786e\u4fdd\u5728\u5b89\u88c5\u8fc7\u7a0b\u4e2d\u52fe\u9009\u201cAdd Python to PATH\u201d\u9009\u9879\uff0c\u4ee5\u4fbf\u5728\u547d\u4ee4\u884c\u4e2d\u76f4\u63a5\u4f7f\u7528Python\u547d\u4ee4\u3002<\/p>\n<p><strong>\u5728\u534e\u4e3a\u7b14\u8bb0\u672c\u7535\u8111\u4e0a\u5b89\u88c5Python3\u540e\uff0c\u5982\u4f55\u9a8c\u8bc1\u5b89\u88c5\u662f\u5426\u6210\u529f\uff1f<\/strong><br \/>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u53ef\u4ee5\u6253\u5f00\u547d\u4ee4\u63d0\u793a\u7b26\uff08CMD\uff09\uff0c\u8f93\u5165<code>python --version<\/code>\u6216<code>python3 --version<\/code>\u3002\u5982\u679c\u663e\u793a\u51faPython\u7684\u7248\u672c\u53f7\uff0c\u8bf4\u660e\u5b89\u88c5\u6210\u529f\u3002\u5982\u679c\u51fa\u73b0\u9519\u8bef\u4fe1\u606f\uff0c\u53ef\u80fd\u9700\u8981\u68c0\u67e5\u5b89\u88c5\u6b65\u9aa4\u6216\u91cd\u65b0\u5b89\u88c5\u3002<\/p>\n<p><strong>\u5728\u534e\u4e3a\u7b14\u8bb0\u672c\u7535\u8111\u4e0a\uff0c\u6709\u54ea\u4e9b\u63a8\u8350\u7684Python\u5f00\u53d1\u73af\u5883\uff1f<\/strong><br \/>\u53ef\u4ee5\u9009\u62e9\u591a\u79cd\u5f00\u53d1\u73af\u5883\u6765\u7f16\u5199Python\u4ee3\u7801\uff0c\u4f8b\u5982PyCharm\u3001Visual Studio Code\u548cJupyter Notebook\u7b49\u3002PyCharm\u529f\u80fd\u5f3a\u5927\uff0c\u9002\u5408\u5927\u578b\u9879\u76ee\uff1bVisual Studio Code\u8f7b\u4fbf\uff0c\u9002\u5408\u8f7b\u91cf\u5f00\u53d1\uff1bJupyter Notebook\u5219\u9002\u5408\u6570\u636e\u5206\u6790\u548c\u79d1\u5b66\u8ba1\u7b97\u3002\u8fd9\u4e9b\u73af\u5883\u901a\u5e38\u4e5f\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u63d2\u4ef6\u548c\u793e\u533a\u652f\u6301\uff0c\u80fd\u591f\u63d0\u5347\u5f00\u53d1\u6548\u7387\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u534e\u4e3a\u7b14\u8bb0\u672c\u7535\u8111\u5982\u4f55\u4e0b\u8f7dpython3\uff1a 1. \u8bbf\u95eePython\u5b98\u65b9\u7f51\u7ad9\u30012. \u4e0b\u8f7d\u9002\u5408\u7684\u5b89\u88c5\u5305\u30013. \u5b89\u88c5Py [&hellip;]","protected":false},"author":3,"featured_media":1139989,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[37],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1139977"}],"collection":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/comments?post=1139977"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1139977\/revisions"}],"predecessor-version":[{"id":1139991,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1139977\/revisions\/1139991"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1139989"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1139977"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1139977"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1139977"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}