{"id":967580,"date":"2024-12-27T04:58:34","date_gmt":"2024-12-26T20:58:34","guid":{"rendered":""},"modified":"2024-12-27T04:58:36","modified_gmt":"2024-12-26T20:58:36","slug":"python%e5%9c%a8code%e5%a6%82%e4%bd%95%e7%bc%96%e8%af%91","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/967580.html","title":{"rendered":"python\u5728code\u5982\u4f55\u7f16\u8bd1"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24182801\/eba05a2a-5f12-4dfb-b8a8-00df243d9f31.webp\" alt=\"python\u5728code\u5982\u4f55\u7f16\u8bd1\" \/><\/p>\n<p><p> <strong>Python\u4ee3\u7801\u53ef\u4ee5\u901a\u8fc7\u89e3\u91ca\u5668\u76f4\u63a5\u6267\u884c\u3001\u65e0\u9700\u7f16\u8bd1\u3001\u4f46\u53ef\u4ee5\u901a\u8fc7\u5de5\u5177\u5c06\u5176\u7f16\u8bd1\u4e3a\u5b57\u8282\u7801\u6216\u53ef\u6267\u884c\u6587\u4ef6<\/strong>\u3002Python\u662f\u4e00\u79cd\u89e3\u91ca\u578b\u8bed\u8a00\uff0c\u8fd9\u610f\u5473\u7740Python\u4ee3\u7801\u901a\u5e38\u4e0d\u9700\u8981\u50cfC\u6216C++\u90a3\u6837\u8fdb\u884c\u7f16\u8bd1\u3002Python\u89e3\u91ca\u5668\u4f1a\u5728\u8fd0\u884c\u65f6\u5c06Python\u4ee3\u7801\u8f6c\u6362\u4e3a\u673a\u5668\u8bed\u8a00\u5e76\u6267\u884c\u3002\u7136\u800c\uff0c\u4e3a\u4e86\u63d0\u9ad8\u6267\u884c\u6548\u7387\u6216\u5206\u53d1\u7a0b\u5e8f\uff0c\u6709\u65f6\u9700\u8981\u5c06Python\u4ee3\u7801\u7f16\u8bd1\u6210\u5b57\u8282\u7801\u6216\u53ef\u6267\u884c\u6587\u4ef6\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u79cd\u5e38\u89c1\u7684\u65b9\u6cd5\u662f\u4f7f\u7528Python\u81ea\u5e26\u7684\u5de5\u5177<code>py_compile<\/code>\u6765\u5c06Python\u6e90\u4ee3\u7801\u7f16\u8bd1\u6210\u5b57\u8282\u7801\u6587\u4ef6\uff08.pyc\uff09\u3002\u5b57\u8282\u7801\u6587\u4ef6\u53ef\u4ee5\u5728\u89e3\u91ca\u5668\u4e2d\u8fd0\u884c\uff0c\u5e76\u4e14\u901a\u5e38\u4f1a\u6bd4\u6e90\u4ee3\u7801\u52a0\u8f7d\u66f4\u5feb\uff0c\u56e0\u4e3a\u89e3\u6790\u6b65\u9aa4\u5df2\u7ecf\u5b8c\u6210\u3002\u53e6\u4e00\u79cd\u65b9\u6cd5\u662f\u4f7f\u7528\u7b2c\u4e09\u65b9\u5de5\u5177\u5982PyInstaller\u6216cx_Freeze\uff0c\u5c06Python\u4ee3\u7801\u6253\u5305\u6210\u72ec\u7acb\u7684\u53ef\u6267\u884c\u6587\u4ef6\u3002\u8fd9\u79cd\u65b9\u5f0f\u7279\u522b\u9002\u5408\u9700\u8981\u5728\u6ca1\u6709Python\u89e3\u91ca\u5668\u7684\u73af\u5883\u4e2d\u8fd0\u884cPython\u7a0b\u5e8f\u7684\u60c5\u51b5\u3002<\/p>\n<\/p>\n<p><h2>\u4e00\u3001Python\u4ee3\u7801\u7684\u89e3\u91ca\u4e0e\u6267\u884c<\/h2>\n<\/p>\n<p><p>Python\u662f\u4e00\u79cd\u89e3\u91ca\u578b\u8bed\u8a00\uff0c\u8fd9\u610f\u5473\u7740Python\u4ee3\u7801\u5728\u6267\u884c\u65f6\u5e76\u4e0d\u9700\u8981\u9884\u5148\u7f16\u8bd1\u4e3a\u673a\u5668\u7801\u3002\u76f8\u53cd\uff0cPython\u89e3\u91ca\u5668\u4f1a\u5728\u8fd0\u884c\u65f6\u5c06\u4ee3\u7801\u9010\u884c\u7ffb\u8bd1\u6210\u673a\u5668\u7801\u5e76\u6267\u884c\u3002\u8fd9\u79cd\u65b9\u5f0f\u4f7fPython\u975e\u5e38\u7075\u6d3b\uff0c\u4fbf\u4e8e\u8c03\u8bd5\u548c\u5f00\u53d1\u3002<\/p>\n<\/p>\n<p><h3>Python\u89e3\u91ca\u5668\u7684\u5de5\u4f5c\u539f\u7406<\/h3>\n<\/p>\n<p><p>Python\u89e3\u91ca\u5668\u5c06\u6e90\u4ee3\u7801\u7f16\u8bd1\u6210\u5b57\u8282\u7801\uff0c\u7136\u540e\u5728Python\u865a\u62df\u673a\uff08PVM\uff09\u4e0a\u8fd0\u884c\u3002\u5b57\u8282\u7801\u662f\u4e00\u79cd\u4e2d\u95f4\u5f62\u5f0f\uff0c\u4ecb\u4e8e\u9ad8\u9636\u8bed\u8a00\u548c\u673a\u5668\u8bed\u8a00\u4e4b\u95f4\u3002\u8fd9\u79cd\u65b9\u5f0f\u4f7f\u5f97Python\u53ef\u4ee5\u8de8\u5e73\u53f0\u8fd0\u884c\uff0c\u56e0\u4e3a\u5b57\u8282\u7801\u4e0e\u64cd\u4f5c\u7cfb\u7edf\u65e0\u5173\u3002<\/p>\n<\/p>\n<p><h3>\u4f7f\u7528REPL\u6267\u884cPython\u4ee3\u7801<\/h3>\n<\/p>\n<p><p>Python\u63d0\u4f9b\u4e86\u4e00\u4e2a\u4ea4\u4e92\u5f0f\u89e3\u91ca\u5668\uff08REPL\uff09\uff0c\u5141\u8bb8\u7528\u6237\u5728\u547d\u4ee4\u884c\u4e2d\u76f4\u63a5\u8f93\u5165\u548c\u6267\u884cPython\u4ee3\u7801\u3002\u8fd9\u5bf9\u4e8e\u5b66\u4e60\u548c\u5b9e\u9a8c\u975e\u5e38\u6709\u7528\uff0c\u56e0\u4e3a\u60a8\u53ef\u4ee5\u7acb\u5373\u770b\u5230\u4ee3\u7801\u7684\u6267\u884c\u7ed3\u679c\u3002<\/p>\n<\/p>\n<p><h2>\u4e8c\u3001\u5c06Python\u4ee3\u7801\u7f16\u8bd1\u4e3a\u5b57\u8282\u7801<\/h2>\n<\/p>\n<p><p>\u867d\u7136Python\u4ee3\u7801\u4e0d\u9700\u8981\u663e\u5f0f\u7f16\u8bd1\uff0c\u4f46\u53ef\u4ee5\u5c06\u5176\u7f16\u8bd1\u4e3a\u5b57\u8282\u7801\u4ee5\u63d0\u9ad8\u52a0\u8f7d\u901f\u5ea6\u3002Python\u81ea\u5e26\u7684<code>py_compile<\/code>\u6a21\u5757\u53ef\u4ee5\u5b8c\u6210\u8fd9\u9879\u5de5\u4f5c\u3002<\/p>\n<\/p>\n<p><h3>\u4f7f\u7528py_compile\u6a21\u5757<\/h3>\n<\/p>\n<p><p><code>py_compile<\/code>\u6a21\u5757\u53ef\u4ee5\u5c06Python\u6e90\u6587\u4ef6\u7f16\u8bd1\u4e3a\u5b57\u8282\u7801\u6587\u4ef6\u3002\u8fd9\u79cd\u5b57\u8282\u7801\u6587\u4ef6\u901a\u5e38\u4ee5<code>.pyc<\/code>\u4e3a\u540e\u7f00\uff0c\u5e76\u5b58\u50a8\u5728<code>__pycache__<\/code>\u76ee\u5f55\u4e2d\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import py_compile<\/p>\n<p>py_compile.compile(&#39;example.py&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4f18\u5316\u5b57\u8282\u7801\u7f16\u8bd1<\/h3>\n<\/p>\n<p><p>Python\u8fd8\u63d0\u4f9b\u4e86<code>compileall<\/code>\u6a21\u5757\uff0c\u53ef\u4ee5\u6279\u91cf\u7f16\u8bd1\u76ee\u5f55\u4e2d\u7684\u6240\u6709Python\u6587\u4ef6\u3002\u4f7f\u7528<code>-O<\/code>\u9009\u9879\u53ef\u4ee5\u751f\u6210\u4f18\u5316\u7684\u5b57\u8282\u7801\u6587\u4ef6\uff08<code>.pyo<\/code>\uff09\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">python -m compileall .<\/p>\n<p>python -OO -m compileall .<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h2>\u4e09\u3001\u5c06Python\u4ee3\u7801\u6253\u5305\u4e3a\u53ef\u6267\u884c\u6587\u4ef6<\/h2>\n<\/p>\n<p><p>\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u60a8\u53ef\u80fd\u5e0c\u671b\u5c06Python\u7a0b\u5e8f\u6253\u5305\u4e3a\u53ef\u6267\u884c\u6587\u4ef6\uff0c\u4ee5\u4fbf\u5728\u6ca1\u6709Python\u89e3\u91ca\u5668\u7684\u7cfb\u7edf\u4e0a\u8fd0\u884c\u3002PyInstaller\u548ccx_Freeze\u662f\u4e24\u79cd\u5e38\u7528\u7684\u5de5\u5177\u3002<\/p>\n<\/p>\n<p><h3>\u4f7f\u7528PyInstaller<\/h3>\n<\/p>\n<p><p>PyInstaller\u662f\u4e00\u4e2a\u6d41\u884c\u7684\u6253\u5305\u5de5\u5177\uff0c\u53ef\u4ee5\u5c06Python\u5e94\u7528\u7a0b\u5e8f\u6253\u5305\u4e3a\u72ec\u7acb\u7684\u53ef\u6267\u884c\u6587\u4ef6\u3002\u5b83\u652f\u6301Windows\u3001macOS\u548cLinux\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install pyinstaller<\/p>\n<p>pyinstaller --onefile example.py<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4f7f\u7528<code>--onefile<\/code>\u9009\u9879\u53ef\u4ee5\u5c06\u6240\u6709\u4f9d\u8d56\u6253\u5305\u6210\u4e00\u4e2a\u5355\u4e00\u7684\u53ef\u6267\u884c\u6587\u4ef6\u3002<\/p>\n<\/p>\n<p><h3>\u4f7f\u7528cx_Freeze<\/h3>\n<\/p>\n<p><p>cx_Freeze\u662f\u53e6\u4e00\u4e2a\u7528\u4e8e\u6253\u5305Python\u7a0b\u5e8f\u7684\u5de5\u5177\uff0c\u5c24\u5176\u9002\u5408\u9700\u8981\u5728Windows\u548cLinux\u4e0a\u8fd0\u884c\u7684\u5e94\u7528\u7a0b\u5e8f\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install cx_Freeze<\/p>\n<p>cxfreeze example.py --target-dir dist<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>cx_Freeze\u53ef\u4ee5\u6839\u636e\u9700\u8981\u81ea\u5b9a\u4e49\u6253\u5305\u8fc7\u7a0b\uff0c\u4f8b\u5982\u6307\u5b9a\u5305\u542b\u7684\u6a21\u5757\u548c\u6587\u4ef6\u3002<\/p>\n<\/p>\n<p><h2>\u56db\u3001\u63d0\u9ad8Python\u7a0b\u5e8f\u7684\u6027\u80fd<\/h2>\n<\/p>\n<p><p>\u867d\u7136Python\u662f\u4e00\u79cd\u89e3\u91ca\u578b\u8bed\u8a00\uff0c\u4f46\u901a\u8fc7\u4e00\u4e9b\u6280\u672f\u53ef\u4ee5\u63d0\u9ad8\u5176\u6027\u80fd\uff0c\u5305\u62ec\u5b57\u8282\u7801\u4f18\u5316\u3001\u4f7f\u7528C\u6269\u5c55\u7b49\u3002<\/p>\n<\/p>\n<p><h3>\u4f7f\u7528Cython\u52a0\u901fPython\u4ee3\u7801<\/h3>\n<\/p>\n<p><p>Cython\u662f\u4e00\u79cd\u7f16\u8bd1\u5668\uff0c\u53ef\u4ee5\u5c06Python\u4ee3\u7801\u8f6c\u6362\u4e3aC\u4ee3\u7801\uff0c\u4ece\u800c\u751f\u6210\u66f4\u9ad8\u6548\u7684\u53ef\u6267\u884c\u6587\u4ef6\u3002Cython\u7279\u522b\u9002\u5408\u9700\u8981\u5bc6\u96c6\u8ba1\u7b97\u7684\u573a\u666f\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install cython<\/p>\n<p>cythonize -i example.py<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u5229\u7528\u591a\u7ebf\u7a0b\u548c\u591a\u8fdb\u7a0b<\/h3>\n<\/p>\n<p><p>Python\u7684GIL\u9650\u5236\u4e86\u591a\u7ebf\u7a0b\u7684\u6027\u80fd\uff0c\u4f46\u901a\u8fc7\u591a\u8fdb\u7a0b\u6a21\u5757\uff0c\u53ef\u4ee5\u5145\u5206\u5229\u7528\u591a\u6838CPU\u7684\u80fd\u529b\u6765\u63d0\u9ad8\u7a0b\u5e8f\u6027\u80fd\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from multiprocessing import Pool<\/p>\n<p>def worker(x):<\/p>\n<p>    return x * x<\/p>\n<p>with Pool(5) as p:<\/p>\n<p>    print(p.map(worker, [1, 2, 3, 4, 5]))<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h2>\u4e94\u3001Python\u4ee3\u7801\u7684\u90e8\u7f72\u4e0e\u5206\u53d1<\/h2>\n<\/p>\n<p><p>\u5c06Python\u4ee3\u7801\u90e8\u7f72\u5230\u751f\u4ea7\u73af\u5883\u901a\u5e38\u6d89\u53ca\u591a\u4e2a\u6b65\u9aa4\uff0c\u5305\u62ec\u4f9d\u8d56\u7ba1\u7406\u3001\u73af\u5883\u914d\u7f6e\u7b49\u3002<\/p>\n<\/p>\n<p><h3>\u4f7f\u7528\u865a\u62df\u73af\u5883\u7ba1\u7406\u4f9d\u8d56<\/h3>\n<\/p>\n<p><p>\u865a\u62df\u73af\u5883\u53ef\u4ee5\u9694\u79bb\u9879\u76ee\u7684\u4f9d\u8d56\uff0c\u786e\u4fdd\u5728\u4e0d\u540c\u73af\u5883\u4e2d\u8fd0\u884c\u7684\u4e00\u81f4\u6027\u3002<code>venv<\/code>\u662fPython\u5185\u7f6e\u7684\u865a\u62df\u73af\u5883\u7ba1\u7406\u5de5\u5177\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">python -m venv myenv<\/p>\n<p>source myenv\/bin\/activate  # \u6fc0\u6d3b\u865a\u62df\u73af\u5883<\/p>\n<p>pip install -r requirements.txt<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4f7f\u7528Docker\u5bb9\u5668\u5316Python\u5e94\u7528<\/h3>\n<\/p>\n<p><p>Docker\u53ef\u4ee5\u5c06Python\u5e94\u7528\u53ca\u5176\u6240\u6709\u4f9d\u8d56\u6253\u5305\u5230\u4e00\u4e2a\u8f7b\u91cf\u7ea7\u7684\u5bb9\u5668\u4e2d\uff0c\u786e\u4fdd\u5728\u4efb\u4f55\u73af\u5883\u4e2d\u90fd\u53ef\u4ee5\u4e00\u81f4\u5730\u8fd0\u884c\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-dockerfile\"># Dockerfile\u793a\u4f8b<\/p>\n<p>FROM python:3.9-slim<\/p>\n<p>WORKDIR \/app<\/p>\n<p>COPY . \/app<\/p>\n<p>RUN pip install -r requirements.txt<\/p>\n<p>CMD [&quot;python&quot;, &quot;example.py&quot;]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u901a\u8fc7\u8fd9\u4e9b\u5de5\u5177\u548c\u6280\u672f\uff0c\u60a8\u53ef\u4ee5\u5c06Python\u7a0b\u5e8f\u7f16\u8bd1\u3001\u4f18\u5316\u548c\u90e8\u7f72\u5230\u5404\u79cd\u73af\u5883\u4e2d\uff0c\u786e\u4fdd\u5176\u9ad8\u6548\u8fd0\u884c\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u7f16\u8bd1\u4ee3\u7801\uff1f<\/strong><br \/>Python \u662f\u4e00\u79cd\u89e3\u91ca\u578b\u8bed\u8a00\uff0c\u901a\u5e38\u4e0d\u9700\u8981\u7f16\u8bd1\u3002\u4f46\u5982\u679c\u4f60\u5e0c\u671b\u5c06 Python \u4ee3\u7801\u8f6c\u6362\u4e3a\u5b57\u8282\u7801\uff0c\u53ef\u4ee5\u4f7f\u7528 <code>compile()<\/code> \u51fd\u6570\u3002\u8be5\u51fd\u6570\u53ef\u4ee5\u5c06\u6e90\u4ee3\u7801\u7f16\u8bd1\u6210\u53ef\u6267\u884c\u7684\u5b57\u8282\u7801\u5bf9\u8c61\u3002\u4f7f\u7528\u65b9\u5f0f\u5982\u4e0b\uff1a  <\/p>\n<pre><code class=\"language-python\">code = &quot;print(&#39;Hello, World!&#39;)&quot;\ncompiled_code = compile(code, &#39;&lt;string&gt;&#39;, &#39;exec&#39;)\nexec(compiled_code)\n<\/code><\/pre>\n<p>\u8fd9\u6837\uff0c\u4f60\u7684\u4ee3\u7801\u5c31\u4f1a\u88ab\u7f16\u8bd1\u5e76\u6267\u884c\u3002<\/p>\n<p><strong>\u5728Python\u4e2d\u7f16\u8bd1\u4ee3\u7801\u6709\u4ec0\u4e48\u597d\u5904\uff1f<\/strong><br \/>\u7f16\u8bd1\u4ee3\u7801\u53ef\u4ee5\u63d0\u9ad8\u6267\u884c\u6548\u7387\uff0c\u7279\u522b\u662f\u5728\u5927\u578b\u9879\u76ee\u4e2d\u3002\u901a\u8fc7\u5c06\u4ee3\u7801\u7f16\u8bd1\u4e3a\u5b57\u8282\u7801\uff0cPython \u89e3\u91ca\u5668\u53ef\u4ee5\u66f4\u5feb\u5730\u6267\u884c\u4ee3\u7801\u3002\u6b64\u5916\uff0c\u7f16\u8bd1\u540e\u7684\u4ee3\u7801\u8fd8\u53ef\u4ee5\u4fdd\u62a4\u6e90\u4ee3\u7801\uff0c\u4f7f\u5176\u4e0d\u6613\u88ab\u76f4\u63a5\u67e5\u770b\u3002<\/p>\n<p><strong>\u6709\u6ca1\u6709\u5de5\u5177\u53ef\u4ee5\u5e2e\u52a9\u6211\u7f16\u8bd1Python\u4ee3\u7801\uff1f<\/strong><br \/>\u6709\u8bb8\u591a\u5de5\u5177\u53ef\u4ee5\u5e2e\u52a9\u4f60\u5c06 Python \u4ee3\u7801\u7f16\u8bd1\u6210\u53ef\u6267\u884c\u6587\u4ef6\u3002\u4f8b\u5982\uff0c<code>PyInstaller<\/code> \u548c <code>cx_Freeze<\/code> \u662f\u4e24\u4e2a\u6d41\u884c\u7684\u9009\u62e9\u3002\u5b83\u4eec\u53ef\u4ee5\u5c06 Python \u7a0b\u5e8f\u6253\u5305\u6210\u72ec\u7acb\u7684\u53ef\u6267\u884c\u6587\u4ef6\uff0c\u65b9\u4fbf\u5206\u53d1\u548c\u8fd0\u884c\u3002\u4f7f\u7528\u8fd9\u4e9b\u5de5\u5177\uff0c\u4f60\u53ea\u9700\u7b80\u5355\u7684\u547d\u4ee4\u884c\u64cd\u4f5c\uff0c\u5373\u53ef\u521b\u5efa\u53ef\u6267\u884c\u6587\u4ef6\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Python\u4ee3\u7801\u53ef\u4ee5\u901a\u8fc7\u89e3\u91ca\u5668\u76f4\u63a5\u6267\u884c\u3001\u65e0\u9700\u7f16\u8bd1\u3001\u4f46\u53ef\u4ee5\u901a\u8fc7\u5de5\u5177\u5c06\u5176\u7f16\u8bd1\u4e3a\u5b57\u8282\u7801\u6216\u53ef\u6267\u884c\u6587\u4ef6\u3002Python\u662f\u4e00 [&hellip;]","protected":false},"author":3,"featured_media":967585,"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\/967580"}],"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=967580"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/967580\/revisions"}],"predecessor-version":[{"id":967587,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/967580\/revisions\/967587"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/967585"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=967580"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=967580"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=967580"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}