{"id":1173820,"date":"2025-01-15T17:08:32","date_gmt":"2025-01-15T09:08:32","guid":{"rendered":""},"modified":"2025-01-15T17:08:36","modified_gmt":"2025-01-15T09:08:36","slug":"python%e5%a6%82%e4%bd%95%e5%90%af%e5%8a%a8%e6%a1%8c%e9%9d%a2%e7%a8%8b%e5%ba%8f%e5%90%97","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1173820.html","title":{"rendered":"python\u5982\u4f55\u542f\u52a8\u684c\u9762\u7a0b\u5e8f\u5417"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/26075523\/2b9fc086-39c6-4c51-8ab6-b0bc3908bd66.webp\" alt=\"python\u5982\u4f55\u542f\u52a8\u684c\u9762\u7a0b\u5e8f\u5417\" \/><\/p>\n<p><p> <strong>Python\u53ef\u4ee5\u901a\u8fc7\u591a\u4e2a\u65b9\u5f0f\u542f\u52a8\u684c\u9762\u7a0b\u5e8f<\/strong>\uff0c<strong>\u5305\u62ec\u4f7f\u7528subprocess\u6a21\u5757\u3001os\u6a21\u5757\u3001\u4ee5\u53ca\u7b2c\u4e09\u65b9\u5e93\u5982pyautogui<\/strong>\u3002\u4e0b\u9762\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528subprocess\u6a21\u5757\u6765\u542f\u52a8\u684c\u9762\u7a0b\u5e8f\u3002<\/p>\n<\/p>\n<p><p><strong>Subprocess\u6a21\u5757<\/strong>\uff1asubprocess\u6a21\u5757\u662fPython\u4e2d\u7528\u4e8e\u521b\u5efa\u65b0\u8fdb\u7a0b\u3001\u8fde\u63a5\u5176\u8f93\u5165\/\u8f93\u51fa\/\u9519\u8bef\u7ba1\u9053\u4ee5\u53ca\u83b7\u53d6\u5176\u8fd4\u56de\u7801\u7684\u4e00\u4e2a\u6a21\u5757\u3002subprocess\u6a21\u5757\u63d0\u4f9b\u4e86\u4e00\u4e2a\u66f4\u5f3a\u5927\u7684\u63a5\u53e3\u6765\u521b\u5efa\u548c\u7ba1\u7406\u5b50\u8fdb\u7a0b\u3002\u901a\u8fc7subprocess\u6a21\u5757\uff0c\u6211\u4eec\u53ef\u4ee5\u5f88\u65b9\u4fbf\u5730\u542f\u52a8\u4e00\u4e2a\u684c\u9762\u7a0b\u5e8f\u3002<\/p>\n<\/p>\n<p><p>\u4e3e\u4f8b\u8bf4\u660e\uff0c\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u4ee3\u7801\u542f\u52a8Windows\u4e0b\u7684\u8bb0\u4e8b\u672c\u7a0b\u5e8f\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import subprocess<\/p>\n<h2><strong>\u542f\u52a8\u8bb0\u4e8b\u672c\u7a0b\u5e8f<\/strong><\/h2>\n<p>subprocess.Popen([&#39;notepad.exe&#39;])<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u6bb5\u4ee3\u7801\u4e2d\uff0csubprocess.Popen()\u51fd\u6570\u88ab\u7528\u6765\u542f\u52a8\u4e00\u4e2a\u65b0\u7684\u8fdb\u7a0b\u3002\u6211\u4eec\u4f20\u9012\u4e86\u4e00\u4e2a\u5305\u542b\u7a0b\u5e8f\u540d\u79f0\u7684\u5217\u8868\u7ed9subprocess.Popen()\u51fd\u6570\u6765\u542f\u52a8\u8bb0\u4e8b\u672c\u7a0b\u5e8f\u3002<\/p>\n<\/p>\n<p><p>\u4e0b\u9762\u5c06\u8be6\u7ec6\u4ecb\u7ecdPython\u542f\u52a8\u684c\u9762\u7a0b\u5e8f\u7684\u5176\u4ed6\u65b9\u6cd5\u548c\u66f4\u591a\u7ec6\u8282\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u901a\u8fc7os\u6a21\u5757\u542f\u52a8\u684c\u9762\u7a0b\u5e8f<\/h3>\n<\/p>\n<p><h4>\u4f7f\u7528os.system<\/h4>\n<\/p>\n<p><p>os\u6a21\u5757\u662fPython\u7684\u6807\u51c6\u5e93\uff0c\u63d0\u4f9b\u4e86\u4e0e\u64cd\u4f5c\u7cfb\u7edf\u8fdb\u884c\u4ea4\u4e92\u7684\u63a5\u53e3\u3002\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528os.system()\u51fd\u6570\u6765\u542f\u52a8\u684c\u9762\u7a0b\u5e8f\u3002os.system()\u53ef\u4ee5\u6267\u884c\u4e00\u4e2a\u7cfb\u7edf\u547d\u4ee4\uff0c\u7c7b\u4f3c\u4e8e\u5728\u547d\u4ee4\u884c\u4e2d\u8f93\u5165\u547d\u4ee4\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import os<\/p>\n<h2><strong>\u4f7f\u7528os.system\u542f\u52a8\u8bb0\u4e8b\u672c<\/strong><\/h2>\n<p>os.system(&#39;notepad.exe&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u5f0f\u7684\u7f3a\u70b9\u662f\u5b83\u4f1a\u963b\u585e\u5f53\u524d\u7684Python\u811a\u672c\uff0c\u76f4\u5230\u542f\u52a8\u7684\u7a0b\u5e8f\u5173\u95ed\u3002<\/p>\n<\/p>\n<p><h4>\u4f7f\u7528os.startfile<\/h4>\n<\/p>\n<p><p>os.startfile()\u662f\u4e00\u4e2a\u4e13\u95e8\u7528\u4e8e\u5728Windows\u4e0a\u6253\u5f00\u6587\u4ef6\u3001\u7a0b\u5e8f\u6216URL\u7684\u51fd\u6570\u3002\u5b83\u7c7b\u4f3c\u4e8e\u53cc\u51fb\u6587\u4ef6\u6216\u7a0b\u5e8f\u56fe\u6807\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import os<\/p>\n<h2><strong>\u4f7f\u7528os.startfile\u542f\u52a8\u8bb0\u4e8b\u672c<\/strong><\/h2>\n<p>os.startfile(&#39;notepad.exe&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>os.startfile()\u4e0d\u4f1a\u963b\u585e\u5f53\u524d\u7684Python\u811a\u672c\uff0c\u5b83\u4f1a\u7acb\u5373\u8fd4\u56de\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u901a\u8fc7subprocess\u6a21\u5757\u542f\u52a8\u684c\u9762\u7a0b\u5e8f<\/h3>\n<\/p>\n<p><p>subprocess\u6a21\u5757\u63d0\u4f9b\u4e86\u66f4\u7075\u6d3b\u548c\u5f3a\u5927\u7684\u63a5\u53e3\u6765\u521b\u5efa\u548c\u7ba1\u7406\u5b50\u8fdb\u7a0b\u3002subprocess\u6a21\u5757\u7684\u4f7f\u7528\u65b9\u5f0f\u6709\u5f88\u591a\u79cd\uff0c\u6211\u4eec\u53ef\u4ee5\u6839\u636e\u9700\u8981\u9009\u62e9\u5408\u9002\u7684\u65b9\u5f0f\u3002<\/p>\n<\/p>\n<p><h4>\u4f7f\u7528subprocess.Popen<\/h4>\n<\/p>\n<p><p>subprocess.Popen()\u662fsubprocess\u6a21\u5757\u4e2d\u6700\u5e38\u7528\u7684\u51fd\u6570\u4e4b\u4e00\u3002\u5b83\u53ef\u4ee5\u542f\u52a8\u4e00\u4e2a\u65b0\u7684\u8fdb\u7a0b\u5e76\u7acb\u5373\u8fd4\u56de\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import subprocess<\/p>\n<h2><strong>\u4f7f\u7528subprocess.Popen\u542f\u52a8\u8bb0\u4e8b\u672c<\/strong><\/h2>\n<p>subprocess.Popen([&#39;notepad.exe&#39;])<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>Popen()\u51fd\u6570\u7684\u7b2c\u4e00\u4e2a\u53c2\u6570\u662f\u4e00\u4e2a\u5305\u542b\u547d\u4ee4\u548c\u53c2\u6570\u7684\u5217\u8868\u3002<\/p>\n<\/p>\n<p><h4>\u4f7f\u7528subprocess.run<\/h4>\n<\/p>\n<p><p>subprocess.run()\u662fPython 3.5\u5f15\u5165\u7684\u4e00\u4e2a\u65b0\u51fd\u6570\uff0c\u5b83\u7ed3\u5408\u4e86subprocess.call()\u548csubprocess.check_call()\u7684\u529f\u80fd\u3002\u5b83\u53ef\u4ee5\u542f\u52a8\u4e00\u4e2a\u65b0\u7684\u8fdb\u7a0b\u5e76\u7b49\u5f85\u5176\u7ed3\u675f\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import subprocess<\/p>\n<h2><strong>\u4f7f\u7528subprocess.run\u542f\u52a8\u8bb0\u4e8b\u672c<\/strong><\/h2>\n<p>result = subprocess.run([&#39;notepad.exe&#39;])<\/p>\n<p>print(result)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>subprocess.run()\u4f1a\u963b\u585e\u5f53\u524d\u7684Python\u811a\u672c\uff0c\u76f4\u5230\u542f\u52a8\u7684\u7a0b\u5e8f\u5173\u95ed\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001\u901a\u8fc7\u7b2c\u4e09\u65b9\u5e93\u542f\u52a8\u684c\u9762\u7a0b\u5e8f<\/h3>\n<\/p>\n<p><p>\u9664\u4e86\u6807\u51c6\u5e93\u4e4b\u5916\uff0c\u8fd8\u6709\u4e00\u4e9b\u7b2c\u4e09\u65b9\u5e93\u53ef\u4ee5\u7528\u6765\u542f\u52a8\u684c\u9762\u7a0b\u5e8f\u3002\u5176\u4e2d\u6700\u5e38\u7528\u7684\u662fpyautogui\u5e93\u3002pyautogui\u662f\u4e00\u4e2a\u8de8\u5e73\u53f0\u7684GUI\u81ea\u52a8\u5316\u5e93\uff0c\u53ef\u4ee5\u63a7\u5236\u9f20\u6807\u548c\u952e\u76d8\u3002<\/p>\n<\/p>\n<p><h4>\u4f7f\u7528pyautogui\u542f\u52a8\u684c\u9762\u7a0b\u5e8f<\/h4>\n<\/p>\n<p><p>pyautogui\u5e93\u53ef\u4ee5\u6a21\u62df\u7528\u6237\u7684\u9f20\u6807\u548c\u952e\u76d8\u64cd\u4f5c\uff0c\u4ece\u800c\u542f\u52a8\u684c\u9762\u7a0b\u5e8f\u3002\u8981\u4f7f\u7528pyautogui\u5e93\uff0c\u9996\u5148\u9700\u8981\u5b89\u88c5\u5b83\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install pyautogui<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u7136\u540e\uff0c\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u4ee3\u7801\u542f\u52a8\u684c\u9762\u7a0b\u5e8f\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import pyautogui<\/p>\n<h2><strong>\u6a21\u62df\u6309\u4e0bWin+R\u7ec4\u5408\u952e\u6253\u5f00\u8fd0\u884c\u5bf9\u8bdd\u6846<\/strong><\/h2>\n<p>pyautogui.hotkey(&#39;win&#39;, &#39;r&#39;)<\/p>\n<h2><strong>\u8f93\u5165\u7a0b\u5e8f\u540d\u79f0\u5e76\u6309\u56de\u8f66\u952e<\/strong><\/h2>\n<p>pyautogui.typewrite(&#39;notepad.exe&#39;)<\/p>\n<p>pyautogui.press(&#39;enter&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u5f0f\u7684\u4f18\u70b9\u662f\u5b83\u53ef\u4ee5\u6a21\u62df\u7528\u6237\u7684\u64cd\u4f5c\uff0c\u4ece\u800c\u542f\u52a8\u4efb\u4f55\u53ef\u4ee5\u901a\u8fc7\u952e\u76d8\u548c\u9f20\u6807\u542f\u52a8\u7684\u7a0b\u5e8f\u3002<\/p>\n<\/p>\n<p><h3>\u56db\u3001\u8de8\u5e73\u53f0\u542f\u52a8\u684c\u9762\u7a0b\u5e8f<\/h3>\n<\/p>\n<p><p>\u4e0d\u540c\u64cd\u4f5c\u7cfb\u7edf\u7684\u542f\u52a8\u684c\u9762\u7a0b\u5e8f\u7684\u65b9\u5f0f\u7565\u6709\u4e0d\u540c\u3002\u6211\u4eec\u53ef\u4ee5\u6839\u636e\u64cd\u4f5c\u7cfb\u7edf\u7684\u4e0d\u540c\u9009\u62e9\u5408\u9002\u7684\u65b9\u5f0f\u6765\u542f\u52a8\u684c\u9762\u7a0b\u5e8f\u3002<\/p>\n<\/p>\n<p><h4>\u5728Windows\u4e0a\u542f\u52a8\u684c\u9762\u7a0b\u5e8f<\/h4>\n<\/p>\n<p><p>Windows\u64cd\u4f5c\u7cfb\u7edf\u63d0\u4f9b\u4e86\u591a\u79cd\u542f\u52a8\u684c\u9762\u7a0b\u5e8f\u7684\u65b9\u5f0f\uff0c\u6211\u4eec\u53ef\u4ee5\u9009\u62e9\u5176\u4e2d\u4e00\u79cd\u5408\u9002\u7684\u65b9\u5f0f\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import os<\/p>\n<p>import subprocess<\/p>\n<p>import platform<\/p>\n<p>if platform.system() == &#39;Windows&#39;:<\/p>\n<p>    # \u4f7f\u7528os.startfile<\/p>\n<p>    os.startfile(&#39;notepad.exe&#39;)<\/p>\n<p>    # \u4f7f\u7528subprocess.Popen<\/p>\n<p>    subprocess.Popen([&#39;notepad.exe&#39;])<\/p>\n<p>    # \u4f7f\u7528os.system<\/p>\n<p>    os.system(&#39;notepad.exe&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>\u5728Linux\u4e0a\u542f\u52a8\u684c\u9762\u7a0b\u5e8f<\/h4>\n<\/p>\n<p><p>Linux\u64cd\u4f5c\u7cfb\u7edf\u4e5f\u63d0\u4f9b\u4e86\u591a\u79cd\u542f\u52a8\u684c\u9762\u7a0b\u5e8f\u7684\u65b9\u5f0f\u3002\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528subprocess\u6a21\u5757\u6765\u542f\u52a8Linux\u4e0a\u7684\u684c\u9762\u7a0b\u5e8f\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import subprocess<\/p>\n<p>import platform<\/p>\n<p>if platform.system() == &#39;Linux&#39;:<\/p>\n<p>    # \u4f7f\u7528subprocess.Popen\u542f\u52a8gedit<\/p>\n<p>    subprocess.Popen([&#39;gedit&#39;])<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>\u5728macOS\u4e0a\u542f\u52a8\u684c\u9762\u7a0b\u5e8f<\/h4>\n<\/p>\n<p><p>macOS\u64cd\u4f5c\u7cfb\u7edf\u4e5f\u63d0\u4f9b\u4e86\u591a\u79cd\u542f\u52a8\u684c\u9762\u7a0b\u5e8f\u7684\u65b9\u5f0f\u3002\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528subprocess\u6a21\u5757\u6765\u542f\u52a8macOS\u4e0a\u7684\u684c\u9762\u7a0b\u5e8f\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import subprocess<\/p>\n<p>import platform<\/p>\n<p>if platform.system() == &#39;Darwin&#39;:<\/p>\n<p>    # \u4f7f\u7528subprocess.Popen\u542f\u52a8TextEdit<\/p>\n<p>    subprocess.Popen([&#39;open&#39;, &#39;-a&#39;, &#39;TextEdit&#39;])<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e94\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>Python\u63d0\u4f9b\u4e86\u591a\u79cd\u65b9\u5f0f\u6765\u542f\u52a8\u684c\u9762\u7a0b\u5e8f\uff0c\u5305\u62ecos\u6a21\u5757\u3001subprocess\u6a21\u5757\u4ee5\u53ca\u7b2c\u4e09\u65b9\u5e93\u5982pyautogui\u3002\u6bcf\u79cd\u65b9\u5f0f\u90fd\u6709\u5176\u4f18\u70b9\u548c\u7f3a\u70b9\uff0c\u6211\u4eec\u53ef\u4ee5\u6839\u636e\u5177\u4f53\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684\u65b9\u5f0f\u6765\u542f\u52a8\u684c\u9762\u7a0b\u5e8f\u3002\u5728\u8de8\u5e73\u53f0\u5f00\u53d1\u4e2d\uff0c\u6211\u4eec\u8fd8\u9700\u8981\u8003\u8651\u4e0d\u540c\u64cd\u4f5c\u7cfb\u7edf\u7684\u5dee\u5f02\uff0c\u9009\u62e9\u5408\u9002\u7684\u65b9\u5f0f\u6765\u542f\u52a8\u684c\u9762\u7a0b\u5e8f\u3002\u5e0c\u671b\u901a\u8fc7\u672c\u6587\u7684\u4ecb\u7ecd\uff0c\u80fd\u591f\u5e2e\u52a9\u5927\u5bb6\u66f4\u597d\u5730\u7406\u89e3\u548c\u4f7f\u7528Python\u6765\u542f\u52a8\u684c\u9762\u7a0b\u5e8f\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u4f7f\u7528Python\u542f\u52a8Windows\u684c\u9762\u7a0b\u5e8f\uff1f<\/strong><br \/>\u53ef\u4ee5\u4f7f\u7528<code>os<\/code>\u6a21\u5757\u6216<code>subprocess<\/code>\u6a21\u5757\u6765\u542f\u52a8Windows\u684c\u9762\u7a0b\u5e8f\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u793a\u4f8b\u4ee3\u7801\uff1a  <\/p>\n<pre><code class=\"language-python\">import os\nos.startfile(&#39;C:\\\\Path\\\\To\\\\Your\\\\Program.exe&#39;)\n<\/code><\/pre>\n<p>\u5982\u679c\u9700\u8981\u66f4\u590d\u6742\u7684\u542f\u52a8\u9009\u9879\uff0c\u6bd4\u5982\u4f20\u9012\u53c2\u6570\uff0c\u53ef\u4ee5\u4f7f\u7528<code>subprocess<\/code>\u6a21\u5757\uff1a  <\/p>\n<pre><code class=\"language-python\">import subprocess\nsubprocess.Popen([&#39;C:\\\\Path\\\\To\\\\Your\\\\Program.exe&#39;, &#39;arg1&#39;, &#39;arg2&#39;])\n<\/code><\/pre>\n<p><strong>Python\u53ef\u4ee5\u542f\u52a8\u54ea\u4e9b\u7c7b\u578b\u7684\u684c\u9762\u7a0b\u5e8f\uff1f<\/strong><br \/>Python\u80fd\u591f\u542f\u52a8\u5927\u591a\u6570\u7c7b\u578b\u7684\u684c\u9762\u7a0b\u5e8f\uff0c\u5305\u62ec\u53ef\u6267\u884c\u6587\u4ef6\uff08.exe\uff09\u3001\u6279\u5904\u7406\u6587\u4ef6\uff08.bat\uff09\u3001\u811a\u672c\u6587\u4ef6\uff08.py\uff09\u7b49\u3002\u53ea\u8981\u7a0b\u5e8f\u5728\u7cfb\u7edf\u8def\u5f84\u4e2d\u53ef\u627e\u5230\uff0cPython\u5c31\u53ef\u4ee5\u901a\u8fc7\u6307\u5b9a\u5176\u5b8c\u6574\u8def\u5f84\u6765\u542f\u52a8\u5b83\u3002<\/p>\n<p><strong>\u5982\u4f55\u5904\u7406\u542f\u52a8\u684c\u9762\u7a0b\u5e8f\u65f6\u7684\u9519\u8bef\uff1f<\/strong><br \/>\u5728\u4f7f\u7528Python\u542f\u52a8\u684c\u9762\u7a0b\u5e8f\u65f6\uff0c\u53ef\u80fd\u4f1a\u9047\u5230\u5404\u79cd\u9519\u8bef\uff0c\u6bd4\u5982\u8def\u5f84\u4e0d\u6b63\u786e\u6216\u6743\u9650\u4e0d\u8db3\u3002\u53ef\u4ee5\u4f7f\u7528<code>try<\/code>\u548c<code>except<\/code>\u5757\u6765\u6355\u83b7\u548c\u5904\u7406\u8fd9\u4e9b\u5f02\u5e38\u3002\u4f8b\u5982\uff1a  <\/p>\n<pre><code class=\"language-python\">try:\n    os.startfile(&#39;C:\\\\Path\\\\To\\\\Your\\\\Program.exe&#39;)\nexcept Exception as e:\n    print(f&quot;\u542f\u52a8\u7a0b\u5e8f\u65f6\u53d1\u751f\u9519\u8bef: {e}&quot;)\n<\/code><\/pre>\n<p>\u8fd9\u79cd\u65b9\u5f0f\u80fd\u591f\u5e2e\u52a9\u60a8\u8c03\u8bd5\u548c\u627e\u5230\u95ee\u9898\u6240\u5728\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Python\u53ef\u4ee5\u901a\u8fc7\u591a\u4e2a\u65b9\u5f0f\u542f\u52a8\u684c\u9762\u7a0b\u5e8f\uff0c\u5305\u62ec\u4f7f\u7528subprocess\u6a21\u5757\u3001os\u6a21\u5757\u3001\u4ee5\u53ca\u7b2c\u4e09\u65b9\u5e93\u5982pyaut [&hellip;]","protected":false},"author":3,"featured_media":1173830,"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\/1173820"}],"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=1173820"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1173820\/revisions"}],"predecessor-version":[{"id":1173835,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1173820\/revisions\/1173835"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1173830"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1173820"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1173820"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1173820"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}