{"id":1066338,"date":"2024-12-31T16:25:27","date_gmt":"2024-12-31T08:25:27","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1066338.html"},"modified":"2024-12-31T16:25:31","modified_gmt":"2024-12-31T08:25:31","slug":"python%e7%a8%8b%e5%ba%8f%e5%a6%82%e4%bd%95%e5%9c%a8%e5%85%b6%e4%bb%96%e7%94%b5%e8%84%91%e8%bf%90%e8%a1%8c","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1066338.html","title":{"rendered":"python\u7a0b\u5e8f\u5982\u4f55\u5728\u5176\u4ed6\u7535\u8111\u8fd0\u884c"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-docs.pingcode.com\/wp-content\/uploads\/2024\/12\/03435dc4-d430-4d47-a8dc-b04c44090198.webp?x-oss-process=image\/auto-orient,1\/format,webp\" alt=\"python\u7a0b\u5e8f\u5982\u4f55\u5728\u5176\u4ed6\u7535\u8111\u8fd0\u884c\" \/><\/p>\n<p><p> <strong>Python\u7a0b\u5e8f\u5982\u4f55\u5728\u5176\u4ed6\u7535\u8111\u8fd0\u884c<\/strong><\/p>\n<\/p>\n<p><p><strong>Python\u7a0b\u5e8f\u5728\u5176\u4ed6\u7535\u8111\u8fd0\u884c\u7684\u5173\u952e\u6b65\u9aa4\u5305\u62ec\uff1a\u5b89\u88c5Python\u89e3\u91ca\u5668\u3001\u786e\u4fdd\u4f9d\u8d56\u5305\u4e00\u81f4\u3001\u4f7f\u7528\u865a\u62df\u73af\u5883\u3001\u6253\u5305\u6210\u53ef\u6267\u884c\u6587\u4ef6\u3001\u8de8\u5e73\u53f0\u517c\u5bb9\u3002\u8fd9\u4e9b\u6b65\u9aa4\u786e\u4fdd\u4e86Python\u7a0b\u5e8f\u80fd\u591f\u5728\u4e0d\u540c\u7684\u7535\u8111\u4e0a\u65e0\u7f1d\u8fd0\u884c\u3002<\/strong><\/p>\n<\/p>\n<p><p>\u4e00\u3001\u5b89\u88c5Python\u89e3\u91ca\u5668<\/p>\n<\/p>\n<p><p>\u8981\u5728\u53e6\u4e00\u53f0\u7535\u8111\u4e0a\u8fd0\u884cPython\u7a0b\u5e8f\uff0c\u9996\u5148\u9700\u8981\u786e\u4fdd\u76ee\u6807\u7535\u8111\u4e0a\u5b89\u88c5\u4e86Python\u89e3\u91ca\u5668\u3002Python\u89e3\u91ca\u5668\u662fPython\u4ee3\u7801\u7684\u8fd0\u884c\u73af\u5883\uff0c\u5b83\u5c06Python\u4ee3\u7801\u8f6c\u6362\u4e3a\u673a\u5668\u53ef\u4ee5\u7406\u89e3\u7684\u8bed\u8a00\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u4e0b\u8f7d\u4e0e\u5b89\u88c5\uff1a<\/strong><\/p>\n<\/p>\n<ul>\n<li>\u4ece\u5b98\u65b9\u7f51\u7ad9\uff08<a href=\"https:\/\/www.python.org\/%EF%BC%89%E4%B8%8B%E8%BD%BDPython%E8%A7%A3%E9%87%8A%E5%99%A8%E7%9A%84%E6%9C%80%E6%96%B0%E7%89%88%E6%9C%AC%E3%80%82\">https:\/\/www.python.org\/\uff09\u4e0b\u8f7dPython\u89e3\u91ca\u5668\u7684\u6700\u65b0\u7248\u672c\u3002<\/a><\/li>\n<li>\u5b89\u88c5\u8fc7\u7a0b\u4e2d\uff0c\u52fe\u9009\u201cAdd Python to PATH\u201d\u9009\u9879\uff0c\u4ee5\u4fbf\u5728\u547d\u4ee4\u884c\u4e2d\u76f4\u63a5\u4f7f\u7528Python\u547d\u4ee4\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u9a8c\u8bc1\u5b89\u88c5\uff1a<\/strong><\/p>\n<\/p>\n<ul>\n<li>\u6253\u5f00\u547d\u4ee4\u884c\u6216\u7ec8\u7aef\uff0c\u8f93\u5165<code>python --version<\/code>\u6216<code>python3 --version<\/code>\uff0c\u68c0\u67e5\u662f\u5426\u6b63\u786e\u5b89\u88c5\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p><p>\u4e8c\u3001\u786e\u4fdd\u4f9d\u8d56\u5305\u4e00\u81f4<\/p>\n<\/p>\n<p><p>Python\u7a0b\u5e8f\u901a\u5e38\u4f9d\u8d56\u4e8e\u7b2c\u4e09\u65b9\u5e93\u548c\u6a21\u5757\u3002\u56e0\u6b64\uff0c\u5728\u53e6\u4e00\u53f0\u7535\u8111\u4e0a\u8fd0\u884c\u65f6\uff0c\u5fc5\u987b\u786e\u4fdd\u8fd9\u4e9b\u4f9d\u8d56\u5305\u7684\u4e00\u81f4\u6027\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u4f7f\u7528requirements.txt\uff1a<\/strong><\/p>\n<\/p>\n<ul>\n<li>\u5728\u5f00\u53d1\u73af\u5883\u4e2d\uff0c\u4f7f\u7528<code>pip freeze &gt; requirements.txt<\/code>\u547d\u4ee4\u751f\u6210\u5f53\u524d\u73af\u5883\u4e2d\u7684\u4f9d\u8d56\u5305\u5217\u8868\u3002<\/li>\n<li>\u5728\u76ee\u6807\u7535\u8111\u4e0a\uff0c\u4f7f\u7528<code>pip install -r requirements.txt<\/code>\u547d\u4ee4\u5b89\u88c5\u6240\u6709\u4f9d\u8d56\u5305\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u624b\u52a8\u5b89\u88c5\uff1a<\/strong><\/p>\n<\/p>\n<ul>\n<li>\u5982\u679c\u672a\u4f7f\u7528requirements.txt\uff0c\u53ef\u4ee5\u624b\u52a8\u5b89\u88c5\u6240\u9700\u7684\u5305\u3002\u4f8b\u5982\uff0c<code>pip install numpy pandas matplotlib<\/code>\u7b49\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p><p>\u4e09\u3001\u4f7f\u7528\u865a\u62df\u73af\u5883<\/p>\n<\/p>\n<p><p>\u865a\u62df\u73af\u5883\u53ef\u4ee5\u9694\u79bb\u4e0d\u540c\u9879\u76ee\u7684\u4f9d\u8d56\u5305\uff0c\u907f\u514d\u7248\u672c\u51b2\u7a81\u3002\u4f7f\u7528\u865a\u62df\u73af\u5883\u53ef\u4ee5\u786e\u4fdd\u5728\u4e0d\u540c\u7535\u8111\u4e0a\u8fd0\u884c\u65f6\uff0c\u4f9d\u8d56\u5305\u7248\u672c\u7684\u4e00\u81f4\u6027\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u521b\u5efa\u865a\u62df\u73af\u5883\uff1a<\/strong><\/p>\n<\/p>\n<ul>\n<li>\u4f7f\u7528\u547d\u4ee4<code>python -m venv myenv<\/code>\u521b\u5efa\u865a\u62df\u73af\u5883\u3002<\/li>\n<li>\u6fc0\u6d3b\u865a\u62df\u73af\u5883\uff1aWindows\u7cfb\u7edf\u4f7f\u7528<code>myenv\\Scripts\\activate<\/code>\uff0cLinux\u548cmacOS\u7cfb\u7edf\u4f7f\u7528<code>source myenv\/bin\/activate<\/code>\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u5b89\u88c5\u4f9d\u8d56\u5305\uff1a<\/strong><\/p>\n<\/p>\n<ul>\n<li>\u5728\u6fc0\u6d3b\u7684\u865a\u62df\u73af\u5883\u4e2d\uff0c\u4f7f\u7528<code>pip install -r requirements.txt<\/code>\u5b89\u88c5\u4f9d\u8d56\u5305\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p><p>\u56db\u3001\u6253\u5305\u6210\u53ef\u6267\u884c\u6587\u4ef6<\/p>\n<\/p>\n<p><p>\u5982\u679c\u5e0c\u671b\u76ee\u6807\u7535\u8111\u65e0\u9700\u5b89\u88c5Python\u89e3\u91ca\u5668\u5373\u53ef\u8fd0\u884cPython\u7a0b\u5e8f\uff0c\u53ef\u4ee5\u5c06\u7a0b\u5e8f\u6253\u5305\u6210\u53ef\u6267\u884c\u6587\u4ef6\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u4f7f\u7528PyInstaller\uff1a<\/strong><\/p>\n<\/p>\n<ul>\n<li>\u5b89\u88c5PyInstaller\uff1a<code>pip install pyinstaller<\/code>\u3002<\/li>\n<li>\u6253\u5305\u7a0b\u5e8f\uff1a<code>pyinstaller --onefile your_script.py<\/code>\u3002\u8fd9\u4f1a\u5728dist\u76ee\u5f55\u4e0b\u751f\u6210\u4e00\u4e2a\u53ef\u6267\u884c\u6587\u4ef6\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u5176\u4ed6\u5de5\u5177\uff1a<\/strong><\/p>\n<\/p>\n<ul>\n<li>cx_Freeze\u3001Py2exe\u7b49\u5de5\u5177\u4e5f\u53ef\u4ee5\u7528\u4e8e\u5c06Python\u811a\u672c\u6253\u5305\u6210\u53ef\u6267\u884c\u6587\u4ef6\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p><p>\u4e94\u3001\u8de8\u5e73\u53f0\u517c\u5bb9<\/p>\n<\/p>\n<p><p>\u786e\u4fddPython\u7a0b\u5e8f\u5728\u4e0d\u540c\u64cd\u4f5c\u7cfb\u7edf\u4e0a\u8fd0\u884c\u65f6\u7684\u517c\u5bb9\u6027\u662f\u5173\u952e\u3002\u9700\u8981\u6ce8\u610f\u6587\u4ef6\u8def\u5f84\u3001\u7cfb\u7edf\u8c03\u7528\u7b49\u65b9\u9762\u7684\u5dee\u5f02\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u6587\u4ef6\u8def\u5f84\uff1a<\/strong><\/p>\n<\/p>\n<ul>\n<li>\u4f7f\u7528os.path\u6a21\u5757\u5904\u7406\u6587\u4ef6\u8def\u5f84\uff0c\u4ee5\u786e\u4fdd\u5728\u4e0d\u540c\u64cd\u4f5c\u7cfb\u7edf\u4e0a\u7684\u4e00\u81f4\u6027\u3002\u4f8b\u5982\uff0c<code>os.path.join(&#39;folder&#39;, &#39;file.txt&#39;)<\/code>\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u7cfb\u7edf\u8c03\u7528\uff1a<\/strong><\/p>\n<\/p>\n<ul>\n<li>\u4f7f\u7528os\u6a21\u5757\u4e2d\u7684\u8de8\u5e73\u53f0\u65b9\u6cd5\u3002\u4f8b\u5982\uff0c<code>os.system()<\/code>\u3001<code>os.rename()<\/code>\u7b49\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p><p>\u516d\u3001\u5e38\u89c1\u95ee\u9898\u53ca\u89e3\u51b3\u65b9\u6848<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u4f9d\u8d56\u5305\u5b89\u88c5\u95ee\u9898\uff1a<\/strong><\/p>\n<\/p>\n<ul>\n<li>\u786e\u4fdd\u76ee\u6807\u7535\u8111\u4e0a\u7684pip\u7248\u672c\u662f\u6700\u65b0\u7684\uff0c\u4f7f\u7528<code>pip install --upgrade pip<\/code>\u547d\u4ee4\u66f4\u65b0\u3002<\/li>\n<li>\u6709\u4e9b\u5305\u53ef\u80fd\u9700\u8981\u7279\u5b9a\u7684\u7f16\u8bd1\u5668\u6216\u7cfb\u7edf\u5e93\uff0c\u786e\u4fdd\u76ee\u6807\u7535\u8111\u4e0a\u5b89\u88c5\u4e86\u8fd9\u4e9b\u4f9d\u8d56\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u6743\u9650\u95ee\u9898\uff1a<\/strong><\/p>\n<\/p>\n<ul>\n<li>\u5728\u5b89\u88c5\u4f9d\u8d56\u5305\u6216\u8fd0\u884c\u7a0b\u5e8f\u65f6\uff0c\u53ef\u80fd\u4f1a\u9047\u5230\u6743\u9650\u95ee\u9898\u3002\u5728\u547d\u4ee4\u524d\u6dfb\u52a0<code>sudo<\/code>\uff08Linux\/macOS\uff09\u6216\u4ee5\u7ba1\u7406\u5458\u8eab\u4efd\u8fd0\u884c\u547d\u4ee4\u884c\uff08Windows\uff09\u89e3\u51b3\u6743\u9650\u95ee\u9898\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u8de8\u5e73\u53f0\u517c\u5bb9\u95ee\u9898\uff1a<\/strong><\/p>\n<\/p>\n<ul>\n<li>\u6d4b\u8bd5\u7a0b\u5e8f\u5728\u4e0d\u540c\u64cd\u4f5c\u7cfb\u7edf\u4e0a\u7684\u8fd0\u884c\u60c5\u51b5\uff0c\u53ca\u65f6\u4fee\u590d\u4e0d\u517c\u5bb9\u7684\u95ee\u9898\u3002<\/li>\n<li>\u4f7f\u7528try-except\u6355\u83b7\u5f02\u5e38\uff0c\u63d0\u4f9b\u7528\u6237\u53cb\u597d\u7684\u9519\u8bef\u63d0\u793a\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p><p>\u4e03\u3001\u793a\u4f8b\u4ee3\u7801<\/p>\n<\/p>\n<p><p>\u4ee5\u4e0b\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u793a\u4f8b\u4ee3\u7801\uff0c\u6f14\u793a\u5982\u4f55\u5728\u4e0d\u540c\u7535\u8111\u4e0a\u8fd0\u884cPython\u7a0b\u5e8f\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># hello.py<\/p>\n<p>import os<\/p>\n<p>def greet():<\/p>\n<p>    print(&quot;Hello, World!&quot;)<\/p>\n<p>def m<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>n():<\/p>\n<p>    greet()<\/p>\n<p>    print(&quot;Current working directory:&quot;, os.getcwd())<\/p>\n<p>if __name__ == &quot;__main__&quot;:<\/p>\n<p>    main()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol>\n<li><strong>\u751f\u6210requirements.txt\uff1a<\/strong><\/li>\n<\/ol>\n<p><pre><code class=\"language-bash\">pip freeze &gt; requirements.txt<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li><strong>\u5728\u76ee\u6807\u7535\u8111\u4e0a\u5b89\u88c5\u4f9d\u8d56\u5305\uff1a<\/strong><\/li>\n<\/ol>\n<p><pre><code class=\"language-bash\">pip install -r requirements.txt<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"3\">\n<li><strong>\u6253\u5305\u6210\u53ef\u6267\u884c\u6587\u4ef6\uff08\u53ef\u9009\uff09\uff1a<\/strong><\/li>\n<\/ol>\n<p><pre><code class=\"language-bash\">pyinstaller --onefile hello.py<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u901a\u8fc7\u4ee5\u4e0a\u6b65\u9aa4\uff0c\u53ef\u4ee5\u786e\u4fddPython\u7a0b\u5e8f\u5728\u4e0d\u540c\u7535\u8111\u4e0a\u987a\u5229\u8fd0\u884c\u3002\u65e0\u8bba\u662f\u5b89\u88c5Python\u89e3\u91ca\u5668\u3001\u7ba1\u7406\u4f9d\u8d56\u5305\u3001\u4f7f\u7528\u865a\u62df\u73af\u5883\uff0c\u8fd8\u662f\u6253\u5305\u6210\u53ef\u6267\u884c\u6587\u4ef6\uff0c\u8fd9\u4e9b\u65b9\u6cd5\u90fd\u80fd\u6709\u6548\u5730\u89e3\u51b3\u8de8\u5e73\u53f0\u8fd0\u884c\u7684\u95ee\u9898\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5c06\u6211\u7684Python\u7a0b\u5e8f\u6253\u5305\u4ee5\u4fbf\u5728\u5176\u4ed6\u7535\u8111\u4e0a\u8fd0\u884c\uff1f<\/strong><br \/>\u4e3a\u4e86\u786e\u4fdd\u4f60\u7684Python\u7a0b\u5e8f\u80fd\u591f\u5728\u5176\u4ed6\u7535\u8111\u4e0a\u987a\u5229\u8fd0\u884c\uff0c\u53ef\u4ee5\u4f7f\u7528\u5de5\u5177\u5982PyInstaller\u3001cx_Freeze\u6216py2exe\u7b49\u5c06\u7a0b\u5e8f\u6253\u5305\u4e3a\u72ec\u7acb\u7684\u53ef\u6267\u884c\u6587\u4ef6\u3002\u8fd9\u4e9b\u5de5\u5177\u4f1a\u5c06Python\u89e3\u91ca\u5668\u548c\u6240\u6709\u4f9d\u8d56\u7684\u5e93\u4e00\u8d77\u6253\u5305\uff0c\u4ece\u800c\u4f7f\u5f97\u7528\u6237\u5728\u6ca1\u6709Python\u73af\u5883\u7684\u60c5\u51b5\u4e0b\u4e5f\u80fd\u8fd0\u884c\u4f60\u7684\u7a0b\u5e8f\u3002\u5177\u4f53\u6b65\u9aa4\u5305\u62ec\u5b89\u88c5\u6253\u5305\u5de5\u5177\u3001\u914d\u7f6e\u6253\u5305\u9009\u9879\u4ee5\u53ca\u6267\u884c\u6253\u5305\u547d\u4ee4\u3002<\/p>\n<p><strong>\u5728\u5176\u4ed6\u7535\u8111\u4e0a\u8fd0\u884cPython\u7a0b\u5e8f\u9700\u8981\u5b89\u88c5\u54ea\u4e9b\u4f9d\u8d56\uff1f<\/strong><br \/>\u8fd0\u884cPython\u7a0b\u5e8f\u65f6\uff0c\u786e\u4fdd\u76ee\u6807\u7535\u8111\u5b89\u88c5\u4e86\u4e0e\u7a0b\u5e8f\u76f8\u540c\u7248\u672c\u7684Python\uff0c\u5e76\u6839\u636e\u9700\u6c42\u5b89\u88c5\u76f8\u5e94\u7684\u7b2c\u4e09\u65b9\u5e93\u3002\u53ef\u4ee5\u5728\u4f60\u7684\u9879\u76ee\u4e2d\u521b\u5efa\u4e00\u4e2a<code>requirements.txt<\/code>\u6587\u4ef6\uff0c\u5217\u51fa\u6240\u6709\u4f9d\u8d56\u7684\u5e93\u548c\u7248\u672c\uff0c\u5176\u4ed6\u7528\u6237\u53ef\u4ee5\u901a\u8fc7\u547d\u4ee4<code>pip install -r requirements.txt<\/code>\u6765\u5feb\u901f\u5b89\u88c5\u6240\u9700\u7684\u4f9d\u8d56\u3002<\/p>\n<p><strong>\u5982\u4f55\u5728\u6ca1\u6709\u56fe\u5f62\u754c\u9762\u7684\u7535\u8111\u4e0a\u8fd0\u884cPython\u7a0b\u5e8f\uff1f<\/strong><br \/>\u5982\u679c\u4f60\u9700\u8981\u5728\u6ca1\u6709\u56fe\u5f62\u754c\u9762\u7684\u7535\u8111\u4e0a\u8fd0\u884cPython\u7a0b\u5e8f\uff0c\u53ef\u4ee5\u901a\u8fc7\u547d\u4ee4\u884c\u754c\u9762\u6765\u6267\u884c\u3002\u5728\u76ee\u6807\u7535\u8111\u4e0a\u6253\u5f00\u7ec8\u7aef\u6216\u547d\u4ee4\u63d0\u793a\u7b26\uff0c\u5bfc\u822a\u5230\u5305\u542bPython\u811a\u672c\u7684\u76ee\u5f55\uff0c\u7136\u540e\u4f7f\u7528\u547d\u4ee4<code>python script_name.py<\/code>\u6765\u8fd0\u884c\u7a0b\u5e8f\u3002\u786e\u4fdd\u5728\u8fd0\u884c\u4e4b\u524d\u5df2\u7ecf\u5b89\u88c5\u4e86Python\u548c\u6240\u9700\u7684\u4f9d\u8d56\u5e93\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Python\u7a0b\u5e8f\u5982\u4f55\u5728\u5176\u4ed6\u7535\u8111\u8fd0\u884c Python\u7a0b\u5e8f\u5728\u5176\u4ed6\u7535\u8111\u8fd0\u884c\u7684\u5173\u952e\u6b65\u9aa4\u5305\u62ec\uff1a\u5b89\u88c5Python\u89e3\u91ca\u5668\u3001\u786e\u4fdd [&hellip;]","protected":false},"author":3,"featured_media":1066356,"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\/1066338"}],"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=1066338"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1066338\/revisions"}],"predecessor-version":[{"id":1066358,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1066338\/revisions\/1066358"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1066356"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1066338"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1066338"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1066338"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}