{"id":1016249,"date":"2024-12-27T12:14:44","date_gmt":"2024-12-27T04:14:44","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1016249.html"},"modified":"2024-12-27T12:14:46","modified_gmt":"2024-12-27T04:14:46","slug":"python3-8-2%e5%a6%82%e4%bd%95%e4%bd%bf%e7%94%a8","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1016249.html","title":{"rendered":"python3.8.2\u5982\u4f55\u4f7f\u7528"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25095841\/96454b90-68d3-4441-aff1-fabab2af71a8.webp\" alt=\"python3.8.2\u5982\u4f55\u4f7f\u7528\" \/><\/p>\n<p><p> <strong>Python 3.8.2\u7684\u4f7f\u7528\u65b9\u6cd5\u5305\u62ec\u5b89\u88c5Python\u89e3\u91ca\u5668\u3001\u8bbe\u7f6e\u73af\u5883\u53d8\u91cf\u3001\u4f7f\u7528Python\u4ea4\u4e92\u5f0f\u547d\u4ee4\u884c\u3001\u7f16\u5199\u548c\u8fd0\u884cPython\u811a\u672c\u3001\u4f7f\u7528Python\u5e93\u548c\u6a21\u5757<\/strong>\u3002\u5176\u4e2d\uff0c\u5b89\u88c5Python\u89e3\u91ca\u5668\u662f\u4f7f\u7528Python\u7684\u7b2c\u4e00\u6b65\u3002\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u60a8\u9700\u8981\u8bbe\u7f6e\u73af\u5883\u53d8\u91cf\u4ee5\u4fbf\u5728\u547d\u4ee4\u884c\u4e2d\u65b9\u4fbf\u5730\u4f7f\u7528Python\u3002\u7136\u540e\uff0c\u60a8\u53ef\u4ee5\u901a\u8fc7Python\u7684\u4ea4\u4e92\u5f0f\u547d\u4ee4\u884c\u548c\u811a\u672c\u6765\u6267\u884cPython\u4ee3\u7801\u3002Python 3.8.2\u63d0\u4f9b\u4e86\u8bb8\u591a\u5f3a\u5927\u7684\u5e93\u548c\u6a21\u5757\uff0c\u53ef\u4ee5\u5e2e\u52a9\u60a8\u66f4\u6709\u6548\u5730\u5b8c\u6210\u5404\u79cd\u4efb\u52a1\u3002\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u5c06\u8be6\u7ec6\u63a2\u8ba8\u8fd9\u4e9b\u4f7f\u7528\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u5b89\u88c5Python 3.8.2<\/h3>\n<\/p>\n<p><p>\u5b89\u88c5Python\u662f\u4f7f\u7528Python\u7684\u7b2c\u4e00\u6b65\u3002\u60a8\u53ef\u4ee5\u5728Python\u7684\u5b98\u65b9\u7f51\u7ad9\u4e0a\u4e0b\u8f7dPython 3.8.2\u7684\u5b89\u88c5\u5305\u3002\u4e0b\u8f7d\u540e\uff0c\u6839\u636e\u60a8\u7684\u64cd\u4f5c\u7cfb\u7edf\u8fdb\u884c\u5b89\u88c5\u3002<\/p>\n<\/p>\n<p><h4>1. Windows\u7cfb\u7edf\u4e0a\u7684\u5b89\u88c5<\/h4>\n<\/p>\n<p><p>\u5728Windows\u7cfb\u7edf\u4e0a\uff0cPython\u5b89\u88c5\u7a0b\u5e8f\u4f1a\u81ea\u52a8\u4e3a\u60a8\u914d\u7f6e\u73af\u5883\u53d8\u91cf\u3002\u60a8\u53ea\u9700\u4e0b\u8f7dPython 3.8.2\u7684\u5b89\u88c5\u7a0b\u5e8f\uff0c\u5e76\u6309\u7167\u63d0\u793a\u8fdb\u884c\u5b89\u88c5\u3002\u9009\u62e9\u201cAdd Python 3.8 to PATH\u201d\u9009\u9879\uff0c\u4ee5\u786e\u4fddPython\u547d\u4ee4\u53ef\u4ee5\u5728\u547d\u4ee4\u63d0\u793a\u7b26\u4e2d\u4f7f\u7528\u3002<\/p>\n<\/p>\n<p><h4>2. macOS\u7cfb\u7edf\u4e0a\u7684\u5b89\u88c5<\/h4>\n<\/p>\n<p><p>\u5728macOS\u4e0a\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528Homebrew\u6765\u5b89\u88c5Python\u3002\u9996\u5148\uff0c\u786e\u4fdd\u60a8\u5df2\u7ecf\u5b89\u88c5\u4e86Homebrew\uff0c\u7136\u540e\u5728\u7ec8\u7aef\u4e2d\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">brew install python@3.8<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u5c06\u5b89\u88c5Python 3.8.2\uff0c\u5e76\u81ea\u52a8\u914d\u7f6e\u73af\u5883\u53d8\u91cf\u3002<\/p>\n<\/p>\n<p><h4>3. Linux\u7cfb\u7edf\u4e0a\u7684\u5b89\u88c5<\/h4>\n<\/p>\n<p><p>\u5728Linux\u7cfb\u7edf\u4e0a\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528\u5305\u7ba1\u7406\u5668\u6765\u5b89\u88c5Python 3.8.2\u3002\u4f8b\u5982\uff0c\u5728Ubuntu\u4e0a\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">sudo apt update<\/p>\n<p>sudo apt install python3.8<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u5c06\u5728\u60a8\u7684\u7cfb\u7edf\u4e0a\u5b89\u88c5Python 3.8.2\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u914d\u7f6e\u73af\u5883\u53d8\u91cf<\/h3>\n<\/p>\n<p><p>\u914d\u7f6e\u73af\u5883\u53d8\u91cf\u53ef\u4ee5\u8ba9\u60a8\u5728\u547d\u4ee4\u884c\u4e2d\u76f4\u63a5\u4f7f\u7528<code>python<\/code>\u547d\u4ee4\u3002\u5728Windows\u7cfb\u7edf\u4e0a\uff0c\u5982\u679c\u60a8\u5728\u5b89\u88c5\u65f6\u9009\u62e9\u4e86\u201cAdd Python 3.8 to PATH\u201d\u9009\u9879\uff0c\u90a3\u4e48\u73af\u5883\u53d8\u91cf\u5df2\u7ecf\u914d\u7f6e\u597d\u4e86\u3002\u5426\u5219\uff0c\u60a8\u53ef\u4ee5\u624b\u52a8\u914d\u7f6e\u3002<\/p>\n<\/p>\n<p><h4>1. Windows\u4e0a\u7684\u73af\u5883\u53d8\u91cf\u914d\u7f6e<\/h4>\n<\/p>\n<p><p>\u60a8\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u6b65\u9aa4\u624b\u52a8\u914d\u7f6eWindows\u4e0a\u7684\u73af\u5883\u53d8\u91cf\uff1a<\/p>\n<\/p>\n<ol>\n<li>\u5728\u201c\u5f00\u59cb\u201d\u83dc\u5355\u4e2d\u641c\u7d22\u201c\u73af\u5883\u53d8\u91cf\u201d\uff0c\u7136\u540e\u9009\u62e9\u201c\u7f16\u8f91\u7cfb\u7edf\u73af\u5883\u53d8\u91cf\u201d\u3002<\/li>\n<li>\u5728\u201c\u7cfb\u7edf\u5c5e\u6027\u201d\u7a97\u53e3\u4e2d\uff0c\u70b9\u51fb\u201c\u73af\u5883\u53d8\u91cf\u201d\u6309\u94ae\u3002<\/li>\n<li>\u5728\u201c\u7cfb\u7edf\u53d8\u91cf\u201d\u90e8\u5206\uff0c\u627e\u5230\u5e76\u9009\u62e9\u201cPath\u201d\u53d8\u91cf\uff0c\u7136\u540e\u70b9\u51fb\u201c\u7f16\u8f91\u201d\u3002<\/li>\n<li>\u5728\u201c\u7f16\u8f91\u73af\u5883\u53d8\u91cf\u201d\u7a97\u53e3\u4e2d\uff0c\u70b9\u51fb\u201c\u65b0\u5efa\u201d\uff0c\u7136\u540e\u8f93\u5165Python\u7684\u5b89\u88c5\u8def\u5f84\uff08\u4f8b\u5982\uff1a<code>C:\\Python38<\/code>\uff09\u3002<\/li>\n<li>\u786e\u8ba4\u6240\u6709\u7a97\u53e3\u7684\u66f4\u6539\u3002<\/li>\n<\/ol>\n<p><h4>2. macOS\u548cLinux\u4e0a\u7684\u73af\u5883\u53d8\u91cf\u914d\u7f6e<\/h4>\n<\/p>\n<p><p>\u5728macOS\u548cLinux\u4e0a\uff0c\u60a8\u53ef\u4ee5\u901a\u8fc7\u4fee\u6539<code>.bash_profile<\/code>\u6216<code>.bashrc<\/code>\u6587\u4ef6\u6765\u914d\u7f6e\u73af\u5883\u53d8\u91cf\u3002\u6253\u5f00\u7ec8\u7aef\u5e76\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">echo &#39;export PATH=&quot;\/usr\/local\/opt\/python@3.8\/bin:$PATH&quot;&#39; &gt;&gt; ~\/.bash_profile<\/p>\n<p>source ~\/.bash_profile<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u5c06Python 3.8\u6dfb\u52a0\u5230\u60a8\u7684<code>PATH<\/code>\u4e2d\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001\u4f7f\u7528Python\u4ea4\u4e92\u5f0f\u547d\u4ee4\u884c<\/h3>\n<\/p>\n<p><p>Python\u63d0\u4f9b\u4e86\u4e00\u4e2a\u4ea4\u4e92\u5f0f\u547d\u4ee4\u884c\uff08\u4e5f\u79f0\u4e3aREPL\uff09\uff0c\u7528\u4e8e\u6d4b\u8bd5\u548c\u8c03\u8bd5\u4ee3\u7801\u3002\u5728\u547d\u4ee4\u884c\u4e2d\u8f93\u5165<code>python<\/code>\u6216<code>python3<\/code>\uff08\u53d6\u51b3\u4e8e\u60a8\u7684\u914d\u7f6e\uff09\uff0c\u5373\u53ef\u8fdb\u5165Python\u4ea4\u4e92\u5f0f\u547d\u4ee4\u884c\u3002\u60a8\u53ef\u4ee5\u5728\u8fd9\u91cc\u8f93\u5165Python\u4ee3\u7801\u5e76\u7acb\u5373\u67e5\u770b\u7ed3\u679c\u3002<\/p>\n<\/p>\n<p><h4>\u793a\u4f8b<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\">&gt;&gt;&gt; print(&quot;Hello, World!&quot;)<\/p>\n<p>Hello, World!<\/p>\n<p>&gt;&gt;&gt; 2 + 2<\/p>\n<p>4<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u5373\u65f6\u53cd\u9988\u4f7f\u5f97Python\u4ea4\u4e92\u5f0f\u547d\u4ee4\u884c\u975e\u5e38\u9002\u5408\u8fdb\u884c\u5b9e\u9a8c\u548c\u8c03\u8bd5\u3002<\/p>\n<\/p>\n<p><h3>\u56db\u3001\u7f16\u5199\u548c\u8fd0\u884cPython\u811a\u672c<\/h3>\n<\/p>\n<p><p>\u9664\u4e86\u4ea4\u4e92\u5f0f\u547d\u4ee4\u884c\uff0c\u60a8\u8fd8\u53ef\u4ee5\u7f16\u5199Python\u811a\u672c\u5e76\u8fd0\u884c\u5b83\u4eec\u3002Python\u811a\u672c\u662f\u5305\u542bPython\u4ee3\u7801\u7684\u6587\u672c\u6587\u4ef6\uff0c\u901a\u5e38\u4ee5<code>.py<\/code>\u4e3a\u6269\u5c55\u540d\u3002<\/p>\n<\/p>\n<p><h4>1. \u7f16\u5199Python\u811a\u672c<\/h4>\n<\/p>\n<p><p>\u4f7f\u7528\u6587\u672c\u7f16\u8f91\u5668\uff08\u5982VSCode\u3001Sublime Text\u6216PyCharm\uff09\u7f16\u5199Python\u811a\u672c\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u7b80\u5355\u7684Python\u811a\u672c\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># hello.py<\/p>\n<p>def greet(name):<\/p>\n<p>    print(f&quot;Hello, {name}!&quot;)<\/p>\n<p>greet(&quot;World&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2. \u8fd0\u884cPython\u811a\u672c<\/h4>\n<\/p>\n<p><p>\u8981\u8fd0\u884cPython\u811a\u672c\uff0c\u8bf7\u5728\u547d\u4ee4\u884c\u4e2d\u5bfc\u822a\u5230\u811a\u672c\u6240\u5728\u7684\u76ee\u5f55\uff0c\u7136\u540e\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">python hello.py<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u5c06\u6267\u884c\u811a\u672c\u5e76\u8f93\u51fa\u7ed3\u679c\u3002<\/p>\n<\/p>\n<p><h3>\u4e94\u3001\u4f7f\u7528Python\u5e93\u548c\u6a21\u5757<\/h3>\n<\/p>\n<p><p>Python\u6709\u4e00\u4e2a\u5e9e\u5927\u7684\u6807\u51c6\u5e93\uff0c\u4ee5\u53ca\u4e30\u5bcc\u7684\u7b2c\u4e09\u65b9\u5e93\u751f\u6001\u7cfb\u7edf\uff0c\u53ef\u4ee5\u5e2e\u52a9\u60a8\u5b8c\u6210\u5404\u79cd\u4efb\u52a1\u3002<\/p>\n<\/p>\n<p><h4>1. \u4f7f\u7528\u6807\u51c6\u5e93<\/h4>\n<\/p>\n<p><p>Python\u7684\u6807\u51c6\u5e93\u5305\u542b\u8bb8\u591a\u6709\u7528\u7684\u6a21\u5757\uff0c\u4f8b\u5982<code>os<\/code>\u3001<code>sys<\/code>\u3001<code>json<\/code>\u7b49\u3002\u60a8\u53ef\u4ee5\u901a\u8fc7<code>import<\/code>\u8bed\u53e5\u5bfc\u5165\u8fd9\u4e9b\u6a21\u5757\u5e76\u4f7f\u7528\u5b83\u4eec\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import os<\/p>\n<p>current_directory = os.getcwd()<\/p>\n<p>print(f&quot;Current Directory: {current_directory}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2. \u5b89\u88c5\u548c\u4f7f\u7528\u7b2c\u4e09\u65b9\u5e93<\/h4>\n<\/p>\n<p><p>\u60a8\u53ef\u4ee5\u4f7f\u7528<code>pip<\/code>\u5b89\u88c5\u7b2c\u4e09\u65b9\u5e93\u3002<code>pip<\/code>\u662fPython\u7684\u5305\u7ba1\u7406\u5de5\u5177\uff0c\u968fPython\u4e00\u8d77\u5b89\u88c5\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install requests<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u60a8\u53ef\u4ee5\u5728Python\u811a\u672c\u4e2d\u5bfc\u5165\u5e76\u4f7f\u7528\u8fd9\u4e9b\u5e93\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import requests<\/p>\n<p>response = requests.get(&quot;https:\/\/api.github.com&quot;)<\/p>\n<p>print(response.status_code)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u516d\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>Python 3.8.2\u7684\u4f7f\u7528\u5305\u62ec\u5b89\u88c5\u548c\u914d\u7f6e\u3001\u4f7f\u7528\u4ea4\u4e92\u5f0f\u547d\u4ee4\u884c\u3001\u7f16\u5199\u548c\u8fd0\u884c\u811a\u672c\u4ee5\u53ca\u5229\u7528\u4e30\u5bcc\u7684\u5e93\u751f\u6001\u7cfb\u7edf\u3002\u901a\u8fc7\u638c\u63e1\u8fd9\u4e9b\u57fa\u672c\u6280\u80fd\uff0c\u60a8\u53ef\u4ee5\u6709\u6548\u5730\u4f7f\u7528Python\u8fdb\u884c\u7f16\u7a0b\u3002Python\u7684\u7b80\u5355\u8bed\u6cd5\u548c\u5e7f\u6cdb\u7684\u5e94\u7528\u573a\u666f\u4f7f\u5176\u6210\u4e3a\u521d\u5b66\u8005\u548c\u4e13\u4e1a\u5f00\u53d1\u8005\u7684\u7406\u60f3\u9009\u62e9\u3002\u65e0\u8bba\u662f\u6570\u636e\u5206\u6790\u3001Web\u5f00\u53d1\u8fd8\u662f<a href=\"https:\/\/docs.pingcode.com\/ask\/59192.html\" target=\"_blank\">\u673a\u5668\u5b66\u4e60<\/a>\uff0cPython\u90fd\u80fd\u4e3a\u60a8\u63d0\u4f9b\u5f3a\u5927\u7684\u652f\u6301\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5b89\u88c5Python 3.8.2\uff1f<\/strong><br \/>\u8981\u5b89\u88c5Python 3.8.2\uff0c\u60a8\u53ef\u4ee5\u8bbf\u95eePython\u7684\u5b98\u65b9\u7f51\u7ad9\uff0c\u4e0b\u8f7d\u9002\u5408\u60a8\u64cd\u4f5c\u7cfb\u7edf\u7684\u5b89\u88c5\u7a0b\u5e8f\u3002\u5bf9\u4e8eWindows\u7528\u6237\uff0c\u9009\u62e9\u53ef\u6267\u884c\u5b89\u88c5\u7a0b\u5e8f\u5e76\u6309\u7167\u63d0\u793a\u64cd\u4f5c\uff1b\u5bf9\u4e8emacOS\u7528\u6237\uff0c\u53ef\u4ee5\u4f7f\u7528Homebrew\u8fdb\u884c\u5b89\u88c5\uff0c\u547d\u4ee4\u4e3a<code>brew install python@3.8<\/code>\u3002Linux\u7528\u6237\u53ef\u4ee5\u901a\u8fc7\u5305\u7ba1\u7406\u5668\u5b89\u88c5\uff0c\u5177\u4f53\u547d\u4ee4\u56e0\u53d1\u884c\u7248\u800c\u5f02\u3002\u4f8b\u5982\uff0c\u5728Ubuntu\u4e0a\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528<code>sudo apt install python3.8<\/code>\u3002<\/p>\n<p><strong>Python 3.8.2\u7684\u65b0\u7279\u6027\u6709\u54ea\u4e9b\uff1f<\/strong><br \/>Python 3.8.2\u5f15\u5165\u4e86\u4e00\u4e9b\u65b0\u7684\u7279\u6027\u548c\u6539\u8fdb\uff0c\u5305\u62ec\u8d4b\u503c\u8868\u8fbe\u5f0f\uff08\u5373\u201c\u6d77\u8c61\u8fd0\u7b97\u7b26\u201d<code>:=<\/code>\uff09\uff0c\u53ef\u4ee5\u5728\u8868\u8fbe\u5f0f\u4e2d\u8fdb\u884c\u8d4b\u503c\u3002\u6b64\u5916\uff0c\u8fd8\u589e\u52a0\u4e86\u4f4d\u7f6e\u53c2\u6570\u7684\u652f\u6301\uff0c\u4f7f\u51fd\u6570\u53c2\u6570\u7684\u5b9a\u4e49\u66f4\u7075\u6d3b\u3002\u8bb8\u591a\u6807\u51c6\u5e93\u4e5f\u8fdb\u884c\u4e86\u66f4\u65b0\uff0c\u589e\u5f3a\u4e86\u6027\u80fd\u548c\u529f\u80fd\u3002<\/p>\n<p><strong>\u5982\u4f55\u5728Python 3.8.2\u4e2d\u8fd0\u884c\u811a\u672c\uff1f<\/strong><br \/>\u8981\u5728Python 3.8.2\u4e2d\u8fd0\u884c\u811a\u672c\uff0c\u60a8\u9700\u8981\u6253\u5f00\u547d\u4ee4\u884c\u754c\u9762\uff08\u7ec8\u7aef\u6216\u547d\u4ee4\u63d0\u793a\u7b26\uff09\uff0c\u7136\u540e\u5bfc\u822a\u5230\u811a\u672c\u6240\u5728\u7684\u76ee\u5f55\u3002\u4f7f\u7528\u547d\u4ee4<code>python script_name.py<\/code>\uff08\u5c06<code>script_name.py<\/code>\u66ff\u6362\u4e3a\u60a8\u7684\u811a\u672c\u540d\u79f0\uff09\u6765\u6267\u884c\u811a\u672c\u3002\u5982\u679c\u7cfb\u7edf\u4e2d\u540c\u65f6\u5b89\u88c5\u4e86\u591a\u4e2aPython\u7248\u672c\uff0c\u53ef\u80fd\u9700\u8981\u4f7f\u7528<code>python3.8 script_name.py<\/code>\u6765\u786e\u4fdd\u4f7f\u7528\u6b63\u786e\u7684\u7248\u672c\u3002<\/p>\n<p><strong>\u5982\u4f55\u8c03\u8bd5Python 3.8.2\u4e2d\u7684\u4ee3\u7801\uff1f<\/strong><br \/>\u5728Python 3.8.2\u4e2d\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528\u5185\u7f6e\u7684<code>pdb<\/code>\u6a21\u5757\u8fdb\u884c\u8c03\u8bd5\u3002\u901a\u8fc7\u5728\u4ee3\u7801\u4e2d\u63d2\u5165<code>import pdb; pdb.set_trace()<\/code>\u53ef\u4ee5\u8bbe\u7f6e\u65ad\u70b9\u3002\u6b64\u5916\uff0c\u8bb8\u591aIDE\uff08\u5982PyCharm\u3001VS Code\u7b49\uff09\u4e5f\u63d0\u4f9b\u4e86\u56fe\u5f62\u5316\u7684\u8c03\u8bd5\u5de5\u5177\uff0c\u80fd\u591f\u9010\u884c\u6267\u884c\u4ee3\u7801\u3001\u68c0\u67e5\u53d8\u91cf\u72b6\u6001\u548c\u8c03\u7528\u5806\u6808\u7b49\u529f\u80fd\uff0c\u6781\u5927\u5730\u65b9\u4fbf\u4e86\u8c03\u8bd5\u8fc7\u7a0b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Python 3.8.2\u7684\u4f7f\u7528\u65b9\u6cd5\u5305\u62ec\u5b89\u88c5Python\u89e3\u91ca\u5668\u3001\u8bbe\u7f6e\u73af\u5883\u53d8\u91cf\u3001\u4f7f\u7528Python\u4ea4\u4e92\u5f0f\u547d\u4ee4\u884c\u3001\u7f16\u5199 [&hellip;]","protected":false},"author":3,"featured_media":1016255,"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\/1016249"}],"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=1016249"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1016249\/revisions"}],"predecessor-version":[{"id":1016258,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1016249\/revisions\/1016258"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1016255"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1016249"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1016249"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1016249"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}