{"id":1174486,"date":"2025-01-15T17:18:46","date_gmt":"2025-01-15T09:18:46","guid":{"rendered":""},"modified":"2025-01-15T17:18:54","modified_gmt":"2025-01-15T09:18:54","slug":"%e5%a6%82%e4%bd%95%e5%88%9b%e5%bb%bapython%e5%bf%ab%e6%8d%b7%e6%96%b9%e5%bc%8f","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1174486.html","title":{"rendered":"\u5982\u4f55\u521b\u5efapython\u5feb\u6377\u65b9\u5f0f"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/26075947\/ed49eba5-8882-4bf7-b6bb-67db9ee58417.webp\" alt=\"\u5982\u4f55\u521b\u5efapython\u5feb\u6377\u65b9\u5f0f\" \/><\/p>\n<p><p> <strong>\u521b\u5efaPython\u5feb\u6377\u65b9\u5f0f\u7684\u65b9\u6cd5\u6709\u591a\u79cd\uff0c\u5305\u62ec\u4f7f\u7528\u811a\u672c\u3001\u521b\u5efa\u684c\u9762\u5feb\u6377\u65b9\u5f0f\u3001\u4f7f\u7528\u547d\u4ee4\u884c\u5de5\u5177\u7b49\u3002\u901a\u8fc7\u4f7f\u7528\u5feb\u6377\u65b9\u5f0f\uff0c\u53ef\u4ee5\u5feb\u901f\u8fd0\u884cPython\u7a0b\u5e8f\u3001\u63d0\u9ad8\u5de5\u4f5c\u6548\u7387\u3001\u65b9\u4fbf\u7ba1\u7406\u4ee3\u7801\u3002<\/strong> <\/p>\n<\/p>\n<p><p><strong>\u65b9\u6cd5\u4e00\uff1a\u4f7f\u7528Windows\u684c\u9762\u5feb\u6377\u65b9\u5f0f<\/strong><br \/>\u5728Windows\u7cfb\u7edf\u4e0a\uff0c\u521b\u5efaPython\u5feb\u6377\u65b9\u5f0f\u53ef\u4ee5\u901a\u8fc7\u5728\u684c\u9762\u4e0a\u521b\u5efa\u4e00\u4e2a\u5feb\u6377\u65b9\u5f0f\u6587\u4ef6\u6765\u5b8c\u6210\u3002\u5177\u4f53\u6b65\u9aa4\u5982\u4e0b\uff1a<\/p>\n<\/p>\n<ol>\n<li>\u53f3\u952e\u70b9\u51fb\u684c\u9762\u7a7a\u767d\u5904\uff0c\u9009\u62e9\u201c\u65b0\u5efa\u201d&gt;\u201c\u5feb\u6377\u65b9\u5f0f\u201d\u3002<\/li>\n<li>\u5728\u5f39\u51fa\u7684\u7a97\u53e3\u4e2d\uff0c\u8f93\u5165Python\u53ef\u6267\u884c\u6587\u4ef6\u7684\u8def\u5f84\uff0c\u4f8b\u5982\uff1a<code>C:\\Python39\\python.exe<\/code>\u3002<\/li>\n<li>\u70b9\u51fb\u201c\u4e0b\u4e00\u6b65\u201d\uff0c\u4e3a\u5feb\u6377\u65b9\u5f0f\u547d\u540d\uff0c\u4f8b\u5982\uff1a<code>Python 3.9<\/code>\u3002<\/li>\n<li>\u70b9\u51fb\u201c\u5b8c\u6210\u201d\uff0c\u5feb\u6377\u65b9\u5f0f\u5c31\u4f1a\u51fa\u73b0\u5728\u684c\u9762\u4e0a\u3002<\/li>\n<\/ol>\n<p><p><strong>\u65b9\u6cd5\u4e8c\uff1a\u521b\u5efa\u8fd0\u884cPython\u811a\u672c\u7684\u5feb\u6377\u65b9\u5f0f<\/strong><br \/>\u5982\u679c\u60f3\u521b\u5efa\u4e00\u4e2a\u8fd0\u884c\u7279\u5b9aPython\u811a\u672c\u7684\u5feb\u6377\u65b9\u5f0f\uff0c\u53ef\u4ee5\u5728\u521b\u5efa\u5feb\u6377\u65b9\u5f0f\u65f6\uff0c\u5728\u8def\u5f84\u540e\u9762\u6dfb\u52a0\u811a\u672c\u6587\u4ef6\u7684\u8def\u5f84\u3002\u5177\u4f53\u6b65\u9aa4\u5982\u4e0b\uff1a<\/p>\n<\/p>\n<ol>\n<li>\u53f3\u952e\u70b9\u51fb\u684c\u9762\u7a7a\u767d\u5904\uff0c\u9009\u62e9\u201c\u65b0\u5efa\u201d&gt;\u201c\u5feb\u6377\u65b9\u5f0f\u201d\u3002<\/li>\n<li>\u5728\u5f39\u51fa\u7684\u7a97\u53e3\u4e2d\uff0c\u8f93\u5165Python\u53ef\u6267\u884c\u6587\u4ef6\u7684\u8def\u5f84\u548c\u811a\u672c\u6587\u4ef6\u7684\u8def\u5f84\uff0c\u4f8b\u5982\uff1a<code>C:\\Python39\\python.exe C:\\path\\to\\your_script.py<\/code>\u3002<\/li>\n<li>\u70b9\u51fb\u201c\u4e0b\u4e00\u6b65\u201d\uff0c\u4e3a\u5feb\u6377\u65b9\u5f0f\u547d\u540d\uff0c\u4f8b\u5982\uff1a<code>Run My Script<\/code>\u3002<\/li>\n<li>\u70b9\u51fb\u201c\u5b8c\u6210\u201d\uff0c\u5feb\u6377\u65b9\u5f0f\u5c31\u4f1a\u51fa\u73b0\u5728\u684c\u9762\u4e0a\u3002<\/li>\n<\/ol>\n<p><p><strong>\u65b9\u6cd5\u4e09\uff1a\u4f7f\u7528\u547d\u4ee4\u884c\u5de5\u5177<\/strong><br \/>\u5728\u547d\u4ee4\u884c\u5de5\u5177\u4e2d\u521b\u5efa\u5feb\u6377\u65b9\u5f0f\u4e5f\u662f\u4e00\u79cd\u6709\u6548\u7684\u65b9\u6cd5\u3002\u53ef\u4ee5\u901a\u8fc7\u7f16\u5199\u6279\u5904\u7406\u6587\u4ef6\uff08.bat\uff09\u6765\u5b9e\u73b0\u3002\u5177\u4f53\u6b65\u9aa4\u5982\u4e0b\uff1a<\/p>\n<\/p>\n<ol>\n<li>\u6253\u5f00\u8bb0\u4e8b\u672c\uff0c\u8f93\u5165\u4ee5\u4e0b\u5185\u5bb9\uff1a\n<pre><code class=\"language-bat\">@echo off<\/p>\n<p>&quot;C:\\Python39\\python.exe&quot; &quot;C:\\path\\to\\your_script.py&quot;<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\u5c06\u6587\u4ef6\u4fdd\u5b58\u4e3a<code>.bat<\/code>\u6587\u4ef6\uff0c\u4f8b\u5982\uff1a<code>run_script.bat<\/code>\u3002<\/li>\n<li>\u5c06\u6b64<code>.bat<\/code>\u6587\u4ef6\u653e\u7f6e\u5728\u65b9\u4fbf\u7684\u4f4d\u7f6e\uff0c\u4f8b\u5982\u684c\u9762\u4e0a\uff0c\u53cc\u51fb\u5373\u53ef\u8fd0\u884cPython\u811a\u672c\u3002<\/li>\n<\/ol>\n<p><p>\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u521b\u5efa\u548c\u7ba1\u7406Python\u5feb\u6377\u65b9\u5f0f\u7684\u66f4\u591a\u7ec6\u8282\u3002<\/p>\n<\/p>\n<p><h2>\u4e00\u3001\u4f7f\u7528Windows\u684c\u9762\u5feb\u6377\u65b9\u5f0f<\/h2>\n<\/p>\n<p><p>\u5728Windows\u64cd\u4f5c\u7cfb\u7edf\u4e2d\uff0c\u521b\u5efa\u684c\u9762\u5feb\u6377\u65b9\u5f0f\u662f\u6700\u5e38\u89c1\u548c\u4fbf\u6377\u7684\u65b9\u6cd5\u4e4b\u4e00\u3002\u901a\u8fc7\u521b\u5efa\u684c\u9762\u5feb\u6377\u65b9\u5f0f\uff0c\u53ef\u4ee5\u5feb\u901f\u542f\u52a8Python\u89e3\u91ca\u5668\u6216\u7279\u5b9a\u7684Python\u811a\u672c\u3002<\/p>\n<\/p>\n<p><h3>1\u3001\u521b\u5efaPython\u89e3\u91ca\u5668\u5feb\u6377\u65b9\u5f0f<\/h3>\n<\/p>\n<p><p>\u521b\u5efa\u4e00\u4e2a\u6307\u5411Python\u89e3\u91ca\u5668\u7684\u5feb\u6377\u65b9\u5f0f\uff0c\u53ef\u4ee5\u5e2e\u52a9\u6211\u4eec\u5feb\u901f\u6253\u5f00Python\u547d\u4ee4\u884c\u754c\u9762\uff1a<\/p>\n<\/p>\n<ol>\n<li><strong>\u627e\u5230Python\u53ef\u6267\u884c\u6587\u4ef6\u7684\u8def\u5f84<\/strong>\uff1a\u901a\u5e38\u5728\u5b89\u88c5Python\u65f6\uff0c\u4f1a\u9009\u62e9\u4e00\u4e2a\u5b89\u88c5\u8def\u5f84\uff0c\u4f8b\u5982<code>C:\\Python39\\python.exe<\/code>\u3002<\/li>\n<li><strong>\u521b\u5efa\u5feb\u6377\u65b9\u5f0f<\/strong>\uff1a\u53f3\u952e\u70b9\u51fb\u684c\u9762\u7a7a\u767d\u5904\uff0c\u9009\u62e9\u201c\u65b0\u5efa\u201d&gt;\u201c\u5feb\u6377\u65b9\u5f0f\u201d\u3002<\/li>\n<li><strong>\u8f93\u5165\u8def\u5f84<\/strong>\uff1a\u5728\u5f39\u51fa\u7684\u7a97\u53e3\u4e2d\uff0c\u8f93\u5165Python\u53ef\u6267\u884c\u6587\u4ef6\u7684\u5b8c\u6574\u8def\u5f84\u3002<\/li>\n<li><strong>\u547d\u540d\u5feb\u6377\u65b9\u5f0f<\/strong>\uff1a\u70b9\u51fb\u201c\u4e0b\u4e00\u6b65\u201d\uff0c\u4e3a\u5feb\u6377\u65b9\u5f0f\u547d\u540d\uff0c\u4f8b\u5982<code>Python 3.9<\/code>\u3002<\/li>\n<li><strong>\u5b8c\u6210\u521b\u5efa<\/strong>\uff1a\u70b9\u51fb\u201c\u5b8c\u6210\u201d\uff0c\u5feb\u6377\u65b9\u5f0f\u5c31\u4f1a\u51fa\u73b0\u5728\u684c\u9762\u4e0a\u3002<\/li>\n<\/ol>\n<p><h3>2\u3001\u521b\u5efa\u8fd0\u884c\u7279\u5b9aPython\u811a\u672c\u7684\u5feb\u6377\u65b9\u5f0f<\/h3>\n<\/p>\n<p><p>\u5982\u679c\u60f3\u521b\u5efa\u4e00\u4e2a\u76f4\u63a5\u8fd0\u884c\u7279\u5b9aPython\u811a\u672c\u7684\u5feb\u6377\u65b9\u5f0f\uff0c\u53ef\u4ee5\u5728\u521b\u5efa\u5feb\u6377\u65b9\u5f0f\u65f6\uff0c\u6307\u5b9aPython\u53ef\u6267\u884c\u6587\u4ef6\u548c\u811a\u672c\u6587\u4ef6\u7684\u8def\u5f84\uff1a<\/p>\n<\/p>\n<ol>\n<li><strong>\u627e\u5230Python\u548c\u811a\u672c\u7684\u8def\u5f84<\/strong>\uff1a\u4f8b\u5982\uff0cPython\u53ef\u6267\u884c\u6587\u4ef6\u8def\u5f84\u4e3a<code>C:\\Python39\\python.exe<\/code>\uff0c\u811a\u672c\u6587\u4ef6\u8def\u5f84\u4e3a<code>C:\\path\\to\\your_script.py<\/code>\u3002<\/li>\n<li><strong>\u521b\u5efa\u5feb\u6377\u65b9\u5f0f<\/strong>\uff1a\u53f3\u952e\u70b9\u51fb\u684c\u9762\u7a7a\u767d\u5904\uff0c\u9009\u62e9\u201c\u65b0\u5efa\u201d&gt;\u201c\u5feb\u6377\u65b9\u5f0f\u201d\u3002<\/li>\n<li><strong>\u8f93\u5165\u8def\u5f84<\/strong>\uff1a\u5728\u5f39\u51fa\u7684\u7a97\u53e3\u4e2d\uff0c\u8f93\u5165\u5b8c\u6574\u7684\u547d\u4ee4\uff0c\u4f8b\u5982\uff1a<code>C:\\Python39\\python.exe C:\\path\\to\\your_script.py<\/code>\u3002<\/li>\n<li><strong>\u547d\u540d\u5feb\u6377\u65b9\u5f0f<\/strong>\uff1a\u70b9\u51fb\u201c\u4e0b\u4e00\u6b65\u201d\uff0c\u4e3a\u5feb\u6377\u65b9\u5f0f\u547d\u540d\uff0c\u4f8b\u5982<code>Run My Script<\/code>\u3002<\/li>\n<li><strong>\u5b8c\u6210\u521b\u5efa<\/strong>\uff1a\u70b9\u51fb\u201c\u5b8c\u6210\u201d\uff0c\u5feb\u6377\u65b9\u5f0f\u5c31\u4f1a\u51fa\u73b0\u5728\u684c\u9762\u4e0a\u3002<\/li>\n<\/ol>\n<p><h2>\u4e8c\u3001\u4f7f\u7528\u6279\u5904\u7406\u6587\u4ef6\u521b\u5efa\u5feb\u6377\u65b9\u5f0f<\/h2>\n<\/p>\n<p><p>\u6279\u5904\u7406\u6587\u4ef6\uff08.bat\uff09\u662fWindows\u7cfb\u7edf\u4e2d\u5e38\u7528\u7684\u811a\u672c\u6587\u4ef6\uff0c\u53ef\u4ee5\u7528\u6765\u6267\u884c\u547d\u4ee4\u3002\u901a\u8fc7\u521b\u5efa\u6279\u5904\u7406\u6587\u4ef6\uff0c\u53ef\u4ee5\u5b9e\u73b0\u8fd0\u884cPython\u811a\u672c\u7684\u5feb\u6377\u65b9\u5f0f\u3002<\/p>\n<\/p>\n<p><h3>1\u3001\u521b\u5efa\u6279\u5904\u7406\u6587\u4ef6<\/h3>\n<\/p>\n<p><p>\u6279\u5904\u7406\u6587\u4ef6\u7684\u521b\u5efa\u6b65\u9aa4\u5982\u4e0b\uff1a<\/p>\n<\/p>\n<ol>\n<li><strong>\u6253\u5f00\u8bb0\u4e8b\u672c<\/strong>\uff1a\u5728\u5f00\u59cb\u83dc\u5355\u4e2d\u641c\u7d22\u201c\u8bb0\u4e8b\u672c\u201d\u5e76\u6253\u5f00\u3002<\/li>\n<li><strong>\u7f16\u5199\u547d\u4ee4<\/strong>\uff1a\u5728\u8bb0\u4e8b\u672c\u4e2d\u8f93\u5165\u4ee5\u4e0b\u5185\u5bb9\uff1a\n<pre><code class=\"language-bat\">@echo off<\/p>\n<p>&quot;C:\\Python39\\python.exe&quot; &quot;C:\\path\\to\\your_script.py&quot;<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p>\u5176\u4e2d\uff0c<code>C:\\Python39\\python.exe<\/code>\u662fPython\u89e3\u91ca\u5668\u7684\u8def\u5f84\uff0c<code>C:\\path\\to\\your_script.py<\/code>\u662fPython\u811a\u672c\u7684\u8def\u5f84\u3002<\/li>\n<\/p>\n<li><strong>\u4fdd\u5b58\u6587\u4ef6<\/strong>\uff1a\u70b9\u51fb\u201c\u6587\u4ef6\u201d&gt;\u201c\u53e6\u5b58\u4e3a\u201d\uff0c\u5728\u4fdd\u5b58\u7c7b\u578b\u4e2d\u9009\u62e9\u201c\u6240\u6709\u6587\u4ef6(<em>.<\/em>)\u201d\uff0c\u5e76\u5c06\u6587\u4ef6\u547d\u540d\u4e3a<code>run_script.bat<\/code>\u3002<\/li>\n<\/ol>\n<p><h3>2\u3001\u4f7f\u7528\u6279\u5904\u7406\u6587\u4ef6<\/h3>\n<\/p>\n<p><p>\u5c06\u521b\u5efa\u7684\u6279\u5904\u7406\u6587\u4ef6\u653e\u7f6e\u5728\u65b9\u4fbf\u7684\u4f4d\u7f6e\uff0c\u4f8b\u5982\u684c\u9762\u4e0a\uff0c\u53cc\u51fb\u6b64\u6587\u4ef6\u5373\u53ef\u8fd0\u884c\u6307\u5b9a\u7684Python\u811a\u672c\u3002<\/p>\n<\/p>\n<p><h2>\u4e09\u3001\u4f7f\u7528\u547d\u4ee4\u884c\u5de5\u5177\u521b\u5efa\u5feb\u6377\u65b9\u5f0f<\/h2>\n<\/p>\n<p><p>\u5728Linux\u6216macOS\u7cfb\u7edf\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u547d\u4ee4\u884c\u5de5\u5177\u521b\u5efa\u5feb\u6377\u65b9\u5f0f\u3002\u4ee5\u4e0b\u662f\u51e0\u79cd\u5e38\u89c1\u7684\u65b9\u6cd5\uff1a<\/p>\n<\/p>\n<p><h3>1\u3001\u521b\u5efa\u7b26\u53f7\u94fe\u63a5<\/h3>\n<\/p>\n<p><p>\u7b26\u53f7\u94fe\u63a5\uff08Symbolic Link\uff09\u662f\u6307\u5411\u53e6\u4e00\u4e2a\u6587\u4ef6\u6216\u76ee\u5f55\u7684\u6307\u9488\u3002\u5728\u547d\u4ee4\u884c\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528<code>ln<\/code>\u547d\u4ee4\u521b\u5efa\u7b26\u53f7\u94fe\u63a5\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-sh\">ln -s \/usr\/bin\/python3 \/usr\/local\/bin\/my_python<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u6837\u5c31\u521b\u5efa\u4e86\u4e00\u4e2a\u540d\u4e3a<code>my_python<\/code>\u7684\u7b26\u53f7\u94fe\u63a5\uff0c\u6307\u5411Python\u89e3\u91ca\u5668\u3002\u53ef\u4ee5\u901a\u8fc7\u8f93\u5165<code>my_python<\/code>\u6765\u8fd0\u884cPython\u3002<\/p>\n<\/p>\n<p><h3>2\u3001\u4f7f\u7528Shell\u811a\u672c<\/h3>\n<\/p>\n<p><p>Shell\u811a\u672c\uff08.sh\uff09\u7c7b\u4f3c\u4e8e\u6279\u5904\u7406\u6587\u4ef6\uff0c\u53ef\u4ee5\u7528\u6765\u6267\u884c\u547d\u4ee4\u3002\u901a\u8fc7\u521b\u5efaShell\u811a\u672c\uff0c\u53ef\u4ee5\u5b9e\u73b0\u8fd0\u884cPython\u811a\u672c\u7684\u5feb\u6377\u65b9\u5f0f\u3002<\/p>\n<\/p>\n<ol>\n<li><strong>\u521b\u5efaShell\u811a\u672c\u6587\u4ef6<\/strong>\uff1a\u5728\u547d\u4ee4\u884c\u4e2d\u8f93\u5165<code>nano run_script.sh<\/code>\uff0c\u6253\u5f00nano\u7f16\u8f91\u5668\u3002<\/li>\n<li><strong>\u7f16\u5199\u547d\u4ee4<\/strong>\uff1a\u5728\u7f16\u8f91\u5668\u4e2d\u8f93\u5165\u4ee5\u4e0b\u5185\u5bb9\uff1a\n<pre><code class=\"language-sh\">#!\/bin\/bash<\/p>\n<p>\/usr\/bin\/python3 \/path\/to\/your_script.py<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p>\u5176\u4e2d\uff0c<code>\/usr\/bin\/python3<\/code>\u662fPython\u89e3\u91ca\u5668\u7684\u8def\u5f84\uff0c<code>\/path\/to\/your_script.py<\/code>\u662fPython\u811a\u672c\u7684\u8def\u5f84\u3002<\/li>\n<\/p>\n<li><strong>\u4fdd\u5b58\u6587\u4ef6\u5e76\u9000\u51fa<\/strong>\uff1a\u6309<code>Ctrl + X<\/code>\u9000\u51fa\u7f16\u8f91\u5668\uff0c\u6309<code>Y<\/code>\u786e\u8ba4\u4fdd\u5b58\uff0c\u6309<code>Enter<\/code>\u786e\u8ba4\u6587\u4ef6\u540d\u3002<\/li>\n<li><strong>\u8d4b\u4e88\u6267\u884c\u6743\u9650<\/strong>\uff1a\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u8d4b\u4e88\u6587\u4ef6\u6267\u884c\u6743\u9650\uff1a\n<pre><code class=\"language-sh\">chmod +x run_script.sh<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<\/ol>\n<p><h3>3\u3001\u4f7f\u7528\u522b\u540d<\/h3>\n<\/p>\n<p><p>\u5728Shell\u914d\u7f6e\u6587\u4ef6\uff08\u5982<code>.bashrc<\/code>\u6216<code>.zshrc<\/code>\uff09\u4e2d\u6dfb\u52a0\u522b\u540d\uff0c\u53ef\u4ee5\u521b\u5efa\u5feb\u6377\u65b9\u5f0f\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-sh\">alias runscript=&#39;\/usr\/bin\/python3 \/path\/to\/your_script.py&#39;<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u6dfb\u52a0\u4e0a\u8ff0\u884c\u5230Shell\u914d\u7f6e\u6587\u4ef6\u540e\uff0c\u4fdd\u5b58\u5e76\u91cd\u65b0\u52a0\u8f7d\u914d\u7f6e\u6587\u4ef6\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-sh\">source ~\/.bashrc<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u7136\u540e\u53ef\u4ee5\u901a\u8fc7\u8f93\u5165<code>runscript<\/code>\u6765\u8fd0\u884cPython\u811a\u672c\u3002<\/p>\n<\/p>\n<p><h2>\u56db\u3001\u4f7f\u7528IDE\u6216\u7f16\u8f91\u5668\u521b\u5efa\u5feb\u6377\u65b9\u5f0f<\/h2>\n<\/p>\n<p><p>\u96c6\u6210\u5f00\u53d1\u73af\u5883\uff08IDE\uff09\u6216\u7f16\u8f91\u5668\u901a\u5e38\u63d0\u4f9b\u4e86\u521b\u5efa\u5feb\u6377\u65b9\u5f0f\u7684\u529f\u80fd\uff0c\u53ef\u4ee5\u7528\u4e8e\u5feb\u901f\u8fd0\u884cPython\u811a\u672c\u3002<\/p>\n<\/p>\n<p><h3>1\u3001\u4f7f\u7528PyCharm<\/h3>\n<\/p>\n<p><p>PyCharm\u662f\u5e38\u7528\u7684Python IDE\uff0c\u63d0\u4f9b\u4e86\u521b\u5efa\u5feb\u6377\u65b9\u5f0f\u7684\u529f\u80fd\uff1a<\/p>\n<\/p>\n<ol>\n<li><strong>\u521b\u5efa\u9879\u76ee<\/strong>\uff1a\u5728PyCharm\u4e2d\u521b\u5efa\u4e00\u4e2a\u65b0\u7684Python\u9879\u76ee\u3002<\/li>\n<li><strong>\u6dfb\u52a0\u914d\u7f6e<\/strong>\uff1a\u70b9\u51fb\u9876\u90e8\u83dc\u5355\u7684\u201cRun\u201d&gt;\u201cEdit Configurations\u201d\uff0c\u6dfb\u52a0\u4e00\u4e2a\u65b0\u7684Python\u914d\u7f6e\u3002<\/li>\n<li><strong>\u914d\u7f6e\u811a\u672c\u8def\u5f84<\/strong>\uff1a\u5728\u201cScript path\u201d\u4e2d\u8f93\u5165Python\u811a\u672c\u7684\u8def\u5f84\u3002<\/li>\n<li><strong>\u8bbe\u7f6e\u5feb\u6377\u952e<\/strong>\uff1a\u5728\u201cKeymap\u201d\u4e2d\u8bbe\u7f6e\u5feb\u6377\u952e\uff0c\u4f8b\u5982<code>Ctrl + Shift + R<\/code>\u3002<\/li>\n<li><strong>\u8fd0\u884c\u811a\u672c<\/strong>\uff1a\u6309\u4e0b\u5feb\u6377\u952e\u5373\u53ef\u8fd0\u884cPython\u811a\u672c\u3002<\/li>\n<\/ol>\n<p><h3>2\u3001\u4f7f\u7528VS Code<\/h3>\n<\/p>\n<p><p>Visual Studio Code\uff08VS Code\uff09\u662f\u4e00\u6b3e\u6d41\u884c\u7684\u4ee3\u7801\u7f16\u8f91\u5668\uff0c\u4e5f\u63d0\u4f9b\u4e86\u521b\u5efa\u5feb\u6377\u65b9\u5f0f\u7684\u529f\u80fd\uff1a<\/p>\n<\/p>\n<ol>\n<li><strong>\u5b89\u88c5Python\u6269\u5c55<\/strong>\uff1a\u5728VS Code\u4e2d\u5b89\u88c5Python\u6269\u5c55\u3002<\/li>\n<li><strong>\u521b\u5efa\u914d\u7f6e\u6587\u4ef6<\/strong>\uff1a\u5728\u9879\u76ee\u6839\u76ee\u5f55\u4e0b\u521b\u5efa\u4e00\u4e2a<code>.vscode<\/code>\u6587\u4ef6\u5939\uff0c\u5e76\u5728\u5176\u4e2d\u521b\u5efa\u4e00\u4e2a\u540d\u4e3a<code>launch.json<\/code>\u7684\u6587\u4ef6\u3002<\/li>\n<li><strong>\u7f16\u8f91\u914d\u7f6e\u6587\u4ef6<\/strong>\uff1a\u5728<code>launch.json<\/code>\u4e2d\u6dfb\u52a0\u4ee5\u4e0b\u5185\u5bb9\uff1a\n<pre><code class=\"language-json\">{<\/p>\n<p>    &quot;version&quot;: &quot;0.2.0&quot;,<\/p>\n<p>    &quot;configurations&quot;: [<\/p>\n<p>        {<\/p>\n<p>            &quot;name&quot;: &quot;Python: Run Script&quot;,<\/p>\n<p>            &quot;type&quot;: &quot;python&quot;,<\/p>\n<p>            &quot;request&quot;: &quot;launch&quot;,<\/p>\n<p>            &quot;program&quot;: &quot;${file}&quot;<\/p>\n<p>        }<\/p>\n<p>    ]<\/p>\n<p>}<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li><strong>\u8bbe\u7f6e\u5feb\u6377\u952e<\/strong>\uff1a\u5728\u201cFile\u201d&gt;\u201cPreferences\u201d&gt;\u201cKeyboard Shortcuts\u201d\u4e2d\u8bbe\u7f6e\u5feb\u6377\u952e\uff0c\u4f8b\u5982<code>Ctrl + Shift + P<\/code>\u3002<\/li>\n<li><strong>\u8fd0\u884c\u811a\u672c<\/strong>\uff1a\u6309\u4e0b\u5feb\u6377\u952e\u5373\u53ef\u8fd0\u884cPython\u811a\u672c\u3002<\/li>\n<\/ol>\n<p><h2>\u4e94\u3001\u4f7f\u7528\u7b2c\u4e09\u65b9\u5de5\u5177\u521b\u5efa\u5feb\u6377\u65b9\u5f0f<\/h2>\n<\/p>\n<p><p>\u9664\u4e86\u7cfb\u7edf\u81ea\u5e26\u7684\u65b9\u6cd5\uff0c\u8fd8\u53ef\u4ee5\u4f7f\u7528\u4e00\u4e9b\u7b2c\u4e09\u65b9\u5de5\u5177\u6765\u521b\u5efaPython\u5feb\u6377\u65b9\u5f0f\u3002<\/p>\n<\/p>\n<p><h3>1\u3001\u4f7f\u7528AutoHotkey<\/h3>\n<\/p>\n<p><p>AutoHotkey\u662f\u4e00\u4e2a\u5f00\u6e90\u7684\u811a\u672c\u8bed\u8a00\uff0c\u53ef\u4ee5\u7528\u6765\u521b\u5efa\u5feb\u6377\u65b9\u5f0f\uff1a<\/p>\n<\/p>\n<ol>\n<li><strong>\u5b89\u88c5AutoHotkey<\/strong>\uff1a\u4ece\u5b98\u65b9\u7f51\u7ad9\u4e0b\u8f7d\u5e76\u5b89\u88c5AutoHotkey\u3002<\/li>\n<li><strong>\u521b\u5efa\u811a\u672c\u6587\u4ef6<\/strong>\uff1a\u5728\u684c\u9762\u4e0a\u53f3\u952e\u70b9\u51fb\uff0c\u9009\u62e9\u201c\u65b0\u5efa\u201d&gt;\u201cAutoHotkey Script\u201d\u3002<\/li>\n<li><strong>\u7f16\u8f91\u811a\u672c\u6587\u4ef6<\/strong>\uff1a\u53f3\u952e\u70b9\u51fb\u811a\u672c\u6587\u4ef6\uff0c\u9009\u62e9\u201c\u7f16\u8f91\u811a\u672c\u201d\uff0c\u8f93\u5165\u4ee5\u4e0b\u5185\u5bb9\uff1a\n<pre><code class=\"language-ahk\">^!p::Run, C:\\Python39\\python.exe C:\\path\\to\\your_script.py<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p>\u5176\u4e2d\uff0c<code>^!p<\/code>\u8868\u793a\u5feb\u6377\u952e<code>Ctrl + Alt + P<\/code>\uff0c<code>C:\\Python39\\python.exe C:\\path\\to\\your_script.py<\/code>\u662fPython\u89e3\u91ca\u5668\u548c\u811a\u672c\u7684\u8def\u5f84\u3002<\/li>\n<\/p>\n<li><strong>\u4fdd\u5b58\u5e76\u8fd0\u884c\u811a\u672c<\/strong>\uff1a\u4fdd\u5b58\u811a\u672c\u6587\u4ef6\u5e76\u53cc\u51fb\u8fd0\u884c\uff0c\u6309\u4e0b<code>Ctrl + Alt + P<\/code>\u5373\u53ef\u8fd0\u884cPython\u811a\u672c\u3002<\/li>\n<\/ol>\n<p><h3>2\u3001\u4f7f\u7528Keypirinha<\/h3>\n<\/p>\n<p><p>Keypirinha\u662f\u4e00\u4e2a\u5feb\u901f\u542f\u52a8\u5668\uff0c\u53ef\u4ee5\u7528\u6765\u521b\u5efa\u5feb\u6377\u65b9\u5f0f\uff1a<\/p>\n<\/p>\n<ol>\n<li><strong>\u5b89\u88c5Keypirinha<\/strong>\uff1a\u4ece\u5b98\u65b9\u7f51\u7ad9\u4e0b\u8f7d\u5e76\u5b89\u88c5Keypirinha\u3002<\/li>\n<li><strong>\u521b\u5efa\u5feb\u6377\u65b9\u5f0f<\/strong>\uff1a\u5728Keypirinha\u4e2d\u6dfb\u52a0\u4e00\u4e2a\u65b0\u7684\u5feb\u6377\u65b9\u5f0f\uff0c\u8f93\u5165Python\u89e3\u91ca\u5668\u548c\u811a\u672c\u7684\u8def\u5f84\uff0c\u4f8b\u5982\uff1a\n<pre><code class=\"language-yaml\">items:<\/p>\n<p>  - name: Run My Script<\/p>\n<p>    cmd: C:\\Python39\\python.exe C:\\path\\to\\your_script.py<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li><strong>\u8fd0\u884c\u811a\u672c<\/strong>\uff1a\u6309\u4e0b\u5feb\u6377\u952e<code>Ctrl + Space<\/code>\uff0c\u8f93\u5165\u5feb\u6377\u65b9\u5f0f\u540d\u79f0\u5e76\u56de\u8f66\uff0c\u5373\u53ef\u8fd0\u884cPython\u811a\u672c\u3002<\/li>\n<\/ol>\n<p><h2>\u516d\u3001\u4f7f\u7528\u4efb\u52a1\u8c03\u5ea6\u5668\u521b\u5efa\u5feb\u6377\u65b9\u5f0f<\/h2>\n<\/p>\n<p><p>\u5728Windows\u7cfb\u7edf\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u4efb\u52a1\u8c03\u5ea6\u5668\u6765\u521b\u5efaPython\u5feb\u6377\u65b9\u5f0f\u3002\u4efb\u52a1\u8c03\u5ea6\u5668\u5141\u8bb8\u6211\u4eec\u5b9a\u671f\u8fd0\u884c\u4efb\u52a1\u6216\u5728\u7279\u5b9a\u4e8b\u4ef6\u53d1\u751f\u65f6\u8fd0\u884c\u4efb\u52a1\u3002<\/p>\n<\/p>\n<p><h3>1\u3001\u521b\u5efa\u57fa\u672c\u4efb\u52a1<\/h3>\n<\/p>\n<ol>\n<li><strong>\u6253\u5f00\u4efb\u52a1\u8c03\u5ea6\u5668<\/strong>\uff1a\u5728\u5f00\u59cb\u83dc\u5355\u4e2d\u641c\u7d22\u201c\u4efb\u52a1\u8c03\u5ea6\u5668\u201d\u5e76\u6253\u5f00\u3002<\/li>\n<li><strong>\u521b\u5efa\u4efb\u52a1<\/strong>\uff1a\u5728\u53f3\u4fa7\u64cd\u4f5c\u9762\u677f\u4e2d\u9009\u62e9\u201c\u521b\u5efa\u57fa\u672c\u4efb\u52a1\u201d\u3002<\/li>\n<li><strong>\u547d\u540d\u4efb\u52a1<\/strong>\uff1a\u5728\u201c\u540d\u79f0\u201d\u5b57\u6bb5\u4e2d\u8f93\u5165\u4efb\u52a1\u540d\u79f0\uff0c\u4f8b\u5982<code>Run My Script<\/code>\u3002<\/li>\n<li><strong>\u8bbe\u7f6e\u89e6\u53d1\u5668<\/strong>\uff1a\u9009\u62e9\u4efb\u52a1\u7684\u89e6\u53d1\u6761\u4ef6\uff0c\u4f8b\u5982\u201c\u6bcf\u5929\u201d\u6216\u201c\u6bcf\u5468\u201d\u3002<\/li>\n<li><strong>\u64cd\u4f5c<\/strong>\uff1a\u9009\u62e9\u201c\u542f\u52a8\u7a0b\u5e8f\u201d\uff0c\u5e76\u5728\u201c\u7a0b\u5e8f\/\u811a\u672c\u201d\u5b57\u6bb5\u4e2d\u8f93\u5165Python\u89e3\u91ca\u5668\u7684\u8def\u5f84\uff0c\u4f8b\u5982<code>C:\\Python39\\python.exe<\/code>\u3002<\/li>\n<li><strong>\u6dfb\u52a0\u53c2\u6570<\/strong>\uff1a\u5728\u201c\u6dfb\u52a0\u53c2\u6570\u201d\u5b57\u6bb5\u4e2d\u8f93\u5165Python\u811a\u672c\u7684\u8def\u5f84\uff0c\u4f8b\u5982<code>C:\\path\\to\\your_script.py<\/code>\u3002<\/li>\n<li><strong>\u5b8c\u6210\u521b\u5efa<\/strong>\uff1a\u70b9\u51fb\u201c\u5b8c\u6210\u201d\uff0c\u4efb\u52a1\u5c06\u88ab\u521b\u5efa\u5e76\u663e\u793a\u5728\u4efb\u52a1\u5217\u8868\u4e2d\u3002<\/li>\n<\/ol>\n<p><h3>2\u3001\u7ba1\u7406\u4efb\u52a1<\/h3>\n<\/p>\n<p><p>\u4efb\u52a1\u521b\u5efa\u5b8c\u6210\u540e\uff0c\u53ef\u4ee5\u5728\u4efb\u52a1\u8c03\u5ea6\u5668\u4e2d\u5bf9\u4efb\u52a1\u8fdb\u884c\u7ba1\u7406\uff1a<\/p>\n<\/p>\n<ol>\n<li><strong>\u67e5\u770b\u4efb\u52a1<\/strong>\uff1a\u5728\u4efb\u52a1\u5217\u8868\u4e2d\u53ef\u4ee5\u67e5\u770b\u6240\u6709\u5df2\u521b\u5efa\u7684\u4efb\u52a1\u3002<\/li>\n<li><strong>\u8fd0\u884c\u4efb\u52a1<\/strong>\uff1a\u53f3\u952e\u70b9\u51fb\u4efb\u52a1\uff0c\u9009\u62e9\u201c\u8fd0\u884c\u201d\u5373\u53ef\u624b\u52a8\u8fd0\u884c\u4efb\u52a1\u3002<\/li>\n<li><strong>\u7f16\u8f91\u4efb\u52a1<\/strong>\uff1a\u53f3\u952e\u70b9\u51fb\u4efb\u52a1\uff0c\u9009\u62e9\u201c\u5c5e\u6027\u201d\u53ef\u4ee5\u7f16\u8f91\u4efb\u52a1\u7684\u8be6\u7ec6\u4fe1\u606f\u3002<\/li>\n<li><strong>\u5220\u9664\u4efb\u52a1<\/strong>\uff1a\u53f3\u952e\u70b9\u51fb\u4efb\u52a1\uff0c\u9009\u62e9\u201c\u5220\u9664\u201d\u53ef\u4ee5\u5220\u9664\u4efb\u52a1\u3002<\/li>\n<\/ol>\n<p><h2>\u4e03\u3001\u4f7f\u7528\u5feb\u6377\u65b9\u5f0f\u7684\u6700\u4f73\u5b9e\u8df5<\/h2>\n<\/p>\n<p><p>\u521b\u5efaPython\u5feb\u6377\u65b9\u5f0f\u53ef\u4ee5\u5927\u5927\u63d0\u9ad8\u5de5\u4f5c\u6548\u7387\uff0c\u4f46\u5728\u4f7f\u7528\u8fc7\u7a0b\u4e2d\u9700\u8981\u6ce8\u610f\u4e00\u4e9b\u6700\u4f73\u5b9e\u8df5\u3002<\/p>\n<\/p>\n<p><h3>1\u3001\u4fdd\u6301\u8def\u5f84\u7684\u4e00\u81f4\u6027<\/h3>\n<\/p>\n<p><p>\u5728\u521b\u5efa\u5feb\u6377\u65b9\u5f0f\u65f6\uff0c\u786e\u4fddPython\u89e3\u91ca\u5668\u548c\u811a\u672c\u7684\u8def\u5f84\u662f\u6b63\u786e\u7684\u3002\u5982\u679c\u8def\u5f84\u53d1\u751f\u53d8\u5316\uff0c\u9700\u8981\u53ca\u65f6\u66f4\u65b0\u5feb\u6377\u65b9\u5f0f\u3002<\/p>\n<\/p>\n<p><h3>2\u3001\u4f7f\u7528\u76f8\u5bf9\u8def\u5f84<\/h3>\n<\/p>\n<p><p>\u5728\u53ef\u80fd\u7684\u60c5\u51b5\u4e0b\uff0c\u4f7f\u7528\u76f8\u5bf9\u8def\u5f84\u800c\u4e0d\u662f\u7edd\u5bf9\u8def\u5f84\uff0c\u53ef\u4ee5\u63d0\u9ad8\u5feb\u6377\u65b9\u5f0f\u7684\u4fbf\u643a\u6027\u3002\u4f8b\u5982\uff0c\u5728\u6279\u5904\u7406\u6587\u4ef6\u6216Shell\u811a\u672c\u4e2d\u4f7f\u7528\u76f8\u5bf9\u8def\u5f84\u3002<\/p>\n<\/p>\n<p><h3>3\u3001\u5b9a\u671f\u68c0\u67e5\u548c\u66f4\u65b0<\/h3>\n<\/p>\n<p><p>\u5b9a\u671f\u68c0\u67e5\u548c\u66f4\u65b0\u5feb\u6377\u65b9\u5f0f\uff0c\u786e\u4fdd\u5b83\u4eec\u80fd\u591f\u6b63\u5e38\u5de5\u4f5c\u3002\u4f8b\u5982\uff0c\u5f53Python\u7248\u672c\u66f4\u65b0\u6216\u811a\u672c\u8def\u5f84\u53d1\u751f\u53d8\u5316\u65f6\uff0c\u53ca\u65f6\u66f4\u65b0\u5feb\u6377\u65b9\u5f0f\u3002<\/p>\n<\/p>\n<p><h3>4\u3001\u4f7f\u7528\u7248\u672c\u63a7\u5236<\/h3>\n<\/p>\n<p><p>\u5c06Python\u811a\u672c\u548c\u5feb\u6377\u65b9\u5f0f\u76f8\u5173\u7684\u914d\u7f6e\u6587\u4ef6\uff08\u5982\u6279\u5904\u7406\u6587\u4ef6\u3001Shell\u811a\u672c\uff09\u7eb3\u5165\u7248\u672c\u63a7\u5236\u7cfb\u7edf\uff08\u5982Git\uff09\uff0c\u53ef\u4ee5\u65b9\u4fbf\u5730\u7ba1\u7406\u548c\u8ddf\u8e2a\u66f4\u6539\u3002<\/p>\n<\/p>\n<p><h3>5\u3001\u5907\u4efd\u5feb\u6377\u65b9\u5f0f<\/h3>\n<\/p>\n<p><p>\u5b9a\u671f\u5907\u4efd\u5feb\u6377\u65b9\u5f0f\uff0c\u9632\u6b62\u610f\u5916\u4e22\u5931\u3002\u5728\u66f4\u6362\u8ba1\u7b97\u673a\u6216\u91cd\u88c5\u7cfb\u7edf\u65f6\uff0c\u53ef\u4ee5\u65b9\u4fbf\u5730\u6062\u590d\u5feb\u6377\u65b9\u5f0f\u3002<\/p>\n<\/p>\n<p><p>\u901a\u8fc7\u4ee5\u4e0a\u65b9\u6cd5\uff0c\u53ef\u4ee5\u521b\u5efa\u548c\u7ba1\u7406Python\u5feb\u6377\u65b9\u5f0f\uff0c\u63d0\u9ad8\u5de5\u4f5c\u6548\u7387\u548c\u4ee3\u7801\u7ba1\u7406\u80fd\u529b\u3002\u65e0\u8bba\u662f\u5728Windows\u3001Linux\u8fd8\u662fmacOS\u7cfb\u7edf\u4e0a\uff0c\u90fd\u6709\u591a\u79cd\u65b9\u5f0f\u53ef\u4ee5\u5b9e\u73b0\u5feb\u6377\u65b9\u5f0f\u7684\u521b\u5efa\u3002\u6839\u636e\u5177\u4f53\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\uff0c\u53ef\u4ee5\u66f4\u597d\u5730\u5229\u7528Python\u8fdb\u884c\u5f00\u53d1\u548c\u5de5\u4f5c\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Windows\u7cfb\u7edf\u4e2d\u521b\u5efaPython\u811a\u672c\u7684\u5feb\u6377\u65b9\u5f0f\uff1f<\/strong><br \/>\u5728Windows\u7cfb\u7edf\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u53f3\u952e\u70b9\u51fbPython\u811a\u672c\u6587\u4ef6\uff0c\u9009\u62e9\u201c\u521b\u5efa\u5feb\u6377\u65b9\u5f0f\u201d\u6765\u751f\u6210\u4e00\u4e2a\u5feb\u6377\u65b9\u5f0f\u3002\u4e4b\u540e\uff0c\u5c06\u751f\u6210\u7684\u5feb\u6377\u65b9\u5f0f\u62d6\u52a8\u5230\u684c\u9762\u6216\u5176\u4ed6\u65b9\u4fbf\u7684\u4f4d\u7f6e\u3002\u8fd8\u53ef\u4ee5\u901a\u8fc7\u53f3\u952e\u70b9\u51fb\u5feb\u6377\u65b9\u5f0f\uff0c\u9009\u62e9\u201c\u5c5e\u6027\u201d\uff0c\u5728\u76ee\u6807\u6846\u4e2d\u6dfb\u52a0Python\u89e3\u91ca\u5668\u7684\u8def\u5f84\uff0c\u4ee5\u4fbf\u76f4\u63a5\u901a\u8fc7\u5feb\u6377\u65b9\u5f0f\u8fd0\u884c\u811a\u672c\u3002<\/p>\n<p><strong>\u53ef\u4ee5\u901a\u8fc7\u5feb\u6377\u65b9\u5f0f\u53c2\u6570\u6765\u4f20\u9012\u547d\u4ee4\u884c\u53c2\u6570\u5417\uff1f<\/strong><br \/>\u662f\u7684\uff0c\u53ef\u4ee5\u5728\u5feb\u6377\u65b9\u5f0f\u7684\u5c5e\u6027\u4e2d\uff0c\u5728\u201c\u76ee\u6807\u201d\u6846\u4e2d\u6dfb\u52a0\u547d\u4ee4\u884c\u53c2\u6570\u3002\u4f8b\u5982\uff0c\u5982\u679c\u4f60\u7684Python\u811a\u672c\u9700\u8981\u63a5\u6536\u8f93\u5165\u53c2\u6570\uff0c\u53ef\u4ee5\u5728\u76ee\u6807\u540e\u6dfb\u52a0\u8fd9\u4e9b\u53c2\u6570\uff0c\u683c\u5f0f\u4e3a<code>python your_script.py arg1 arg2<\/code>\u3002\u8fd9\u6837\uff0c\u5f53\u4f60\u8fd0\u884c\u5feb\u6377\u65b9\u5f0f\u65f6\uff0cPython\u811a\u672c\u5c06\u63a5\u6536\u5230\u8fd9\u4e9b\u53c2\u6570\u3002<\/p>\n<p><strong>Python\u811a\u672c\u7684\u5feb\u6377\u65b9\u5f0f\u5982\u4f55\u8bbe\u7f6e\u56fe\u6807\uff1f<\/strong><br \/>\u8981\u4e3aPython\u811a\u672c\u7684\u5feb\u6377\u65b9\u5f0f\u8bbe\u7f6e\u81ea\u5b9a\u4e49\u56fe\u6807\uff0c\u53f3\u952e\u70b9\u51fb\u5feb\u6377\u65b9\u5f0f\u5e76\u9009\u62e9\u201c\u5c5e\u6027\u201d\u3002\u5728\u5f39\u51fa\u7684\u5bf9\u8bdd\u6846\u4e2d\uff0c\u70b9\u51fb\u201c\u66f4\u6539\u56fe\u6807\u201d\u6309\u94ae\uff0c\u6d4f\u89c8\u5e76\u9009\u62e9\u4f60\u60f3\u8981\u7684\u56fe\u6807\u6587\u4ef6\uff08\u901a\u5e38\u4e3a.ico\u683c\u5f0f\uff09\u3002\u9009\u5b9a\u540e\uff0c\u70b9\u51fb\u201c\u786e\u5b9a\u201d\u4ee5\u5e94\u7528\u66f4\u6539\uff0c\u5feb\u6377\u65b9\u5f0f\u7684\u56fe\u6807\u5c06\u4f1a\u66f4\u65b0\u4e3a\u4f60\u9009\u62e9\u7684\u56fe\u6807\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u521b\u5efaPython\u5feb\u6377\u65b9\u5f0f\u7684\u65b9\u6cd5\u6709\u591a\u79cd\uff0c\u5305\u62ec\u4f7f\u7528\u811a\u672c\u3001\u521b\u5efa\u684c\u9762\u5feb\u6377\u65b9\u5f0f\u3001\u4f7f\u7528\u547d\u4ee4\u884c\u5de5\u5177\u7b49\u3002\u901a\u8fc7\u4f7f\u7528\u5feb\u6377\u65b9\u5f0f\uff0c\u53ef\u4ee5 [&hellip;]","protected":false},"author":3,"featured_media":1174500,"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\/1174486"}],"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=1174486"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1174486\/revisions"}],"predecessor-version":[{"id":1174504,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1174486\/revisions\/1174504"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1174500"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1174486"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1174486"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1174486"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}