{"id":1125736,"date":"2025-01-08T19:54:27","date_gmt":"2025-01-08T11:54:27","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1125736.html"},"modified":"2025-01-08T19:54:30","modified_gmt":"2025-01-08T11:54:30","slug":"python%e5%a6%82%e4%bd%95%e4%bb%a5%e7%ae%a1%e7%90%86%e5%91%98%e8%ba%ab%e4%bb%bd%e8%bf%90%e8%a1%8c%e7%a8%8b%e5%ba%8f","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1125736.html","title":{"rendered":"python\u5982\u4f55\u4ee5\u7ba1\u7406\u5458\u8eab\u4efd\u8fd0\u884c\u7a0b\u5e8f"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25090321\/fc9ba964-3d39-41a5-b632-e8b394f40e7a.webp\" alt=\"python\u5982\u4f55\u4ee5\u7ba1\u7406\u5458\u8eab\u4efd\u8fd0\u884c\u7a0b\u5e8f\" \/><\/p>\n<p><p> <strong>\u5728Windows\u4e0a\uff0c\u4ee5\u7ba1\u7406\u5458\u8eab\u4efd\u8fd0\u884cPython\u7a0b\u5e8f\u7684\u6b65\u9aa4\u5305\u62ec\uff1a\u4f7f\u7528\u5feb\u6377\u65b9\u5f0f\u3001\u4fee\u6539\u811a\u672c\u5c5e\u6027\u3001\u4f7f\u7528\u4efb\u52a1\u8ba1\u5212\u7a0b\u5e8f\u3002\u4ee5\u4e0b\u662f\u5177\u4f53\u65b9\u6cd5\uff1a<\/strong><\/p>\n<\/p>\n<ol>\n<li><strong>\u4f7f\u7528\u5feb\u6377\u65b9\u5f0f<\/strong>\uff1a\u521b\u5efaPython\u811a\u672c\u7684\u5feb\u6377\u65b9\u5f0f\uff0c\u53f3\u952e\u70b9\u51fb\u5feb\u6377\u65b9\u5f0f\uff0c\u9009\u62e9\u201c\u5c5e\u6027\u201d\uff0c\u5728\u201c\u5feb\u6377\u65b9\u5f0f\u201d\u9009\u9879\u5361\u7684\u201c\u9ad8\u7ea7\u201d\u6309\u94ae\u4e2d\u9009\u62e9\u201c\u4ee5\u7ba1\u7406\u5458\u8eab\u4efd\u8fd0\u884c\u201d\u3002<\/li>\n<li><strong>\u4fee\u6539\u811a\u672c\u5c5e\u6027<\/strong>\uff1a\u901a\u8fc7\u4fee\u6539\u811a\u672c\u7684\u5c5e\u6027\uff0c\u4f7f\u5176\u9ed8\u8ba4\u4ee5\u7ba1\u7406\u5458\u8eab\u4efd\u8fd0\u884c\uff0c\u786e\u4fdd\u811a\u672c\u80fd\u591f\u6267\u884c\u9700\u8981\u7ba1\u7406\u5458\u6743\u9650\u7684\u4efb\u52a1\u3002<\/li>\n<li><strong>\u4f7f\u7528\u4efb\u52a1\u8ba1\u5212\u7a0b\u5e8f<\/strong>\uff1a\u521b\u5efa\u4e00\u4e2a\u4efb\u52a1\u8ba1\u5212\uff0c\u914d\u7f6e\u4efb\u52a1\u4ee5\u7ba1\u7406\u5458\u8eab\u4efd\u8fd0\u884c\uff0c\u5e76\u8bbe\u7f6e\u89e6\u53d1\u6761\u4ef6\u548c\u811a\u672c\u8def\u5f84\u3002<\/li>\n<\/ol>\n<p><h3>\u4e00\u3001\u4f7f\u7528\u5feb\u6377\u65b9\u5f0f<\/h3>\n<\/p>\n<p><p>\u4f7f\u7528\u5feb\u6377\u65b9\u5f0f\u662f\u6700\u7b80\u5355\u7684\u65b9\u6cd5\u4e4b\u4e00\u3002\u901a\u8fc7\u5feb\u6377\u65b9\u5f0f\uff0c\u53ef\u4ee5\u8f7b\u677e\u5730\u4ee5\u7ba1\u7406\u5458\u8eab\u4efd\u8fd0\u884cPython\u811a\u672c\u3002<\/p>\n<\/p>\n<p><h4>\u521b\u5efa\u5feb\u6377\u65b9\u5f0f<\/h4>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u627e\u5230\u4f60\u7684Python\u811a\u672c\u6587\u4ef6\u3002\u4f8b\u5982\uff0c\u5047\u8bbe\u4f60\u7684\u811a\u672c\u6587\u4ef6\u540d\u4e3a<code>script.py<\/code>\u3002\u53f3\u952e\u70b9\u51fb\u8be5\u6587\u4ef6\uff0c\u9009\u62e9\u201c\u521b\u5efa\u5feb\u6377\u65b9\u5f0f\u201d\u3002<\/p>\n<\/p>\n<p><h4>\u4fee\u6539\u5feb\u6377\u65b9\u5f0f\u5c5e\u6027<\/h4>\n<\/p>\n<p><p>\u521b\u5efa\u5feb\u6377\u65b9\u5f0f\u540e\uff0c\u53f3\u952e\u70b9\u51fb\u5feb\u6377\u65b9\u5f0f\uff0c\u9009\u62e9\u201c\u5c5e\u6027\u201d\u3002\u5728\u201c\u5feb\u6377\u65b9\u5f0f\u201d\u9009\u9879\u5361\u4e2d\uff0c\u70b9\u51fb\u201c\u9ad8\u7ea7\u201d\u6309\u94ae\u3002\u5728\u5f39\u51fa\u7684\u7a97\u53e3\u4e2d\uff0c\u9009\u4e2d\u201c\u4ee5\u7ba1\u7406\u5458\u8eab\u4efd\u8fd0\u884c\u201d\u9009\u9879\uff0c\u7136\u540e\u70b9\u51fb\u201c\u786e\u5b9a\u201d\u3002<\/p>\n<\/p>\n<p><h4>\u8fd0\u884c\u5feb\u6377\u65b9\u5f0f<\/h4>\n<\/p>\n<p><p>\u73b0\u5728\uff0c\u4f60\u53ef\u4ee5\u901a\u8fc7\u53cc\u51fb\u5feb\u6377\u65b9\u5f0f\u6765\u8fd0\u884cPython\u811a\u672c\uff0c\u7cfb\u7edf\u4f1a\u63d0\u793a\u4f60\u4ee5\u7ba1\u7406\u5458\u8eab\u4efd\u8fd0\u884c\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u4fee\u6539\u811a\u672c\u5c5e\u6027<\/h3>\n<\/p>\n<p><p>\u901a\u8fc7\u4fee\u6539\u811a\u672c\u7684\u5c5e\u6027\uff0c\u4e5f\u53ef\u4ee5\u4f7fPython\u811a\u672c\u9ed8\u8ba4\u4ee5\u7ba1\u7406\u5458\u8eab\u4efd\u8fd0\u884c\u3002<\/p>\n<\/p>\n<p><h4>\u521b\u5efa\u6279\u5904\u7406\u6587\u4ef6<\/h4>\n<\/p>\n<p><p>\u4f60\u9700\u8981\u521b\u5efa\u4e00\u4e2a\u6279\u5904\u7406\u6587\u4ef6\u6765\u8fd0\u884c\u4f60\u7684Python\u811a\u672c\u3002\u6253\u5f00\u4e00\u4e2a\u6587\u672c\u7f16\u8f91\u5668\uff08\u5982\u8bb0\u4e8b\u672c\uff09\uff0c\u8f93\u5165\u4ee5\u4e0b\u5185\u5bb9\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-batch\">@echo off<\/p>\n<p>python script.py<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5c06\u6b64\u6587\u4ef6\u4fdd\u5b58\u4e3a<code>run_as_admin.bat<\/code>\u3002<\/p>\n<\/p>\n<p><h4>\u4fee\u6539\u6279\u5904\u7406\u6587\u4ef6\u5c5e\u6027<\/h4>\n<\/p>\n<p><p>\u53f3\u952e\u70b9\u51fb<code>run_as_admin.bat<\/code>\u6587\u4ef6\uff0c\u9009\u62e9\u201c\u5c5e\u6027\u201d\u3002\u5728\u201c\u517c\u5bb9\u6027\u201d\u9009\u9879\u5361\u4e2d\uff0c\u9009\u4e2d\u201c\u4ee5\u7ba1\u7406\u5458\u8eab\u4efd\u8fd0\u884c\u6b64\u7a0b\u5e8f\u201d\u9009\u9879\uff0c\u7136\u540e\u70b9\u51fb\u201c\u5e94\u7528\u201d\u548c\u201c\u786e\u5b9a\u201d\u3002<\/p>\n<\/p>\n<p><h4>\u8fd0\u884c\u6279\u5904\u7406\u6587\u4ef6<\/h4>\n<\/p>\n<p><p>\u53cc\u51fb<code>run_as_admin.bat<\/code>\u6587\u4ef6\uff0c\u7cfb\u7edf\u4f1a\u63d0\u793a\u4f60\u4ee5\u7ba1\u7406\u5458\u8eab\u4efd\u8fd0\u884c\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001\u4f7f\u7528\u4efb\u52a1\u8ba1\u5212\u7a0b\u5e8f<\/h3>\n<\/p>\n<p><p>\u4f7f\u7528\u4efb\u52a1\u8ba1\u5212\u7a0b\u5e8f\u53ef\u4ee5\u4f7f\u4f60\u7684Python\u811a\u672c\u5728\u7279\u5b9a\u6761\u4ef6\u4e0b\u81ea\u52a8\u4ee5\u7ba1\u7406\u5458\u8eab\u4efd\u8fd0\u884c\u3002<\/p>\n<\/p>\n<p><h4>\u521b\u5efa\u4efb\u52a1<\/h4>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u6253\u5f00\u4efb\u52a1\u8ba1\u5212\u7a0b\u5e8f\u3002\u4f60\u53ef\u4ee5\u5728\u5f00\u59cb\u83dc\u5355\u4e2d\u641c\u7d22\u201c\u4efb\u52a1\u8ba1\u5212\u7a0b\u5e8f\u201d\u5e76\u6253\u5f00\u5b83\u3002\u70b9\u51fb\u53f3\u4fa7\u7684\u201c\u521b\u5efa\u4efb\u52a1\u201d\u9009\u9879\u3002<\/p>\n<\/p>\n<p><h4>\u914d\u7f6e\u4efb\u52a1<\/h4>\n<\/p>\n<p><p>\u5728\u201c\u5e38\u89c4\u201d\u9009\u9879\u5361\u4e2d\uff0c\u4e3a\u4efb\u52a1\u547d\u540d\uff0c\u5e76\u9009\u4e2d\u201c\u4ee5\u6700\u9ad8\u6743\u9650\u8fd0\u884c\u201d\u9009\u9879\u3002\u5728\u201c\u89e6\u53d1\u5668\u201d\u9009\u9879\u5361\u4e2d\uff0c\u70b9\u51fb\u201c\u65b0\u5efa\u201d\uff0c\u914d\u7f6e\u89e6\u53d1\u6761\u4ef6\u3002\u4f8b\u5982\uff0c\u4f60\u53ef\u4ee5\u8bbe\u7f6e\u4efb\u52a1\u5728\u7cfb\u7edf\u542f\u52a8\u65f6\u8fd0\u884c\u3002<\/p>\n<\/p>\n<p><h4>\u8bbe\u7f6e\u64cd\u4f5c<\/h4>\n<\/p>\n<p><p>\u5728\u201c\u64cd\u4f5c\u201d\u9009\u9879\u5361\u4e2d\uff0c\u70b9\u51fb\u201c\u65b0\u5efa\u201d\u3002\u9009\u62e9\u201c\u542f\u52a8\u7a0b\u5e8f\u201d\u64cd\u4f5c\uff0c\u70b9\u51fb\u201c\u6d4f\u89c8\u201d\u6309\u94ae\uff0c\u9009\u62e9\u4f60\u7684Python\u89e3\u91ca\u5668\uff08\u5982<code>python.exe<\/code>\uff09\u6240\u5728\u8def\u5f84\u3002\u5728\u201c\u6dfb\u52a0\u53c2\u6570\u201d\u5b57\u6bb5\u4e2d\uff0c\u8f93\u5165\u811a\u672c\u8def\u5f84\u548c\u5fc5\u8981\u53c2\u6570\uff0c\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-text\">C:\\path\\to\\your\\script.py<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>\u4fdd\u5b58\u4efb\u52a1<\/h4>\n<\/p>\n<p><p>\u70b9\u51fb\u201c\u786e\u5b9a\u201d\u4fdd\u5b58\u4efb\u52a1\u3002\u73b0\u5728\uff0c\u4f60\u7684Python\u811a\u672c\u5c06\u5728\u914d\u7f6e\u7684\u89e6\u53d1\u6761\u4ef6\u4e0b\u81ea\u52a8\u4ee5\u7ba1\u7406\u5458\u8eab\u4efd\u8fd0\u884c\u3002<\/p>\n<\/p>\n<p><h3>\u56db\u3001\u901a\u8fc7\u4ee3\u7801\u8bf7\u6c42\u7ba1\u7406\u5458\u6743\u9650<\/h3>\n<\/p>\n<p><p>\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u4f60\u53ef\u80fd\u5e0c\u671b\u5728Python\u811a\u672c\u5185\u90e8\u8bf7\u6c42\u7ba1\u7406\u5458\u6743\u9650\u3002\u53ef\u4ee5\u4f7f\u7528<code>ctypes<\/code>\u5e93\u6765\u5b9e\u73b0\u8fd9\u4e00\u70b9\u3002<\/p>\n<\/p>\n<p><h4>\u4f7f\u7528<code>ctypes<\/code>\u8bf7\u6c42\u7ba1\u7406\u5458\u6743\u9650<\/h4>\n<\/p>\n<p><p>\u4ee5\u4e0b\u662f\u4e00\u4e2a\u793a\u4f8b\u4ee3\u7801\uff0c\u5c55\u793a\u5982\u4f55\u5728Python\u811a\u672c\u4e2d\u8bf7\u6c42\u7ba1\u7406\u5458\u6743\u9650\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import ctypes<\/p>\n<p>import sys<\/p>\n<p>def is_admin():<\/p>\n<p>    try:<\/p>\n<p>        return ctypes.windll.shell32.IsUserAnAdmin()<\/p>\n<p>    except:<\/p>\n<p>        return False<\/p>\n<p>if is_admin():<\/p>\n<p>    # \u5982\u679c\u662f\u7ba1\u7406\u5458\uff0c\u6267\u884c\u9700\u8981\u7ba1\u7406\u5458\u6743\u9650\u7684\u4ee3\u7801<\/p>\n<p>    print(&quot;You are running as admin!&quot;)<\/p>\n<p>else:<\/p>\n<p>    # \u5982\u679c\u4e0d\u662f\u7ba1\u7406\u5458\uff0c\u91cd\u65b0\u8fd0\u884c\u811a\u672c\u5e76\u8bf7\u6c42\u7ba1\u7406\u5458\u6743\u9650<\/p>\n<p>    ctypes.windll.shell32.ShellExecuteW(None, &quot;runas&quot;, sys.executable, __file__, None, 1)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>\u6267\u884c\u811a\u672c<\/h4>\n<\/p>\n<p><p>\u8fd0\u884c\u4e0a\u8ff0\u811a\u672c\u65f6\uff0c\u5982\u679c\u5f53\u524d\u7528\u6237\u4e0d\u662f\u7ba1\u7406\u5458\uff0c\u811a\u672c\u4f1a\u91cd\u65b0\u542f\u52a8\u5e76\u8bf7\u6c42\u7ba1\u7406\u5458\u6743\u9650\u3002<\/p>\n<\/p>\n<p><h3>\u4e94\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u5728\u672c\u6307\u5357\u4e2d\uff0c\u6211\u4eec\u63a2\u8ba8\u4e86\u591a\u79cd\u4ee5\u7ba1\u7406\u5458\u8eab\u4efd\u8fd0\u884cPython\u7a0b\u5e8f\u7684\u65b9\u6cd5\u3002\u901a\u8fc7\u4f7f\u7528\u5feb\u6377\u65b9\u5f0f\u3001\u4fee\u6539\u811a\u672c\u5c5e\u6027\u3001\u4f7f\u7528\u4efb\u52a1\u8ba1\u5212\u7a0b\u5e8f\u4ee5\u53ca\u5728\u4ee3\u7801\u4e2d\u8bf7\u6c42\u7ba1\u7406\u5458\u6743\u9650\uff0c\u4f60\u53ef\u4ee5\u786e\u4fdd\u4f60\u7684Python\u811a\u672c\u80fd\u591f\u5728\u9700\u8981\u7ba1\u7406\u5458\u6743\u9650\u7684\u60c5\u51b5\u4e0b\u8fd0\u884c\u3002<\/p>\n<\/p>\n<p><p>\u8fd9\u4e9b\u65b9\u6cd5\u5404\u6709\u4f18\u7f3a\u70b9\uff0c\u9009\u62e9\u9002\u5408\u4f60\u7684\u573a\u666f\u7684\u65b9\u6cd5\u53ef\u4ee5\u63d0\u9ad8\u4f60\u7684\u5de5\u4f5c\u6548\u7387\uff0c\u5e76\u786e\u4fdd\u4f60\u7684\u811a\u672c\u80fd\u591f\u6b63\u786e\u6267\u884c\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Windows\u4e2d\u4ee5\u7ba1\u7406\u5458\u8eab\u4efd\u8fd0\u884cPython\u7a0b\u5e8f\uff1f<\/strong><br \/>\u5728Windows\u7cfb\u7edf\u4e2d\uff0c\u60a8\u53ef\u4ee5\u901a\u8fc7\u53f3\u952e\u5355\u51fbPython\u53ef\u6267\u884c\u6587\u4ef6\u6216\u60a8\u7684Python\u811a\u672c\uff0c\u9009\u62e9\u201c\u4ee5\u7ba1\u7406\u5458\u8eab\u4efd\u8fd0\u884c\u201d\u6765\u542f\u52a8\u7a0b\u5e8f\u3002\u786e\u4fdd\u60a8\u6709\u76f8\u5e94\u7684\u6743\u9650\uff0c\u7cfb\u7edf\u5c06\u5f39\u51fa\u7528\u6237\u5e10\u6237\u63a7\u5236\u7a97\u53e3\u4ee5\u786e\u8ba4\u60a8\u7684\u64cd\u4f5c\u3002\u60a8\u4e5f\u53ef\u4ee5\u5728\u547d\u4ee4\u63d0\u793a\u7b26\u4e2d\u4ee5\u7ba1\u7406\u5458\u8eab\u4efd\u8fd0\u884cPython\uff0c\u65b9\u6cd5\u662f\u53f3\u952e\u5355\u51fb\u547d\u4ee4\u63d0\u793a\u7b26\u56fe\u6807\u5e76\u9009\u62e9\u201c\u4ee5\u7ba1\u7406\u5458\u8eab\u4efd\u8fd0\u884c\u201d\uff0c\u7136\u540e\u8f93\u5165Python\u811a\u672c\u7684\u8def\u5f84\u3002<\/p>\n<p><strong>\u5728Linux\u7cfb\u7edf\u4e2d\u5982\u4f55\u4ee5\u7ba1\u7406\u5458\u6743\u9650\u8fd0\u884cPython\u811a\u672c\uff1f<\/strong><br \/>\u5728Linux\u4e2d\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528<code>sudo<\/code>\u547d\u4ee4\u6765\u4ee5\u7ba1\u7406\u5458\u6743\u9650\u8fd0\u884cPython\u811a\u672c\u3002\u53ea\u9700\u5728\u7ec8\u7aef\u4e2d\u8f93\u5165<code>sudo python your_script.py<\/code>\uff0c\u7cfb\u7edf\u5c06\u63d0\u793a\u60a8\u8f93\u5165\u7528\u6237\u5bc6\u7801\u4ee5\u786e\u8ba4\u8eab\u4efd\u3002\u786e\u4fdd\u60a8\u7684\u7528\u6237\u8d26\u6237\u5177\u6709sudo\u6743\u9650\uff0c\u8fd9\u6837\u624d\u80fd\u6210\u529f\u6267\u884c\u547d\u4ee4\u3002<\/p>\n<p><strong>\u662f\u5426\u6709\u65b9\u6cd5\u53ef\u4ee5\u81ea\u52a8\u4ee5\u7ba1\u7406\u5458\u8eab\u4efd\u8fd0\u884cPython\u7a0b\u5e8f\uff1f<\/strong><br \/>\u53ef\u4ee5\u901a\u8fc7\u521b\u5efa\u4e00\u4e2a\u6279\u5904\u7406\u6587\u4ef6\u6216\u4f7f\u7528Windows\u7684\u4efb\u52a1\u8ba1\u5212\u7a0b\u5e8f\u6765\u81ea\u52a8\u4ee5\u7ba1\u7406\u5458\u8eab\u4efd\u8fd0\u884cPython\u7a0b\u5e8f\u3002\u901a\u8fc7\u5c06Python\u811a\u672c\u6dfb\u52a0\u5230\u4efb\u52a1\u8ba1\u5212\u7a0b\u5e8f\u4e2d\uff0c\u5e76\u8bbe\u7f6e\u5176\u4ee5\u6700\u9ad8\u6743\u9650\u8fd0\u884c\uff0c\u60a8\u53ef\u4ee5\u5b9e\u73b0\u8fd9\u4e00\u70b9\u3002\u786e\u4fdd\u5728\u521b\u5efa\u4efb\u52a1\u65f6\u9009\u4e2d\u201c\u4ee5\u6700\u9ad8\u6743\u9650\u8fd0\u884c\u201d\u9009\u9879\u3002<\/p>\n<p><strong>\u5728\u8fd0\u884cPython\u7a0b\u5e8f\u65f6\u9047\u5230\u6743\u9650\u95ee\u9898\uff0c\u6211\u8be5\u5982\u4f55\u89e3\u51b3\uff1f<\/strong><br \/>\u5982\u679c\u5728\u8fd0\u884cPython\u7a0b\u5e8f\u65f6\u9047\u5230\u6743\u9650\u95ee\u9898\uff0c\u68c0\u67e5\u60a8\u662f\u5426\u4ee5\u7ba1\u7406\u5458\u8eab\u4efd\u8fd0\u884c\u7a0b\u5e8f\uff0c\u5e76\u786e\u4fdd\u60a8\u7684\u7528\u6237\u8d26\u6237\u5177\u6709\u76f8\u5e94\u7684\u6743\u9650\u3002\u8fd8\u53ef\u4ee5\u67e5\u770b\u7a0b\u5e8f\u6240\u9700\u8bbf\u95ee\u7684\u6587\u4ef6\u6216\u76ee\u5f55\u7684\u6743\u9650\u8bbe\u7f6e\uff0c\u786e\u4fdd\u60a8\u6709\u6743\u9650\u8bbf\u95ee\u8fd9\u4e9b\u8d44\u6e90\u3002\u5fc5\u8981\u65f6\uff0c\u53ef\u4ee5\u901a\u8fc7\u4fee\u6539\u6587\u4ef6\u6216\u76ee\u5f55\u7684\u6743\u9650\u6765\u89e3\u51b3\u6b64\u7c7b\u95ee\u9898\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Windows\u4e0a\uff0c\u4ee5\u7ba1\u7406\u5458\u8eab\u4efd\u8fd0\u884cPython\u7a0b\u5e8f\u7684\u6b65\u9aa4\u5305\u62ec\uff1a\u4f7f\u7528\u5feb\u6377\u65b9\u5f0f\u3001\u4fee\u6539\u811a\u672c\u5c5e\u6027\u3001\u4f7f\u7528\u4efb\u52a1\u8ba1\u5212\u7a0b\u5e8f\u3002 [&hellip;]","protected":false},"author":3,"featured_media":1125746,"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\/1125736"}],"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=1125736"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1125736\/revisions"}],"predecessor-version":[{"id":1125747,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1125736\/revisions\/1125747"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1125746"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1125736"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1125736"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1125736"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}