{"id":1112786,"date":"2025-01-08T17:41:45","date_gmt":"2025-01-08T09:41:45","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1112786.html"},"modified":"2025-01-08T17:41:47","modified_gmt":"2025-01-08T09:41:47","slug":"%e5%a6%82%e4%bd%95%e4%bd%bf%e7%94%a8python%e6%96%87%e4%bb%b6%e8%bf%90%e8%a1%8c%e5%8f%af%e6%89%a7%e8%a1%8c%e7%a8%8b%e5%ba%8f","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1112786.html","title":{"rendered":"\u5982\u4f55\u4f7f\u7528python\u6587\u4ef6\u8fd0\u884c\u53ef\u6267\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\/25074700\/af770ea8-9e51-43f8-8f5a-3d5c12e0f6f9.webp\" alt=\"\u5982\u4f55\u4f7f\u7528python\u6587\u4ef6\u8fd0\u884c\u53ef\u6267\u884c\u7a0b\u5e8f\" \/><\/p>\n<p><p> <strong>\u5728Python\u6587\u4ef6\u4e2d\u8fd0\u884c\u53ef\u6267\u884c\u7a0b\u5e8f\u7684\u65b9\u6cd5\u6709\u591a\u79cd\uff1a\u4f7f\u7528os.system\u3001subprocess.run\u3001Popen\u7b49\u65b9\u5f0f\u3002<\/strong><\/p>\n<\/p>\n<p><p>\u5176\u4e2d\uff0c\u4f7f\u7528subprocess\u6a21\u5757\u662f\u63a8\u8350\u7684\uff0c\u56e0\u4e3a\u5b83\u63d0\u4f9b\u4e86\u66f4\u591a\u7684\u63a7\u5236\u548c\u66f4\u597d\u7684\u5b89\u5168\u6027\u3002<strong>subprocess.run\u662f\u4e00\u4e2a\u5e38\u7528\u4e14\u7b80\u5355\u7684\u65b9\u6cd5\uff0c\u53ef\u4ee5\u65b9\u4fbf\u5730\u6267\u884c\u547d\u4ee4\u5e76\u6355\u83b7\u5176\u8f93\u51fa\u3002<\/strong><\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u4f7f\u7528subprocess.run\u8fd0\u884c\u53ef\u6267\u884c\u7a0b\u5e8f<\/h3>\n<\/p>\n<p><p>subprocess.run\u662fPython 3.5\u53ca\u4e4b\u540e\u7248\u672c\u63a8\u8350\u7684\u65b9\u5f0f\u3002\u5b83\u53ef\u4ee5\u6267\u884c\u547d\u4ee4\u5e76\u7b49\u5f85\u5176\u5b8c\u6210\uff0c\u540c\u65f6\u8fd4\u56de\u4e00\u4e2aCompletedProcess\u5b9e\u4f8b\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import subprocess<\/p>\n<p>result = subprocess.run([&#39;.\/my_executable&#39;, &#39;arg1&#39;, &#39;arg2&#39;], capture_output=True, text=True)<\/p>\n<p>print(&quot;Output:&quot;, result.stdout)<\/p>\n<p>print(&quot;Error:&quot;, result.stderr)<\/p>\n<p>print(&quot;Return Code:&quot;, result.returncode)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u4e0a\u9762\u7684\u4f8b\u5b50\u4e2d\uff0c<code>.\/my_executable<\/code> \u662f\u4f60\u8981\u8fd0\u884c\u7684\u53ef\u6267\u884c\u6587\u4ef6\uff0c<code>arg1<\/code> \u548c <code>arg2<\/code> \u662f\u4f20\u9012\u7ed9\u53ef\u6267\u884c\u6587\u4ef6\u7684\u53c2\u6570\u3002<code>capture_output=True<\/code> \u8868\u793a\u6355\u83b7\u6807\u51c6\u8f93\u51fa\u548c\u6807\u51c6\u9519\u8bef\uff0c<code>text=True<\/code> \u8868\u793a\u5c06\u8f93\u51fa\u4f5c\u4e3a\u5b57\u7b26\u4e32\u5904\u7406\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u4f7f\u7528os.system\u8fd0\u884c\u53ef\u6267\u884c\u7a0b\u5e8f<\/h3>\n<\/p>\n<p><p><code>os.system<\/code> \u662f\u4e00\u4e2a\u7b80\u5355\u7684\u65b9\u5f0f\uff0c\u4f46\u5b83\u4e0d\u63a8\u8350\u7528\u4e8e\u73b0\u4ee3Python\u4ee3\u7801\uff0c\u56e0\u4e3a\u5b83\u63d0\u4f9b\u7684\u63a7\u5236\u548c\u5b89\u5168\u6027\u8f83\u5dee\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import os<\/p>\n<p>os.system(&#39;.\/my_executable arg1 arg2&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u5f0f\u9002\u7528\u4e8e\u7b80\u5355\u7684\u573a\u666f\uff0c\u4f46\u4e0d\u9002\u7528\u4e8e\u9700\u8981\u6355\u83b7\u8f93\u51fa\u6216\u5904\u7406\u9519\u8bef\u7684\u60c5\u51b5\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001\u4f7f\u7528subprocess.Popen\u8fd0\u884c\u53ef\u6267\u884c\u7a0b\u5e8f<\/h3>\n<\/p>\n<p><p><code>subprocess.Popen<\/code> \u63d0\u4f9b\u4e86\u66f4\u5e95\u5c42\u7684\u63a5\u53e3\uff0c\u53ef\u4ee5\u7528\u4e8e\u66f4\u590d\u6742\u7684\u4ea4\u4e92\u573a\u666f\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import subprocess<\/p>\n<p>process = subprocess.Popen([&#39;.\/my_executable&#39;, &#39;arg1&#39;, &#39;arg2&#39;], stdout=subprocess.PIPE, stderr=subprocess.PIPE)<\/p>\n<p>stdout, stderr = process.communicate()<\/p>\n<p>print(&quot;Output:&quot;, stdout.decode())<\/p>\n<p>print(&quot;Error:&quot;, stderr.decode())<\/p>\n<p>print(&quot;Return Code:&quot;, process.returncode)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c<code>subprocess.Popen<\/code> \u542f\u52a8\u4e86\u4e00\u4e2a\u65b0\u7684\u8fdb\u7a0b\uff0c\u5e76\u901a\u8fc7 <code>communicate()<\/code> \u65b9\u6cd5\u4e0e\u5176\u4ea4\u4e92\u3002<code>stdout=subprocess.PIPE<\/code> \u548c <code>stderr=subprocess.PIPE<\/code> \u7528\u4e8e\u6355\u83b7\u6807\u51c6\u8f93\u51fa\u548c\u6807\u51c6\u9519\u8bef\u3002<\/p>\n<\/p>\n<p><h3>\u56db\u3001\u5904\u7406\u53ef\u6267\u884c\u7a0b\u5e8f\u7684\u8f93\u51fa\u548c\u9519\u8bef<\/h3>\n<\/p>\n<p><p>\u5728\u5b9e\u9645\u4f7f\u7528\u4e2d\uff0c\u5904\u7406\u53ef\u6267\u884c\u7a0b\u5e8f\u7684\u8f93\u51fa\u548c\u9519\u8bef\u662f\u975e\u5e38\u91cd\u8981\u7684\u3002\u53ef\u4ee5\u901a\u8fc7 <code>subprocess.run<\/code> \u7684 <code>stdout<\/code> \u548c <code>stderr<\/code> \u5c5e\u6027\u83b7\u53d6\u8f93\u51fa\u548c\u9519\u8bef\u4fe1\u606f\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import subprocess<\/p>\n<p>result = subprocess.run([&#39;.\/my_executable&#39;, &#39;arg1&#39;, &#39;arg2&#39;], capture_output=True, text=True)<\/p>\n<p>if result.returncode == 0:<\/p>\n<p>    print(&quot;Success:&quot;, result.stdout)<\/p>\n<p>else:<\/p>\n<p>    print(&quot;Error:&quot;, result.stderr)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u901a\u8fc7\u68c0\u67e5 <code>returncode<\/code> \u5c5e\u6027\uff0c\u53ef\u4ee5\u786e\u5b9a\u7a0b\u5e8f\u662f\u5426\u6210\u529f\u8fd0\u884c\uff0c\u5e76\u76f8\u5e94\u5730\u5904\u7406\u8f93\u51fa\u548c\u9519\u8bef\u3002<\/p>\n<\/p>\n<p><h3>\u4e94\u3001\u4f20\u9012\u73af\u5883\u53d8\u91cf<\/h3>\n<\/p>\n<p><p>\u5728\u8fd0\u884c\u53ef\u6267\u884c\u7a0b\u5e8f\u65f6\uff0c\u6709\u65f6\u9700\u8981\u4f20\u9012\u7279\u5b9a\u7684\u73af\u5883\u53d8\u91cf\u3002\u8fd9\u53ef\u4ee5\u901a\u8fc7 <code>subprocess.run<\/code> \u7684 <code>env<\/code> \u53c2\u6570\u5b9e\u73b0\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import subprocess<\/p>\n<p>import os<\/p>\n<p>my_env = os.environ.copy()<\/p>\n<p>my_env[&quot;MY_VARIABLE&quot;] = &quot;my_value&quot;<\/p>\n<p>result = subprocess.run([&#39;.\/my_executable&#39;, &#39;arg1&#39;, &#39;arg2&#39;], env=my_env, capture_output=True, text=True)<\/p>\n<p>print(&quot;Output:&quot;, result.stdout)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u6211\u4eec\u590d\u5236\u4e86\u5f53\u524d\u7684\u73af\u5883\u53d8\u91cf\uff0c\u5e76\u6dfb\u52a0\u4e86\u4e00\u4e2a\u65b0\u7684\u73af\u5883\u53d8\u91cf <code>MY_VARIABLE<\/code>\uff0c\u7136\u540e\u5728\u8fd0\u884c\u53ef\u6267\u884c\u7a0b\u5e8f\u65f6\u4f20\u9012\u4e86\u8fd9\u4e2a\u73af\u5883\u3002<\/p>\n<\/p>\n<p><h3>\u516d\u3001\u5904\u7406\u8d85\u65f6<\/h3>\n<\/p>\n<p><p>\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u53ef\u6267\u884c\u7a0b\u5e8f\u53ef\u80fd\u4f1a\u8fd0\u884c\u5f97\u5f88\u6162\u751a\u81f3\u6302\u8d77\u3002\u53ef\u4ee5\u901a\u8fc7 <code>subprocess.run<\/code> \u7684 <code>timeout<\/code> \u53c2\u6570\u8bbe\u7f6e\u8d85\u65f6\u65f6\u95f4\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import subprocess<\/p>\n<p>try:<\/p>\n<p>    result = subprocess.run([&#39;.\/my_executable&#39;, &#39;arg1&#39;, &#39;arg2&#39;], capture_output=True, text=True, timeout=10)<\/p>\n<p>    print(&quot;Output:&quot;, result.stdout)<\/p>\n<p>except subprocess.TimeoutExpired:<\/p>\n<p>    print(&quot;The process took too long to complete and was terminated.&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u5982\u679c\u53ef\u6267\u884c\u7a0b\u5e8f\u572810\u79d2\u5185\u6ca1\u6709\u5b8c\u6210\uff0c<code>subprocess.run<\/code> \u5c06\u629b\u51fa <code>TimeoutExpired<\/code> \u5f02\u5e38\u3002<\/p>\n<\/p>\n<p><h3>\u4e03\u3001\u5904\u7406\u8f93\u5165<\/h3>\n<\/p>\n<p><p>\u6709\u4e9b\u53ef\u6267\u884c\u7a0b\u5e8f\u53ef\u80fd\u9700\u8981\u4ece\u6807\u51c6\u8f93\u5165\u4e2d\u8bfb\u53d6\u6570\u636e\u3002\u53ef\u4ee5\u901a\u8fc7 <code>subprocess.run<\/code> \u7684 <code>input<\/code> \u53c2\u6570\u4f20\u9012\u8f93\u5165\u6570\u636e\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import subprocess<\/p>\n<p>result = subprocess.run([&#39;.\/my_executable&#39;], input=&#39;input data\\n&#39;, capture_output=True, text=True)<\/p>\n<p>print(&quot;Output:&quot;, result.stdout)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u6211\u4eec\u901a\u8fc7 <code>input<\/code> \u53c2\u6570\u4f20\u9012\u4e86\u8f93\u5165\u6570\u636e <code>input data\\n<\/code> \u7ed9\u53ef\u6267\u884c\u7a0b\u5e8f\u3002<\/p>\n<\/p>\n<p><h3>\u516b\u3001\u793a\u4f8b\uff1a\u8fd0\u884cPython\u811a\u672c<\/h3>\n<\/p>\n<p><p>\u9664\u4e86\u8fd0\u884c\u53ef\u6267\u884c\u6587\u4ef6\uff0c\u8fd8\u53ef\u4ee5\u8fd0\u884c\u5176\u4ed6Python\u811a\u672c\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import subprocess<\/p>\n<p>result = subprocess.run([&#39;python3&#39;, &#39;script.py&#39;, &#39;arg1&#39;, &#39;arg2&#39;], capture_output=True, text=True)<\/p>\n<p>print(&quot;Output:&quot;, result.stdout)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u6211\u4eec\u8fd0\u884c\u4e86\u4e00\u4e2a\u540d\u4e3a <code>script.py<\/code> \u7684Python\u811a\u672c\uff0c\u5e76\u4f20\u9012\u4e86\u53c2\u6570 <code>arg1<\/code> \u548c <code>arg2<\/code>\u3002<\/p>\n<\/p>\n<p><h3>\u4e5d\u3001\u793a\u4f8b\uff1a\u8fd0\u884cShell\u547d\u4ee4<\/h3>\n<\/p>\n<p><p>\u6709\u65f6\u5019\u9700\u8981\u8fd0\u884cshell\u547d\u4ee4\uff0c\u53ef\u4ee5\u901a\u8fc7 <code>shell=True<\/code> \u53c2\u6570\u5b9e\u73b0\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import subprocess<\/p>\n<p>result = subprocess.run(&#39;ls -l&#39;, shell=True, capture_output=True, text=True)<\/p>\n<p>print(&quot;Output:&quot;, result.stdout)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u6211\u4eec\u8fd0\u884c\u4e86\u4e00\u4e2a <code>ls -l<\/code> \u547d\u4ee4\u6765\u5217\u51fa\u5f53\u524d\u76ee\u5f55\u7684\u6587\u4ef6\u548c\u76ee\u5f55\u3002<\/p>\n<\/p>\n<p><h3>\u5341\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u4f7f\u7528Python\u6587\u4ef6\u8fd0\u884c\u53ef\u6267\u884c\u7a0b\u5e8f\u7684\u65b9\u6cd5\u6709\u591a\u79cd\uff0c\u5176\u4e2d <code>subprocess.run<\/code> \u662f\u63a8\u8350\u7684\u65b9\u5f0f\uff0c\u56e0\u4e3a\u5b83\u63d0\u4f9b\u4e86\u66f4\u591a\u7684\u63a7\u5236\u548c\u66f4\u597d\u7684\u5b89\u5168\u6027\u3002\u901a\u8fc7\u672c\u6587\u4ecb\u7ecd\u7684\u591a\u79cd\u65b9\u6cd5\u548c\u793a\u4f8b\uff0c\u53ef\u4ee5\u5e94\u5bf9\u5404\u79cd\u4e0d\u540c\u7684\u9700\u6c42\u548c\u573a\u666f\u3002\u65e0\u8bba\u662f\u7b80\u5355\u7684\u547d\u4ee4\u6267\u884c\u8fd8\u662f\u590d\u6742\u7684\u4ea4\u4e92\u5904\u7406\uff0c\u90fd\u53ef\u4ee5\u627e\u5230\u5408\u9002\u7684\u89e3\u51b3\u65b9\u6848\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u901a\u8fc7Python\u811a\u672c\u8c03\u7528\u5916\u90e8\u53ef\u6267\u884c\u7a0b\u5e8f\uff1f<\/strong><br \/>\u60a8\u53ef\u4ee5\u4f7f\u7528<code>subprocess<\/code>\u6a21\u5757\u6765\u8c03\u7528\u5916\u90e8\u53ef\u6267\u884c\u7a0b\u5e8f\u3002\u901a\u8fc7\u8be5\u6a21\u5757\uff0c\u60a8\u53ef\u4ee5\u8fd0\u884c\u547d\u4ee4\u5e76\u4e0e\u5176\u8fdb\u884c\u4ea4\u4e92\u3002\u793a\u4f8b\u4ee3\u7801\u5982\u4e0b\uff1a<\/p>\n<pre><code class=\"language-python\">import subprocess\n\n# \u8c03\u7528\u53ef\u6267\u884c\u7a0b\u5e8f\nresult = subprocess.run([&#39;your_executable&#39;, &#39;arg1&#39;, &#39;arg2&#39;], capture_output=True, text=True)\n\n# \u83b7\u53d6\u8f93\u51fa\nprint(result.stdout)\nprint(result.stderr)\n<\/code><\/pre>\n<p>\u901a\u8fc7\u8fd9\u79cd\u65b9\u5f0f\uff0c\u60a8\u53ef\u4ee5\u5c06\u53c2\u6570\u4f20\u9012\u7ed9\u53ef\u6267\u884c\u7a0b\u5e8f\uff0c\u5e76\u83b7\u53d6\u5176\u8f93\u51fa\u3002<\/p>\n<p><strong>\u5728Python\u4e2d\u5982\u4f55\u5904\u7406\u53ef\u6267\u884c\u7a0b\u5e8f\u7684\u8f93\u51fa\uff1f<\/strong><br \/>\u5728\u8c03\u7528\u53ef\u6267\u884c\u7a0b\u5e8f\u65f6\uff0c\u53ef\u4ee5\u901a\u8fc7<code>subprocess.run<\/code>\u7684<code>capture_output<\/code>\u53c2\u6570\u6765\u83b7\u53d6\u5176\u6807\u51c6\u8f93\u51fa\u548c\u6807\u51c6\u9519\u8bef\u3002\u8f93\u51fa\u4f1a\u4fdd\u5b58\u5728<code>result.stdout<\/code>\u548c<code>result.stderr<\/code>\u4e2d\uff0c\u4fbf\u4e8e\u540e\u7eed\u5904\u7406\u548c\u8c03\u8bd5\u3002<\/p>\n<p><strong>\u4f7f\u7528Python\u8fd0\u884c\u53ef\u6267\u884c\u7a0b\u5e8f\u65f6\u5982\u4f55\u5904\u7406\u9519\u8bef\uff1f<\/strong><br \/>\u5728\u6267\u884c\u53ef\u6267\u884c\u7a0b\u5e8f\u65f6\uff0c\u60a8\u53ef\u4ee5\u68c0\u67e5\u8fd4\u56de\u7684\u72b6\u6001\u7801\u4ee5\u786e\u5b9a\u7a0b\u5e8f\u662f\u5426\u6210\u529f\u8fd0\u884c\u3002\u72b6\u6001\u7801\u4e3a0\u901a\u5e38\u8868\u793a\u6210\u529f\uff0c\u5176\u4ed6\u503c\u5219\u8868\u793a\u51fa\u73b0\u9519\u8bef\u3002\u53ef\u4ee5\u6839\u636e\u9700\u8981\u6355\u83b7\u5f02\u5e38\u5e76\u5904\u7406\u9519\u8bef\u4fe1\u606f\uff1a<\/p>\n<pre><code class=\"language-python\">if result.returncode != 0:\n    print(f&quot;Error: {result.stderr}&quot;)\nelse:\n    print(&quot;Program executed successfully.&quot;)\n<\/code><\/pre>\n<p>\u8fd9\u79cd\u65b9\u5f0f\u786e\u4fdd\u60a8\u80fd\u591f\u53ca\u65f6\u53d1\u73b0\u5e76\u5904\u7406\u6f5c\u5728\u95ee\u9898\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u6587\u4ef6\u4e2d\u8fd0\u884c\u53ef\u6267\u884c\u7a0b\u5e8f\u7684\u65b9\u6cd5\u6709\u591a\u79cd\uff1a\u4f7f\u7528os.system\u3001subprocess.run\u3001Pope [&hellip;]","protected":false},"author":3,"featured_media":1112789,"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\/1112786"}],"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=1112786"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1112786\/revisions"}],"predecessor-version":[{"id":1112790,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1112786\/revisions\/1112790"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1112789"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1112786"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1112786"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1112786"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}