{"id":179197,"date":"2024-05-08T20:07:57","date_gmt":"2024-05-08T12:07:57","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/179197.html"},"modified":"2024-05-08T20:08:01","modified_gmt":"2024-05-08T12:08:01","slug":"python%e8%b0%83%e7%94%a8cc-%e7%9a%84%e6%96%b9%e6%b3%95%e5%90%84%e6%9c%89%e4%bb%80%e4%b9%88%e4%bc%98%e5%8a%bf%ef%bc%8c%e5%93%aa%e4%b8%aa%e6%9c%80%e5%a5%bd","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/179197.html","title":{"rendered":"python\u8c03\u7528C\\\\C  \u7684\u65b9\u6cd5\u5404\u6709\u4ec0\u4e48\u4f18\u52bf\uff0c\u54ea\u4e2a\u6700\u597d"},"content":{"rendered":"<p style=\"text-align:center\"><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/27063903\/68fa6680-d965-4f9a-9c37-df92519a1427.webp\" alt=\"python\u8c03\u7528C\\\\C  \u7684\u65b9\u6cd5\u5404\u6709\u4ec0\u4e48\u4f18\u52bf\uff0c\u54ea\u4e2a\u6700\u597d\" \/><\/p>\n<p><p><strong>Python\u8c03\u7528C\/C++\u7684\u65b9\u6cd5\u4e3b\u8981\u6709\u4ee5\u4e0b\u51e0\u79cd\uff1a\u4f7f\u7528ctypes\u6a21\u5757\u3001\u5229\u7528SWIG\u5de5\u5177\u3001\u91c7\u7528Cython\u7f16\u7a0b\u3001\u8c03\u7528Python\/C API\u4ee5\u53ca\u501f\u52a9\u7b2c\u4e09\u65b9\u5e93\u5982boost.python\u3002\u6bcf\u79cd\u65b9\u6cd5\u90fd\u6709\u5176\u7279\u6b8a\u7684\u4f18\u52bf\uff0c\u4f8b\u5982ctypes\u65e0\u9700\u989d\u5916\u5c01\u88c5\uff0cSWIG\u81ea\u52a8\u751f\u6210\u63a5\u53e3\u4ee3\u7801\u3001Cython\u9760\u8fd1Python\u8bed\u6cd5\u3001Python\/C API\u63d0\u4f9b\u6df1\u5165\u63a7\u5236\u4ee5\u53caboost.python\u5b9e\u73b0\u6df1\u5ea6\u6574\u5408\u3002\u6700\u4f73\u65b9\u6cd5\u53d6\u51b3\u4e8e\u5177\u4f53\u5e94\u7528\u573a\u666f\u548c\u5f00\u53d1\u8005\u7684\u4e2a\u4eba\u504f\u597d\u3002<\/strong> \u5bf9\u4e8e\u5feb\u901f\u800c\u4e0d\u9700\u8981\u7f16\u8bd1\u7684\u573a\u666f\uff0c<strong>ctypes<\/strong> \u63d0\u4f9b\u4e86\u4e00\u4e2a\u4fbf\u6377\u7684\u9009\u62e9\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u4f7f\u7528CTYPES\u6a21\u5757<\/h3>\n<\/p>\n<p><p><strong>ctypes<\/strong> \u662fPython\u7684\u4e00\u4e2a\u5916\u90e8\u5e93\uff0c\u5b83\u63d0\u4f9b\u4e86\u4e00\u79cd\u7075\u6d3b\u7684\u65b9\u5f0f\u8c03\u7528C\/C++\u5e93\u4e2d\u7684\u51fd\u6570\u3002\u8fd9\u79cd\u65b9\u6cd5\u7684<strong>\u4f18\u52bf\u5305\u62ec\u65e0\u9700\u989d\u5916\u7684\u5c01\u88c5\u3001\u76f4\u63a5\u52a0\u8f7d\u52a8\u6001\u94fe\u63a5\u5e93\uff08DLLs\u6216shared libraries\uff09\u4ee5\u53ca\u76f8\u5bf9\u7b80\u5355\u5feb\u901f\u3002<\/strong> \u4f7f\u7528ctypes\uff0c\u5f00\u53d1\u8005\u53ef\u4ee5\u901a\u8fc7\u5b9a\u4e49\u5305\u88c5\u51fd\u6570\u4e0e\u6570\u636e\u7c7b\u578b\u8f6c\u6362\u6765\u76f4\u63a5\u5728Python\u4ee3\u7801\u4e2d\u8c03\u7528C\u5e93\u91cc\u7684\u51fd\u6570\u3002<\/p>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u4f7f\u7528ctypes\u65f6\u4e0d\u9700\u8981\u7f16\u5199\u989d\u5916\u7684\u5c01\u88c5\u4ee3\u7801\uff0c\u8fd9\u51cf\u5c11\u4e86\u5de5\u4f5c\u91cf\u5e76\u589e\u52a0\u4e86\u5f00\u53d1\u901f\u5ea6\u3002\u4f60\u53ea\u9700\u8981\u786e\u4fdd\u6240\u8981\u8c03\u7528\u7684C\/C++\u5e93\u4e2d\u7684\u51fd\u6570\u662f\u53ef\u4ee5\u88ab\u5bfc\u51fa\u7684\uff0c\u5373\u5b83\u4eec\u53ef\u4ee5\u4f5c\u4e3a\u52a8\u6001\u94fe\u63a5\u5e93\uff08DLL\u6216.so\u6587\u4ef6\uff09\u6765\u4f7f\u7528\u3002<\/p>\n<\/p>\n<p><p>\u5176\u6b21\uff0c\u901a\u8fc7\u76f4\u63a5\u52a0\u8f7d\u5e93\uff0cctypes\u5141\u8bb8Python\u811a\u672c\u5728\u8fd0\u884c\u65f6\u52a8\u6001\u5730\u8c03\u7528C\/C++\u4ee3\u7801\u3002\u8fd9\u610f\u5473\u7740\u5f00\u53d1\u8005\u4e0d\u5fc5\u91cd\u65b0\u7f16\u8bd1Python\u89e3\u91ca\u5668\uff0c\u4e5f\u4e0d\u9700\u8981\u91cd\u65b0\u7f16\u8bd1\u9759\u6001\u94fe\u63a5\u7684C\/C++\u6269\u5c55\u6a21\u5757\uff0c\u964d\u4f4e\u4e86\u96c6\u6210\u590d\u6742\u6027\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u5229\u7528SWIG\u5de5\u5177<\/h3>\n<\/p>\n<p><p><strong>SWIG\u662f\u4e00\u79cd\u8f6f\u4ef6\u5f00\u53d1\u5de5\u5177\uff0c\u5b83\u5c06C\u548cC++\u4ee3\u7801\u4e0e\u5404\u79cd\u9ad8\u7ea7\u7f16\u7a0b\u8bed\u8a00\u8fde\u63a5\u8d77\u6765\uff0c\u5176\u4e3b\u8981\u4f18\u52bf\u662f\u81ea\u52a8\u5316\u63a5\u53e3\u4ee3\u7801\u751f\u6210\u4e0e\u5e7f\u6cdb\u7684\u8bed\u8a00\u652f\u6301\u3002<\/strong> SWIG\u5de5\u5177\u4f1a\u81ea\u52a8\u751f\u6210\u4e0eC\/C++\u4ee3\u7801\u76f8\u5bf9\u5e94\u7684Python\u5c01\u88c5\u4ee3\u7801\u3002<\/p>\n<\/p>\n<p><p>SWIG\u7684\u53e6\u4e00\u4e2a\u4f18\u52bf\u5728\u4e8e\u5b83\u652f\u6301\u591a\u79cd\u7f16\u7a0b\u8bed\u8a00\uff0c\u56e0\u6b64\u5982\u679c\u4f60\u8ba1\u5212\u5c06\u4f60\u7684\u5e93\u63a5\u53e3\u5230\u4e0d\u4ec5\u4ec5\u662fPython\uff0c\u800c\u662f\u591a\u79cd\u4e0d\u540c\u7684\u7f16\u7a0b\u8bed\u8a00\uff0cSWIG\u53ef\u80fd\u4f1a\u662f\u4e00\u4e2a\u5408\u9002\u7684\u9009\u62e9\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001\u91c7\u7528CYTHON\u7f16\u7a0b<\/h3>\n<\/p>\n<p><p><strong>Cython<\/strong> \u662f\u4e00\u4e2a\u7f16\u7a0b\u8bed\u8a00\uff0c\u5b83\u662fPython\u548cC\u8bed\u8a00\u7684\u6df7\u5408\u4f53\uff0c\u65e8\u5728\u6210\u4e3a\u4e24\u8005\u4e4b\u95f4\u7684\u6865\u6881\u3002<strong>Cython\u7684\u4f18\u52bf\u662f\u5b83\u5177\u6709\u7c7b\u4f3cPython\u7684\u8bed\u6cd5\u548c\u9759\u6001\u7c7b\u578b\uff0c\u4f7f\u5f97\u7f16\u5199\u9ad8\u6027\u80fd\u4ee3\u7801\u53d8\u5f97\u8f7b\u677e\uff0c\u5e76\u4e14\u80fd\u591f\u751f\u6210\u4f18\u5316\u7684C\u4ee3\u7801\u3002<\/strong><\/p>\n<\/p>\n<p><p>Cython\u5141\u8bb8\u5f00\u53d1\u8005\u5728Python\u6a21\u5757\u4e2d\u76f4\u63a5\u5d4c\u5165C\u8bed\u8a00\u4ee3\u7801\u3002\u901a\u8fc7\u5c06Python\u51fd\u6570\u58f0\u660e\u4e3acdef\u7c7b\u578b\uff0c\u53ef\u4ee5\u5c06\u5b83\u4eec\u7f16\u8bd1\u6210C\u51fd\u6570\uff0c\u4ece\u800c\u5b9e\u73b0\u6027\u80fd\u4e0a\u7684\u5927\u5e45\u63d0\u5347\u3002<\/p>\n<\/p>\n<p><h3>\u56db\u3001\u8c03\u7528PYTHON\/C API<\/h3>\n<\/p>\n<p><p>\u4f7f\u7528Python\/C API\u4e5f\u662f\u4e00\u79cd\u6d41\u884c\u7684\u65b9\u6cd5\uff0c\u5b83\u5141\u8bb8\u5f00\u53d1\u8005\u76f4\u63a5\u5728C\u6216C++\u4ee3\u7801\u4e2d\u4f7f\u7528Python\u7684\u5185\u5efa\u6570\u636e\u7ed3\u6784\u548c\u51fd\u6570\u3002<strong>Python\/C API\u7684\u4f18\u52bf\u5728\u4e8e\u5b83\u63d0\u4f9b\u4e86\u5bf9Python\u8fd0\u884c\u65f6\u73af\u5883\u6df1\u5165\u7684\u63a7\u5236\u80fd\u529b\uff0c\u4f7f\u5f97\u96c6\u6210\u66f4\u4e3a\u7d27\u5bc6\u3002<\/strong> <\/p>\n<\/p>\n<p><p>Python\/C API\u5f80\u5f80\u9700\u8981\u66f4\u591a\u7684\u4ee3\u7801\u6765\u5b9e\u73b0\u76f8\u540c\u7684\u529f\u80fd\uff0c\u4f46\u5b83\u8d4b\u4e88\u5f00\u53d1\u8005\u76f4\u63a5\u64cd\u63a7Python\u5bf9\u8c61\u7684\u80fd\u529b\uff0c\u8fd9\u5728\u9700\u8981\u5b9e\u73b0\u975e\u5e38\u7d27\u5bc6\u7684\u96c6\u6210\u65f6\u7279\u522b\u6709\u7528\u3002<\/p>\n<\/p>\n<p><h3>\u4e94\u3001\u501f\u52a9\u7b2c\u4e09\u65b9\u5e93BOOST.PYTHON<\/h3>\n<\/p>\n<p><p>\u6700\u540e\uff0c<strong>boost.python\u662f\u4e00\u4e2a\u5f3a\u5927\u7684\u5e93\uff0c\u5b83\u5229\u7528Boost\u548cPython\u975e\u5e38\u6df1\u7684\u96c6\u6210\uff0c\u4ee5\u4fbf\u4ee5\u6700\u5c11\u7684\u52aa\u529b\u5b9e\u73b0Python\u4e0eC++\u4e4b\u95f4\u7684\u65e0\u7f1d\u8fde\u63a5\u3002<\/strong> \u5b83\u7684\u4f18\u52bf\u5728\u4e8e\u4f7fC++\u4ee3\u7801\u770b\u8d77\u6765\u5c31\u50cf\u662fPython\u4ee3\u7801\u4e00\u6837\uff0c\u7b80\u5316\u4e86\u6269\u5c55\u7684\u7f16\u5199\u8fc7\u7a0b\u3002<\/p>\n<\/p>\n<p><p>\u4f7f\u7528boost.python\u65f6\uff0c\u53ef\u4ee5\u975e\u5e38\u5bb9\u6613\u5730\u5c06C++\u7c7b\u548c\u51fd\u6570\u66b4\u9732\u7ed9Python\uff0c\u5e76\u4e14\u5904\u7406\u6570\u636e\u7c7b\u578b\u8f6c\u6362\u7684\u9700\u6c42\u901a\u5e38\u4e5f\u975e\u5e38\u5c11\u3002\u8fd9\u6837\u80fd\u5feb\u901f\u5730\u5728Python\u4e2d\u4f7f\u7528C++\u5199\u6210\u7684\u590d\u6742\u7cfb\u7edf\u3002<\/p>\n<\/p>\n<p><p>\u5728\u9009\u62e9\u6700\u5408\u9002\u7684\u65b9\u6cd5\u65f6\uff0c\u4f60\u5e94\u8be5\u8003\u8651\u9879\u76ee\u9700\u6c42\u3001\u7ef4\u62a4\u6210\u672c\u3001\u6267\u884c\u6548\u7387\u4ee5\u53ca\u5f00\u53d1\u65f6\u95f4\u3002\u5982\u679c\u4f60\u6b63\u5728\u5bfb\u627e\u4e00\u4e2a\u5feb\u901f\u4e14\u4e0d\u9700\u8981\u7f16\u8bd1C\/C++\u6269\u5c55\u7684\u89e3\u51b3\u65b9\u6848\uff0cctypes\u53ef\u80fd\u662f\u6700\u597d\u7684\u9009\u62e9\u3002\u5982\u679c\u4f60\u9700\u8981\u4e00\u4e2a\u80fd\u591f\u8f7b\u677e\u5904\u7406\u591a\u4e2a\u8bed\u8a00\u7684\u901a\u7528\u5de5\u5177\uff0cSWIG\u53ef\u80fd\u662f\u66f4\u5408\u9002\u7684\u9009\u62e9\u3002Cython\u662f\u4e00\u4e2a\u597d\u7684\u6298\u8877\u65b9\u6848\uff0c\u65e2\u6709Python\u7684\u4fbf\u5229\u6027\uff0c\u53c8\u6709C\u8bed\u8a00\u7684\u6027\u80fd\u3002\u800c\u5982\u679c\u4f60\u9700\u8981\u6700\u5927\u7a0b\u5ea6\u5730\u63a7\u5236API\u548c\u4f18\u5316\u6027\u80fd\uff0cPython\/C API\u4f1a\u662f\u4e00\u4e2a\u4e0d\u9519\u7684\u9009\u62e9\u3002\u5bf9\u4e8e\u9700\u8981\u5728Python\u548cC++\u4e4b\u95f4\u8fdb\u884c\u6df1\u5c42\u6b21\u96c6\u6210\uff0cboost.python\u63d0\u4f9b\u4e86\u4f18\u96c5\u7684\u89e3\u51b3\u65b9\u6848\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p><strong>1. Python\u8c03\u7528C\/C++\u65b9\u6cd5\u7684\u4f18\u52bf\u6709\u54ea\u4e9b\uff1f<\/strong><\/p>\n<p>Python\u8c03\u7528C\/C++\u65b9\u6cd5\u6709\u4ee5\u4e0b\u51e0\u4e2a\u4f18\u52bf\uff1a<\/p>\n<ul>\n<li><strong>\u6027\u80fd\u63d0\u5347\uff1a<\/strong> Python\u662f\u4e00\u79cd\u89e3\u91ca\u578b\u8bed\u8a00\uff0c\u800cC\/C++\u662f\u7f16\u8bd1\u578b\u8bed\u8a00\u3002\u7531\u4e8eC\/C++\u5728\u5e95\u5c42\u6267\u884c\u6548\u7387\u66f4\u9ad8\uff0c\u56e0\u6b64\u901a\u8fc7Python\u8c03\u7528C\/C++\u65b9\u6cd5\u53ef\u4ee5\u63d0\u5347\u7a0b\u5e8f\u7684\u6027\u80fd\u3002<\/li>\n<li><strong>\u5e93\u7684\u53ef\u7528\u6027\uff1a<\/strong> \u8bb8\u591a\u91cd\u8981\u7684\u5e93\u548c\u6a21\u5757\u662f\u7528C\/C++\u7f16\u5199\u7684\uff0c\u901a\u8fc7Python\u8c03\u7528C\/C++\u65b9\u6cd5\u53ef\u4ee5\u65b9\u4fbf\u5730\u4f7f\u7528\u8fd9\u4e9b\u5e93\uff0c\u6269\u5c55Python\u7684\u529f\u80fd\u3002<\/li>\n<li><strong>\u5e73\u53f0\u517c\u5bb9\u6027\uff1a<\/strong> C\/C++\u662f\u4e00\u79cd\u5177\u6709\u5f88\u9ad8\u7684\u8de8\u5e73\u53f0\u517c\u5bb9\u6027\u7684\u8bed\u8a00\uff0c\u901a\u8fc7Python\u8c03\u7528C\/C++\u65b9\u6cd5\u53ef\u4ee5\u4f7f\u7a0b\u5e8f\u5728\u4e0d\u540c\u7684\u64cd\u4f5c\u7cfb\u7edf\u4e0a\u90fd\u80fd\u591f\u8fd0\u884c\u3002<\/li>\n<\/ul>\n<p><strong>2. C\/C++\u8c03\u7528Python\u4e0ePython\u8c03\u7528C\/C++\u76f8\u6bd4\u6709\u4f55\u4f18\u52bf\uff1f<\/strong><\/p>\n<p>C\/C++\u8c03\u7528Python\u4e0ePython\u8c03\u7528C\/C++\u76f8\u6bd4\u6709\u4ee5\u4e0b\u4f18\u52bf\uff1a<\/p>\n<ul>\n<li><strong>\u5feb\u901f\u539f\u578b\u5f00\u53d1\uff1a<\/strong> Python\u5177\u6709\u7b80\u6d01\u660e\u4e86\u7684\u8bed\u6cd5\u548c\u4e30\u5bcc\u7684\u6807\u51c6\u5e93\uff0c\u53ef\u4ee5\u5feb\u901f\u5f00\u53d1\u539f\u578b\u3002\u901a\u8fc7C\/C++\u8c03\u7528Python\u53ef\u4ee5\u5145\u5206\u5229\u7528Python\u7684\u4f18\u52bf\uff0c\u5feb\u901f\u6784\u5efa\u539f\u578b\uff0c\u5e76\u5728\u6027\u80fd\u65b9\u9762\u8fdb\u884c\u4f18\u5316\u3002<\/li>\n<li><strong>\u4e0ePython\u751f\u6001\u7cfb\u7edf\u7684\u4e92\u64cd\u4f5c\u6027\uff1a<\/strong> Python\u5177\u6709\u5e9e\u5927\u7684\u751f\u6001\u7cfb\u7edf\uff0c\u62e5\u6709\u4e30\u5bcc\u7684\u7b2c\u4e09\u65b9\u5e93\u548c\u6a21\u5757\u3002\u901a\u8fc7C\/C++\u8c03\u7528Python\uff0c\u53ef\u4ee5\u4e0e\u8fd9\u4e9b\u5e93\u548c\u6a21\u5757\u8fdb\u884c\u65e0\u7f1d\u7684\u4e92\u64cd\u4f5c\uff0c\u5229\u7528Python\u751f\u6001\u7cfb\u7edf\u7684\u529b\u91cf\u3002<\/li>\n<li><strong>\u65b9\u4fbf\u8c03\u8bd5\uff1a<\/strong> C\/C++\u662f\u9759\u6001\u7c7b\u578b\u8bed\u8a00\uff0c\u8c03\u8bd5\u8d77\u6765\u76f8\u5bf9\u590d\u6742\u3002\u800cPython\u662f\u52a8\u6001\u7c7b\u578b\u8bed\u8a00\uff0c\u6613\u4e8e\u8c03\u8bd5\u3002\u901a\u8fc7C\/C++\u8c03\u7528Python\uff0c\u53ef\u4ee5\u5728C\/C++\u4ee3\u7801\u4e2d\u8c03\u7528Python\u7684\u8c03\u8bd5\u5de5\u5177\uff0c\u66f4\u65b9\u4fbf\u5730\u8fdb\u884c\u8c03\u8bd5\u3002<\/li>\n<\/ul>\n<p><strong>3. \u54ea\u79cd\u65b9\u6cd5\u6700\u597d\uff1aPython\u8c03\u7528C\/C++\u65b9\u6cd5\u8fd8\u662fC\/C++\u8c03\u7528Python\u65b9\u6cd5\uff1f<\/strong><\/p>\n<p>\u65e0\u6cd5\u4e00\u6982\u800c\u8bba\u8bf4\u54ea\u79cd\u65b9\u6cd5\u6700\u597d\uff0c\u9009\u62e9\u53d6\u51b3\u4e8e\u5177\u4f53\u7684\u9700\u6c42\u548c\u9879\u76ee\u3002<\/p>\n<ul>\n<li>\u5982\u679c\u9700\u8981\u63d0\u5347\u7a0b\u5e8f\u7684\u6027\u80fd\uff0c\u6216\u8005\u4f7f\u7528C\/C++\u5e93\u548c\u6a21\u5757\u7684\u529f\u80fd\uff0c\u90a3\u4e48Python\u8c03\u7528C\/C++\u65b9\u6cd5\u662f\u66f4\u597d\u7684\u9009\u62e9\u3002<\/li>\n<li>\u5982\u679c\u9700\u8981\u5feb\u901f\u5f00\u53d1\u539f\u578b\uff0c\u6216\u8005\u4e0ePython\u751f\u6001\u7cfb\u7edf\u8fdb\u884c\u4e92\u64cd\u4f5c\uff0c\u90a3\u4e48C\/C++\u8c03\u7528Python\u65b9\u6cd5\u662f\u66f4\u597d\u7684\u9009\u62e9\u3002<\/li>\n<\/ul>\n<p>\u7efc\u5408\u8003\u8651\u9700\u6c42\u548c\u9879\u76ee\u7279\u70b9\uff0c\u53ef\u4ee5\u6839\u636e\u5177\u4f53\u60c5\u51b5\u9009\u62e9\u6700\u5408\u9002\u7684\u65b9\u6cd5\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Python\u8c03\u7528C\/C++\u7684\u65b9\u6cd5\u4e3b\u8981\u6709\u4ee5\u4e0b\u51e0\u79cd\uff1a\u4f7f\u7528ctypes\u6a21\u5757\u3001\u5229\u7528SWIG\u5de5\u5177\u3001\u91c7\u7528Cython\u7f16\u7a0b\u3001 [&hellip;]","protected":false},"author":3,"featured_media":179204,"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\/179197"}],"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=179197"}],"version-history":[{"count":0,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/179197\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/179204"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=179197"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=179197"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=179197"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}