{"id":970123,"date":"2024-12-27T05:23:18","date_gmt":"2024-12-26T21:23:18","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/970123.html"},"modified":"2024-12-27T05:23:20","modified_gmt":"2024-12-26T21:23:20","slug":"%e5%a6%82%e4%bd%95%e7%bc%96%e8%af%91%e5%a4%9a%e4%b8%aapython%e6%96%87%e4%bb%b6","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/970123.html","title":{"rendered":"\u5982\u4f55\u7f16\u8bd1\u591a\u4e2apython\u6587\u4ef6"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24184103\/3ff77e0b-db1f-45c7-85f0-2e95402f44cc.webp\" alt=\"\u5982\u4f55\u7f16\u8bd1\u591a\u4e2apython\u6587\u4ef6\" \/><\/p>\n<p><p> <strong>\u7f16\u8bd1\u591a\u4e2aPython\u6587\u4ef6\u7684\u65b9\u6cd5\u5305\u62ec\uff1a\u4f7f\u7528Python\u7684\u5185\u5efa\u6a21\u5757\u3001\u4f7f\u7528\u7b2c\u4e09\u65b9\u5de5\u5177\u3001\u521b\u5efa\u4e00\u4e2a\u4e3b\u6587\u4ef6\u6765\u7ec4\u7ec7\u591a\u4e2a\u6587\u4ef6\u3002<\/strong>\u5728\u8fd9\u4e09\u79cd\u65b9\u6cd5\u4e2d\uff0c\u4f7f\u7528Python\u5185\u5efa\u6a21\u5757\u662f\u6700\u4e3a\u76f4\u63a5\u548c\u5e38\u7528\u7684\u65b9\u6cd5\u4e4b\u4e00\u3002\u901a\u8fc7\u4f7f\u7528<code>import<\/code>\u8bed\u53e5\u548c\u6a21\u5757\u5316\u7f16\u7a0b\uff0c\u53ef\u4ee5\u8f7b\u677e\u5c06\u591a\u4e2aPython\u6587\u4ef6\u7f16\u8bd1\u548c\u8fd0\u884c\u3002\u4e0b\u9762\u6211\u4eec\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u8fd9\u4e09\u79cd\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u4f7f\u7528PYTHON\u5185\u5efa\u6a21\u5757<\/p>\n<\/p>\n<p><p>Python\u662f\u4e00\u79cd\u89e3\u91ca\u578b\u8bed\u8a00\uff0c\u901a\u5e38\u4e0d\u9700\u8981\u663e\u5f0f\u5730\u8fdb\u884c\u7f16\u8bd1\u3002\u7136\u800c\uff0c\u5f53\u6d89\u53ca\u591a\u4e2a\u6587\u4ef6\u65f6\uff0c\u7ba1\u7406\u548c\u7ec4\u7ec7\u8fd9\u4e9b\u6587\u4ef6\u4ee5\u786e\u4fdd\u5b83\u4eec\u80fd\u591f\u534f\u540c\u5de5\u4f5c\u662f\u5fc5\u4e0d\u53ef\u5c11\u7684\u3002\u4f7f\u7528Python\u5185\u5efa\u6a21\u5757\u53ef\u4ee5\u5e2e\u52a9\u6211\u4eec\u5b9e\u73b0\u8fd9\u4e00\u76ee\u6807\u3002<\/p>\n<\/p>\n<ol>\n<li><strong>\u6a21\u5757\u5316\u7f16\u7a0b<\/strong><\/li>\n<\/ol>\n<p><p>\u6a21\u5757\u5316\u7f16\u7a0b\u662f\u4e00\u79cd\u901a\u8fc7\u5c06\u4ee3\u7801\u5206\u5272\u6210\u591a\u4e2a\u53ef\u91cd\u7528\u6a21\u5757\u7684\u65b9\u5f0f\u6765\u7ba1\u7406\u4ee3\u7801\u7684\u65b9\u6cd5\u3002\u5728Python\u4e2d\uff0c\u6bcf\u4e2a\u6587\u4ef6\u90fd\u88ab\u89c6\u4e3a\u4e00\u4e2a\u6a21\u5757\u3002\u901a\u8fc7\u4f7f\u7528<code>import<\/code>\u8bed\u53e5\uff0c\u53ef\u4ee5\u8f7b\u677e\u5730\u5728\u4e00\u4e2a\u6587\u4ef6\u4e2d\u5f15\u5165\u53e6\u4e00\u4e2a\u6587\u4ef6\u7684\u5185\u5bb9\u3002<\/p>\n<\/p>\n<p><p>\u4f8b\u5982\uff0c\u5982\u679c\u6211\u4eec\u6709\u4e24\u4e2a\u6587\u4ef6\uff1a<code>file1.py<\/code>\u548c<code>file2.py<\/code>\uff0c\u6211\u4eec\u53ef\u4ee5\u5728<code>file1.py<\/code>\u4e2d\u4f7f\u7528<code>import file2<\/code>\u6765\u5f15\u5165<code>file2.py<\/code>\u7684\u5185\u5bb9\u3002\u8fd9\u6837\uff0c<code>file1.py<\/code>\u5c31\u53ef\u4ee5\u8c03\u7528<code>file2.py<\/code>\u4e2d\u7684\u51fd\u6570\u548c\u53d8\u91cf\u3002<\/p>\n<\/p>\n<ol start=\"2\">\n<li><strong>\u4f7f\u7528\u5305\uff08Package\uff09<\/strong><\/li>\n<\/ol>\n<p><p>\u5305\u662f\u4e00\u4e2a\u5305\u542b\u591a\u4e2a\u6a21\u5757\u7684\u76ee\u5f55\u3002\u901a\u8fc7\u4f7f\u7528\u5305\uff0c\u53ef\u4ee5\u66f4\u597d\u5730\u7ec4\u7ec7\u548c\u7ba1\u7406\u591a\u4e2a\u76f8\u5173\u6a21\u5757\u3002\u5728Python\u4e2d\uff0c\u5305\u662f\u4e00\u4e2a\u5305\u542b<code>__init__.py<\/code>\u6587\u4ef6\u7684\u76ee\u5f55\u3002\u8fd9\u4e2a\u6587\u4ef6\u53ef\u4ee5\u662f\u7a7a\u7684\uff0c\u4f46\u5b83\u5fc5\u987b\u5b58\u5728\uff0c\u4ee5\u4fbfPython\u5c06\u8be5\u76ee\u5f55\u89c6\u4e3a\u5305\u3002<\/p>\n<\/p>\n<p><p>\u901a\u8fc7\u5c06\u591a\u4e2a\u6a21\u5757\u653e\u5165\u540c\u4e00\u4e2a\u5305\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528<code>import package_name.module_name<\/code>\u7684\u65b9\u5f0f\u6765\u5f15\u5165\u5176\u4e2d\u7684\u6a21\u5757\u3002\u8fd9\u4f7f\u5f97\u4ee3\u7801\u7684\u7ec4\u7ec7\u66f4\u52a0\u6e05\u6670\uff0c\u5e76\u4e14\u53ef\u4ee5\u907f\u514d\u6a21\u5757\u540d\u79f0\u51b2\u7a81\u3002<\/p>\n<\/p>\n<p><p>\u4e8c\u3001\u4f7f\u7528\u7b2c\u4e09\u65b9\u5de5\u5177<\/p>\n<\/p>\n<p><p>\u9664\u4e86\u4f7f\u7528Python\u5185\u5efa\u6a21\u5757\u5916\uff0c\u8fd8\u6709\u4e00\u4e9b\u7b2c\u4e09\u65b9\u5de5\u5177\u53ef\u4ee5\u5e2e\u52a9\u6211\u4eec\u7f16\u8bd1\u548c\u7ba1\u7406\u591a\u4e2aPython\u6587\u4ef6\u3002\u8fd9\u4e9b\u5de5\u5177\u901a\u5e38\u63d0\u4f9b\u4e86\u66f4\u591a\u7684\u529f\u80fd\u548c\u66f4\u597d\u7684\u6027\u80fd\u3002<\/p>\n<\/p>\n<ol>\n<li><strong>PyInstaller<\/strong><\/li>\n<\/ol>\n<p><p>PyInstaller\u662f\u4e00\u4e2a\u5c06Python\u7a0b\u5e8f\u6253\u5305\u6210\u72ec\u7acb\u53ef\u6267\u884c\u6587\u4ef6\u7684\u5de5\u5177\u3002\u5b83\u53ef\u4ee5\u81ea\u52a8\u68c0\u6d4b\u548c\u6253\u5305Python\u7a0b\u5e8f\u6240\u9700\u7684\u6240\u6709\u6a21\u5757\u548c\u8d44\u6e90\uff0c\u4f7f\u5f97\u7a0b\u5e8f\u53ef\u4ee5\u5728\u6ca1\u6709Python\u89e3\u91ca\u5668\u7684\u73af\u5883\u4e2d\u8fd0\u884c\u3002<\/p>\n<\/p>\n<p><p>\u4f7f\u7528PyInstaller\u6253\u5305\u591a\u4e2aPython\u6587\u4ef6\u975e\u5e38\u7b80\u5355\u3002\u53ea\u9700\u5728\u547d\u4ee4\u884c\u4e2d\u8fd0\u884c<code>pyinstaller --onefile m<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>n.py<\/code>\uff0c\u5176\u4e2d<code>main.py<\/code>\u662f\u7a0b\u5e8f\u7684\u5165\u53e3\u6587\u4ef6\u3002PyInstaller\u5c06\u81ea\u52a8\u6253\u5305\u6240\u6709\u4f9d\u8d56\u7684\u6a21\u5757\u548c\u6587\u4ef6\uff0c\u751f\u6210\u4e00\u4e2a\u72ec\u7acb\u7684\u53ef\u6267\u884c\u6587\u4ef6\u3002<\/p>\n<\/p>\n<ol start=\"2\">\n<li><strong>cx_Freeze<\/strong><\/li>\n<\/ol>\n<p><p>cx_Freeze\u662f\u53e6\u4e00\u4e2a\u5c06Python\u7a0b\u5e8f\u6253\u5305\u6210\u53ef\u6267\u884c\u6587\u4ef6\u7684\u5de5\u5177\u3002\u5b83\u652f\u6301\u591a\u5e73\u53f0\uff0c\u5e76\u4e14\u4e0ePyInstaller\u7c7b\u4f3c\uff0c\u53ef\u4ee5\u81ea\u52a8\u68c0\u6d4b\u548c\u6253\u5305\u7a0b\u5e8f\u7684\u6240\u6709\u4f9d\u8d56\u3002<\/p>\n<\/p>\n<p><p>\u4f7f\u7528cx_Freeze\u65f6\uff0c\u9700\u8981\u7f16\u5199\u4e00\u4e2a<code>setup.py<\/code>\u6587\u4ef6\uff0c\u6307\u5b9a\u8981\u6253\u5305\u7684\u4e3b\u6587\u4ef6\u548c\u5176\u4ed6\u9009\u9879\u3002\u7136\u540e\u5728\u547d\u4ee4\u884c\u4e2d\u8fd0\u884c<code>python setup.py build<\/code>\u5373\u53ef\u751f\u6210\u53ef\u6267\u884c\u6587\u4ef6\u3002<\/p>\n<\/p>\n<p><p>\u4e09\u3001\u521b\u5efa\u4e00\u4e2a\u4e3b\u6587\u4ef6\u6765\u7ec4\u7ec7\u591a\u4e2a\u6587\u4ef6<\/p>\n<\/p>\n<p><p>\u9664\u4e86\u4f7f\u7528\u5185\u5efa\u6a21\u5757\u548c\u7b2c\u4e09\u65b9\u5de5\u5177\u5916\uff0c\u8fd8\u53ef\u4ee5\u901a\u8fc7\u521b\u5efa\u4e00\u4e2a\u4e3b\u6587\u4ef6\u6765\u7ec4\u7ec7\u548c\u7ba1\u7406\u591a\u4e2aPython\u6587\u4ef6\u3002\u8fd9\u79cd\u65b9\u6cd5\u9002\u7528\u4e8e\u8f83\u5c0f\u7684\u9879\u76ee\uff0c\u6216\u8005\u5f53\u4f60\u5e0c\u671b\u624b\u52a8\u63a7\u5236\u7a0b\u5e8f\u7684\u6267\u884c\u6d41\u7a0b\u65f6\u3002<\/p>\n<\/p>\n<ol>\n<li><strong>\u521b\u5efa\u4e3b\u6587\u4ef6<\/strong><\/li>\n<\/ol>\n<p><p>\u4e3b\u6587\u4ef6\u662f\u6574\u4e2a\u7a0b\u5e8f\u7684\u5165\u53e3\u70b9\u3002\u5728\u4e3b\u6587\u4ef6\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528<code>import<\/code>\u8bed\u53e5\u5f15\u5165\u5176\u4ed6\u6587\u4ef6\uff0c\u5e76\u6839\u636e\u9700\u8981\u8c03\u7528\u5b83\u4eec\u7684\u51fd\u6570\u548c\u53d8\u91cf\u3002<\/p>\n<\/p>\n<p><p>\u4f8b\u5982\uff0c\u5982\u679c\u6709\u4e09\u4e2a\u6587\u4ef6\uff1a<code>file1.py<\/code>\u3001<code>file2.py<\/code>\u548c<code>file3.py<\/code>\uff0c\u53ef\u4ee5\u521b\u5efa\u4e00\u4e2a\u540d\u4e3a<code>main.py<\/code>\u7684\u4e3b\u6587\u4ef6\uff0c\u5e76\u5728\u5176\u4e2d\u4f7f\u7528<code>import file1<\/code>\u3001<code>import file2<\/code>\u548c<code>import file3<\/code>\u6765\u5f15\u5165\u5176\u4ed6\u6587\u4ef6\u3002\u7136\u540e\uff0c\u6839\u636e\u9700\u8981\u8c03\u7528\u8fd9\u4e9b\u6587\u4ef6\u4e2d\u7684\u51fd\u6570\u548c\u53d8\u91cf\u3002<\/p>\n<\/p>\n<ol start=\"2\">\n<li><strong>\u7ec4\u7ec7\u4ee3\u7801\u7ed3\u6784<\/strong><\/li>\n<\/ol>\n<p><p>\u5728\u4e3b\u6587\u4ef6\u4e2d\uff0c\u53ef\u4ee5\u6839\u636e\u7a0b\u5e8f\u7684\u903b\u8f91\u548c\u529f\u80fd\u7ec4\u7ec7\u4ee3\u7801\u7ed3\u6784\u3002\u53ef\u4ee5\u5c06\u4e0d\u540c\u7684\u529f\u80fd\u6a21\u5757\u5316\uff0c\u5e76\u5728\u4e3b\u6587\u4ef6\u4e2d\u8c03\u7528\u8fd9\u4e9b\u6a21\u5757\u3002<\/p>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u7684\u4f18\u70b9\u662f\u7b80\u5355\u76f4\u89c2\uff0c\u9002\u5408\u8f83\u5c0f\u7684\u9879\u76ee\u3002\u4f46\u5bf9\u4e8e\u8f83\u5927\u7684\u9879\u76ee\uff0c\u5efa\u8bae\u4f7f\u7528\u5305\u548c\u6a21\u5757\u5316\u7f16\u7a0b\uff0c\u4ee5\u4fbf\u66f4\u597d\u5730\u7ba1\u7406\u548c\u7ec4\u7ec7\u4ee3\u7801\u3002<\/p>\n<\/p>\n<p><p>\u603b\u7ed3<\/p>\n<\/p>\n<p><p>\u7f16\u8bd1\u591a\u4e2aPython\u6587\u4ef6\u7684\u65b9\u6cd5\u591a\u79cd\u591a\u6837\uff0c\u5305\u62ec\u4f7f\u7528Python\u5185\u5efa\u6a21\u5757\u3001\u7b2c\u4e09\u65b9\u5de5\u5177\u4ee5\u53ca\u521b\u5efa\u4e3b\u6587\u4ef6\u3002\u9009\u62e9\u54ea\u79cd\u65b9\u6cd5\u53d6\u51b3\u4e8e\u9879\u76ee\u7684\u89c4\u6a21\u548c\u590d\u6742\u5ea6\u3002\u5bf9\u4e8e\u8f83\u5c0f\u7684\u9879\u76ee\uff0c\u521b\u5efa\u4e3b\u6587\u4ef6\u53ef\u80fd\u66f4\u4e3a\u7b80\u5355\u76f4\u89c2\u3002\u800c\u5bf9\u4e8e\u8f83\u5927\u7684\u9879\u76ee\uff0c\u4f7f\u7528\u5305\u548c\u6a21\u5757\u5316\u7f16\u7a0b\u5219\u66f4\u4e3a\u9002\u5408\u3002\u6b64\u5916\uff0c\u4f7f\u7528\u7b2c\u4e09\u65b9\u5de5\u5177\u5982PyInstaller\u548ccx_Freeze\u53ef\u4ee5\u5c06Python\u7a0b\u5e8f\u6253\u5305\u6210\u72ec\u7acb\u7684\u53ef\u6267\u884c\u6587\u4ef6\uff0c\u65b9\u4fbf\u5206\u53d1\u548c\u90e8\u7f72\u3002\u65e0\u8bba\u9009\u62e9\u54ea\u79cd\u65b9\u6cd5\uff0c\u5408\u7406\u7684\u4ee3\u7801\u7ec4\u7ec7\u548c\u7ba1\u7406\u90fd\u662f\u786e\u4fdd\u7a0b\u5e8f\u9ad8\u6548\u8fd0\u884c\u7684\u5173\u952e\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u7f16\u8bd1\u591a\u4e2aPython\u6587\u4ef6\u7684\u6700\u4f73\u65b9\u6cd5\u662f\u4ec0\u4e48\uff1f<\/strong><br \/>\u7f16\u8bd1\u591a\u4e2aPython\u6587\u4ef6\u53ef\u4ee5\u901a\u8fc7\u4f7f\u7528Python\u81ea\u5e26\u7684<code>py_compile<\/code>\u6a21\u5757\u5b9e\u73b0\u3002\u4f60\u53ef\u4ee5\u7f16\u5199\u4e00\u4e2a\u7b80\u5355\u7684\u811a\u672c\uff0c\u904d\u5386\u6307\u5b9a\u76ee\u5f55\u4e2d\u7684\u6240\u6709Python\u6587\u4ef6\uff0c\u8c03\u7528<code>py_compile.compile()<\/code>\u51fd\u6570\u8fdb\u884c\u7f16\u8bd1\u3002\u6b64\u5916\uff0c\u4f7f\u7528<code>setuptools<\/code>\u6216<code>cx_Freeze<\/code>\u7b49\u5de5\u5177\u4e5f\u53ef\u4ee5\u5e2e\u52a9\u4f60\u6253\u5305\u548c\u7f16\u8bd1\u591a\u4e2a\u6587\u4ef6\uff0c\u65b9\u4fbf\u8fdb\u884c\u5206\u53d1\u548c\u90e8\u7f72\u3002<\/p>\n<p><strong>\u5728\u7f16\u8bd1\u591a\u4e2aPython\u6587\u4ef6\u65f6\uff0c\u662f\u5426\u6709\u6587\u4ef6\u4f9d\u8d56\u6027\u9700\u8981\u6ce8\u610f\uff1f<\/strong><br \/>\u5728\u7f16\u8bd1\u591a\u4e2aPython\u6587\u4ef6\u65f6\uff0c\u786e\u5b9e\u9700\u8981\u8003\u8651\u6587\u4ef6\u4e4b\u95f4\u7684\u4f9d\u8d56\u5173\u7cfb\u3002\u5982\u679c\u67d0\u4e2a\u6587\u4ef6\u4f9d\u8d56\u4e8e\u5176\u4ed6\u6587\u4ef6\u4e2d\u7684\u51fd\u6570\u6216\u7c7b\uff0c\u786e\u4fdd\u8fd9\u4e9b\u4f9d\u8d56\u6587\u4ef6\u5728\u7f16\u8bd1\u65f6\u53ef\u88ab\u8bbf\u95ee\u3002\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u7f16\u8bd1\u987a\u5e8f\u5e76\u4e0d\u4f1a\u5f71\u54cd\u7ed3\u679c\uff0c\u4f46\u5728\u8fd0\u884c\u65f6\uff0c\u786e\u4fdd\u6240\u6709\u4f9d\u8d56\u7684\u6a21\u5757\u90fd\u5728PYTHONPATH\u4e2d\uff0c\u4ee5\u907f\u514d\u5bfc\u5165\u9519\u8bef\u3002<\/p>\n<p><strong>\u5982\u4f55\u5728\u4e0d\u540c\u7684\u64cd\u4f5c\u7cfb\u7edf\u4e0a\u7f16\u8bd1\u591a\u4e2aPython\u6587\u4ef6\uff1f<\/strong><br \/>\u5728\u4e0d\u540c\u7684\u64cd\u4f5c\u7cfb\u7edf\u4e0a\uff0c\u7f16\u8bd1\u591a\u4e2aPython\u6587\u4ef6\u7684\u65b9\u6cd5\u57fa\u672c\u76f8\u540c\uff0c\u56e0\u4e3aPython\u662f\u8de8\u5e73\u53f0\u7684\u3002\u65e0\u8bba\u662f\u5728Windows\u3001macOS\u8fd8\u662fLinux\u4e0a\uff0c\u4f60\u90fd\u53ef\u4ee5\u4f7f\u7528\u547d\u4ee4\u884c\u5de5\u5177\u6765\u7f16\u8bd1\u6587\u4ef6\u3002\u4f60\u53ea\u9700\u786e\u4fdd\u5df2\u5b89\u88c5\u76f8\u5e94\u7684Python\u7248\u672c\uff0c\u5e76\u4f7f\u7528\u76f8\u540c\u7684\u7f16\u8bd1\u547d\u4ee4\u6216\u811a\u672c\u3002\u5bf9\u4e8eWindows\u7528\u6237\uff0c\u53ef\u4ee5\u4f7f\u7528PowerShell\u6216CMD\uff0cmacOS\u548cLinux\u7528\u6237\u5219\u53ef\u4ee5\u76f4\u63a5\u5728\u7ec8\u7aef\u4e2d\u64cd\u4f5c\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u7f16\u8bd1\u591a\u4e2aPython\u6587\u4ef6\u7684\u65b9\u6cd5\u5305\u62ec\uff1a\u4f7f\u7528Python\u7684\u5185\u5efa\u6a21\u5757\u3001\u4f7f\u7528\u7b2c\u4e09\u65b9\u5de5\u5177\u3001\u521b\u5efa\u4e00\u4e2a\u4e3b\u6587\u4ef6\u6765\u7ec4\u7ec7\u591a\u4e2a\u6587\u4ef6\u3002 [&hellip;]","protected":false},"author":3,"featured_media":970132,"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\/970123"}],"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=970123"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/970123\/revisions"}],"predecessor-version":[{"id":970136,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/970123\/revisions\/970136"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/970132"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=970123"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=970123"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=970123"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}