{"id":1011026,"date":"2024-12-27T11:26:22","date_gmt":"2024-12-27T03:26:22","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1011026.html"},"modified":"2024-12-27T11:26:26","modified_gmt":"2024-12-27T03:26:26","slug":"%e5%a6%82%e4%bd%95%e4%b8%bapython%e6%b7%bb%e5%8a%a0%e8%b7%af%e5%be%84","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1011026.html","title":{"rendered":"\u5982\u4f55\u4e3apython\u6dfb\u52a0\u8def\u5f84"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25085330\/296aff55-fe58-450a-a8ed-cad38e09b9e3.webp\" alt=\"\u5982\u4f55\u4e3apython\u6dfb\u52a0\u8def\u5f84\" \/><\/p>\n<p><p> <strong>\u4e3aPython\u6dfb\u52a0\u8def\u5f84\u7684\u65b9\u6cd5\u5305\u62ec\uff1a\u901a\u8fc7\u4fee\u6539\u73af\u5883\u53d8\u91cf\u3001\u4f7f\u7528sys.path.append()\u3001\u914d\u7f6e.pth\u6587\u4ef6<\/strong>\u3002\u5176\u4e2d\uff0c<strong>\u4fee\u6539\u73af\u5883\u53d8\u91cf<\/strong>\u662f\u4e00\u79cd\u6c38\u4e45\u6027\u89e3\u51b3\u65b9\u6848\uff0c\u5e38\u7528\u4e8e\u9700\u8981\u5728\u4e0d\u540c\u9879\u76ee\u4e2d\u5171\u4eab\u8def\u5f84\u7684\u60c5\u51b5\u3002\u901a\u8fc7\u5728\u64cd\u4f5c\u7cfb\u7edf\u7684\u73af\u5883\u53d8\u91cf\u4e2d\u6dfb\u52a0Python\u8def\u5f84\uff0c\u53ef\u4ee5\u786e\u4fdd\u5728\u4efb\u4f55\u5730\u65b9\u90fd\u80fd\u8bbf\u95eePython\u7684\u5e93\u548c\u6a21\u5757\u3002\u8be6\u7ec6\u6b65\u9aa4\u5982\u4e0b\uff1a\u5728Windows\u7cfb\u7edf\u4e2d\uff0c\u53f3\u952e\u201c\u6b64\u7535\u8111\u201d\u9009\u62e9\u201c\u5c5e\u6027\u201d\uff0c\u70b9\u51fb\u201c\u9ad8\u7ea7\u7cfb\u7edf\u8bbe\u7f6e\u201d\uff0c\u5728\u201c\u73af\u5883\u53d8\u91cf\u201d\u4e2d\u627e\u5230\u201cPath\u201d\uff0c\u7f16\u8f91\u5e76\u6dfb\u52a0Python\u8def\u5f84\u3002\u5728macOS\u6216Linux\u7cfb\u7edf\u4e2d\uff0c\u7f16\u8f91<del>\/.bash_profile\u6216<\/del>\/.bashrc\u6587\u4ef6\uff0c\u6dfb\u52a0export PATH=&quot;\/path\/to\/python:$PATH&quot;\uff0c\u7136\u540e\u8fd0\u884csource ~\/.bash_profile\u6216source ~\/.bashrc\u4f7f\u66f4\u6539\u751f\u6548\u3002\u6b64\u65b9\u6cd5\u4f7f\u5f97Python\u89e3\u91ca\u5668\u5728\u7cfb\u7edf\u7684\u4efb\u4f55\u5730\u65b9\u90fd\u80fd\u627e\u5230\u5e76\u4f7f\u7528\u4f60\u6307\u5b9a\u7684\u5e93\u548c\u6a21\u5757\u8def\u5f84\u3002<\/p>\n<\/p>\n<hr>\n<p><p>\u4e00\u3001\u4fee\u6539\u73af\u5883\u53d8\u91cf<\/p>\n<\/p>\n<p><p>\u5728\u8bb8\u591a\u60c5\u51b5\u4e0b\uff0c\u4fee\u6539\u64cd\u4f5c\u7cfb\u7edf\u7684\u73af\u5883\u53d8\u91cf\u662f\u4e3aPython\u6dfb\u52a0\u8def\u5f84\u7684\u6700\u6709\u6548\u65b9\u5f0f\u3002\u8fd9\u6837\u505a\u7684\u597d\u5904\u662f\uff0c\u5b83\u5bf9\u6240\u6709\u5e94\u7528\u7a0b\u5e8f\u548c\u7ec8\u7aef\u4f1a\u8bdd\u90fd\u662f\u53ef\u7528\u7684\uff0c\u5e76\u4e14\u4e0d\u9700\u8981\u5728\u6bcf\u4e2aPython\u811a\u672c\u4e2d\u624b\u52a8\u6dfb\u52a0\u8def\u5f84\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>Windows\u7cfb\u7edf<\/strong><\/p>\n<\/p>\n<p><p>\u5728Windows\u64cd\u4f5c\u7cfb\u7edf\u4e2d\uff0c\u4fee\u6539\u73af\u5883\u53d8\u91cf\u7684\u6b65\u9aa4\u5982\u4e0b\uff1a<\/p>\n<\/p>\n<ul>\n<li>\u53f3\u952e\u70b9\u51fb\u201c\u6b64\u7535\u8111\u201d\u6216\u201c\u6211\u7684\u7535\u8111\u201d\uff0c\u9009\u62e9\u201c\u5c5e\u6027\u201d\u3002<\/li>\n<li>\u70b9\u51fb\u201c\u9ad8\u7ea7\u7cfb\u7edf\u8bbe\u7f6e\u201d\u3002<\/li>\n<li>\u5728\u201c\u7cfb\u7edf\u5c5e\u6027\u201d\u7a97\u53e3\u4e2d\uff0c\u70b9\u51fb\u201c\u73af\u5883\u53d8\u91cf\u201d\u6309\u94ae\u3002<\/li>\n<li>\u5728\u201c\u7cfb\u7edf\u53d8\u91cf\u201d\u90e8\u5206\uff0c\u627e\u5230\u5e76\u9009\u62e9\u201cPath\u201d\u53d8\u91cf\uff0c\u7136\u540e\u70b9\u51fb\u201c\u7f16\u8f91\u201d\u3002<\/li>\n<li>\u5728\u5f39\u51fa\u7684\u7f16\u8f91\u7a97\u53e3\u4e2d\uff0c\u70b9\u51fb\u201c\u65b0\u5efa\u201d\u6309\u94ae\uff0c\u5c06Python\u7684\u8def\u5f84\u6dfb\u52a0\u5230\u5217\u8868\u4e2d\u3002\u6ce8\u610f\uff0c\u8fd9\u91cc\u9700\u8981\u6dfb\u52a0\u7684\u662fPython\u5b89\u88c5\u76ee\u5f55\u7684\u8def\u5f84\u4ee5\u53caScripts\u76ee\u5f55\u7684\u8def\u5f84\u3002<\/li>\n<li>\u70b9\u51fb\u201c\u786e\u5b9a\u201d\u4fdd\u5b58\u66f4\u6539\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>macOS\u548cLinux\u7cfb\u7edf<\/strong><\/p>\n<\/p>\n<p><p>\u5728macOS\u548cLinux\u7cfb\u7edf\u4e2d\uff0c\u4fee\u6539\u73af\u5883\u53d8\u91cf\u7684\u65b9\u6cd5\u662f\u7f16\u8f91shell\u914d\u7f6e\u6587\u4ef6\uff0c\u5982~\/.bash_profile, ~\/.bashrc, ~\/.zshrc\u7b49\uff0c\u5177\u4f53\u6b65\u9aa4\u5982\u4e0b\uff1a<\/p>\n<\/p>\n<ul>\n<li>\n<p>\u6253\u5f00\u7ec8\u7aef\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p>\u4f7f\u7528\u6587\u672c\u7f16\u8f91\u5668\u6253\u5f00\u914d\u7f6e\u6587\u4ef6\uff0c\u4f8b\u5982\uff1a<code>nano ~\/.bash_profile<\/code>\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p>\u5728\u6587\u4ef6\u672b\u5c3e\u6dfb\u52a0\u4ee5\u4e0b\u884c\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">export PATH=&quot;\/path\/to\/your\/python:$PATH&quot;<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u91cc\u7684<code>\/path\/to\/your\/python<\/code>\u9700\u8981\u66ff\u6362\u4e3a\u5b9e\u9645\u7684Python\u8def\u5f84\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p>\u4fdd\u5b58\u5e76\u5173\u95ed\u6587\u4ef6\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p>\u8fd0\u884c<code>source ~\/.bash_profile<\/code>\u547d\u4ee4\u4ee5\u4f7f\u66f4\u6539\u751f\u6548\u3002<\/p>\n<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p><p>\u4e8c\u3001\u4f7f\u7528sys.path.append()<\/p>\n<\/p>\n<p><p>sys.path\u662f\u4e00\u4e2aPython\u5217\u8868\uff0c\u5305\u542b\u4e86\u89e3\u91ca\u5668\u67e5\u627e\u6a21\u5757\u7684\u8def\u5f84\u3002\u901a\u8fc7\u5728Python\u811a\u672c\u4e2d\u52a8\u6001\u5730\u6dfb\u52a0\u8def\u5f84\uff0c\u60a8\u53ef\u4ee5\u5728\u8fd0\u884c\u65f6\u6269\u5c55\u6a21\u5757\u7684\u641c\u7d22\u8def\u5f84\u3002\u8fd9\u79cd\u65b9\u6cd5\u9002\u7528\u4e8e\u7279\u5b9a\u7684\u9879\u76ee\u6216\u811a\u672c\uff0c\u4e0d\u4f1a\u5f71\u54cd\u7cfb\u7edf\u7684\u5176\u4ed6\u90e8\u5206\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u5728Python\u811a\u672c\u4e2d\u4f7f\u7528sys.path.append()<\/strong><\/p>\n<\/p>\n<ul>\n<li>\n<p>\u5728\u9700\u8981\u6dfb\u52a0\u8def\u5f84\u7684Python\u811a\u672c\u5f00\u5934\uff0c\u5bfc\u5165sys\u6a21\u5757\u5e76\u6dfb\u52a0\u8def\u5f84\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import sys<\/p>\n<p>sys.path.append(&#39;\/path\/to\/your\/module&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p>\u901a\u8fc7\u8fd9\u79cd\u65b9\u5f0f\uff0cPython\u89e3\u91ca\u5668\u4f1a\u5728\u6307\u5b9a\u8def\u5f84\u4e2d\u67e5\u627e\u6a21\u5757\u548c\u5305\u3002<\/p>\n<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u4f18\u7f3a\u70b9<\/strong><\/p>\n<\/p>\n<p><p>\u4f7f\u7528sys.path.append()\u7684\u4f18\u70b9\u662f\u5176\u7b80\u5355\u6027\u548c\u7075\u6d3b\u6027\uff0c\u7f3a\u70b9\u662f\u6bcf\u6b21\u8fd0\u884c\u811a\u672c\u65f6\u90fd\u9700\u8981\u91cd\u65b0\u6dfb\u52a0\u8def\u5f84\uff0c\u4e14\u8def\u5f84\u53ea\u5bf9\u5f53\u524d\u8fd0\u884c\u7684\u811a\u672c\u6709\u6548\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e09\u3001\u914d\u7f6e.pth\u6587\u4ef6<\/p>\n<\/p>\n<p><p>.pth\u6587\u4ef6\u662f\u53e6\u4e00\u79cd\u4e3aPython\u6dfb\u52a0\u8def\u5f84\u7684\u65b9\u6cd5\u3002\u5b83\u7684\u4f18\u70b9\u5728\u4e8e\u53ef\u4ee5\u4e3a\u7279\u5b9a\u7684Python\u73af\u5883\u6c38\u4e45\u6027\u5730\u6dfb\u52a0\u8def\u5f84\uff0c\u5e76\u4e14\u4e0d\u9700\u8981\u4fee\u6539\u73af\u5883\u53d8\u91cf\u6216\u5728\u6bcf\u4e2a\u811a\u672c\u4e2d\u624b\u52a8\u6dfb\u52a0\u8def\u5f84\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u521b\u5efa.pth\u6587\u4ef6<\/strong><\/p>\n<\/p>\n<ul>\n<li>\n<p>\u627e\u5230Python\u7684site-packages\u76ee\u5f55\uff0c\u8be5\u76ee\u5f55\u901a\u5e38\u4f4d\u4e8ePython\u5b89\u88c5\u76ee\u5f55\u4e0b\uff0c\u4f8b\u5982\uff1a<code>\/usr\/local\/lib\/python3.x\/site-packages<\/code>\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p>\u5728\u8be5\u76ee\u5f55\u4e2d\uff0c\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u6587\u672c\u6587\u4ef6\uff0c\u6587\u4ef6\u540d\u4ee5.pth\u4e3a\u540e\u7f00\uff0c\u4f8b\u5982\uff1a<code>mypaths.pth<\/code>\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p>\u5728\u6587\u4ef6\u4e2d\u6dfb\u52a0\u6bcf\u884c\u4e00\u4e2a\u8def\u5f84\uff0c\u6307\u5411\u9700\u8981\u6dfb\u52a0\u7684\u76ee\u5f55\uff0c\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code>\/path\/to\/your\/module1<\/p>\n<p>\/path\/to\/your\/module2<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u4f18\u7f3a\u70b9<\/strong><\/p>\n<\/p>\n<p><p>\u4f7f\u7528.pth\u6587\u4ef6\u7684\u4f18\u70b9\u662f\u5176\u6301\u4e45\u6027\u548c\u5bf9\u9879\u76ee\u7684\u900f\u660e\u6027\u3002\u7f3a\u70b9\u662f\u9700\u8981\u5177\u6709\u5bf9Python\u5b89\u88c5\u76ee\u5f55\u7684\u5199\u6743\u9650\uff0c\u5e76\u4e14\u8def\u5f84\u7684\u7ba1\u7406\u4e0d\u5982\u901a\u8fc7\u4ee3\u7801\u76f4\u63a5\u63a7\u5236\u6765\u5f97\u7075\u6d3b\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u56db\u3001\u603b\u7ed3\u4e0e\u6700\u4f73\u5b9e\u8df5<\/p>\n<\/p>\n<p><p>\u5728\u4e3aPython\u6dfb\u52a0\u8def\u5f84\u65f6\uff0c\u5e94\u6839\u636e\u5177\u4f53\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\uff1a<\/p>\n<\/p>\n<ul>\n<li><strong>\u73af\u5883\u53d8\u91cf<\/strong>\uff1a\u9002\u7528\u4e8e\u9700\u8981\u5728\u591a\u4e2a\u9879\u76ee\u4e2d\u5171\u4eab\u8def\u5f84\u6216\u4e3a\u6574\u4e2a\u7cfb\u7edf\u6dfb\u52a0\u8def\u5f84\u7684\u60c5\u51b5\u3002<\/li>\n<li><strong>sys.path.append()<\/strong>\uff1a\u9002\u7528\u4e8e\u7279\u5b9a\u9879\u76ee\u6216\u811a\u672c\u4e2d\u4e34\u65f6\u6dfb\u52a0\u8def\u5f84\u7684\u60c5\u51b5\u3002<\/li>\n<li><strong>.pth\u6587\u4ef6<\/strong>\uff1a\u9002\u7528\u4e8e\u7279\u5b9aPython\u73af\u5883\u4e2d\u6c38\u4e45\u6dfb\u52a0\u8def\u5f84\uff0c\u4e14\u4e0d\u60f3\u5f71\u54cd\u5176\u4ed6\u7cfb\u7edf\u73af\u5883\u7684\u60c5\u51b5\u3002<\/li>\n<\/ul>\n<p><p>\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\u53ef\u4ee5\u63d0\u9ad8\u5f00\u53d1\u6548\u7387\u548c\u4ee3\u7801\u7684\u53ef\u7ef4\u62a4\u6027\u3002\u5728\u5b9e\u9645\u9879\u76ee\u4e2d\uff0c\u5efa\u8bae\u5728\u5f00\u53d1\u521d\u671f\u5c31\u89c4\u5212\u597d\u8def\u5f84\u7ba1\u7406\uff0c\u4ee5\u907f\u514d\u540e\u671f\u7684\u6df7\u4e71\u548c\u590d\u6742\u6027\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u6dfb\u52a0\u81ea\u5b9a\u4e49\u6a21\u5757\u7684\u8def\u5f84\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528<code>sys.path<\/code>\u6765\u6dfb\u52a0\u81ea\u5b9a\u4e49\u6a21\u5757\u7684\u8def\u5f84\u3002\u9996\u5148\uff0c\u5bfc\u5165<code>sys<\/code>\u6a21\u5757\uff0c\u7136\u540e\u4f7f\u7528<code>sys.path.append(&#39;your_custom_path&#39;)<\/code>\u5c06\u60a8\u5e0c\u671b\u6dfb\u52a0\u7684\u8def\u5f84\u52a0\u5165\u5230\u7cfb\u7edf\u8def\u5f84\u4e2d\u3002\u8fd9\u5c06\u4f7fPython\u80fd\u591f\u627e\u5230\u5e76\u5bfc\u5165\u60a8\u5728\u8be5\u8def\u5f84\u4e0b\u7684\u81ea\u5b9a\u4e49\u6a21\u5757\u3002<\/p>\n<p><strong>\u5728Windows\u548cMac\/Linux\u4e0a\u6dfb\u52a0Python\u8def\u5f84\u7684\u65b9\u6cd5\u6709\u4ec0\u4e48\u4e0d\u540c\uff1f<\/strong><br \/>\u5728Windows\u4e0a\uff0c\u60a8\u53ef\u4ee5\u901a\u8fc7\u73af\u5883\u53d8\u91cf\u6765\u6dfb\u52a0Python\u8def\u5f84\u3002\u5728\u201c\u7cfb\u7edf\u5c5e\u6027\u201d\u4e2d\u627e\u5230\u201c\u73af\u5883\u53d8\u91cf\u201d\uff0c\u7136\u540e\u7f16\u8f91<code>PYTHONPATH<\/code>\u53d8\u91cf\uff0c\u6dfb\u52a0\u60a8\u7684\u8def\u5f84\u3002\u5728Mac\/Linux\u4e0a\uff0c\u53ef\u4ee5\u901a\u8fc7\u4fee\u6539<code>~\/.bash_profile<\/code>\u6216<code>~\/.bashrc<\/code>\u6587\u4ef6\u6765\u8bbe\u7f6e<code>PYTHONPATH<\/code>\uff0c\u6dfb\u52a0\u8def\u5f84\u5e76\u4f7f\u7528<code>export PYTHONPATH=&#39;your_custom_path&#39;<\/code>\u547d\u4ee4\u4fdd\u5b58\u66f4\u6539\u3002<\/p>\n<p><strong>\u662f\u5426\u53ef\u4ee5\u5728\u8fd0\u884c\u65f6\u52a8\u6001\u4fee\u6539Python\u7684\u6a21\u5757\u8def\u5f84\uff1f<\/strong><br \/>\u662f\u7684\uff0c\u53ef\u4ee5\u5728\u8fd0\u884c\u65f6\u52a8\u6001\u4fee\u6539Python\u7684\u6a21\u5757\u8def\u5f84\u3002\u901a\u8fc7\u5728\u4ee3\u7801\u4e2d\u4f7f\u7528<code>sys.path.append()<\/code>\u6216<code>sys.path.insert()<\/code>\uff0c\u60a8\u53ef\u4ee5\u5728\u7a0b\u5e8f\u6267\u884c\u65f6\u6dfb\u52a0\u6216\u4fee\u6539\u8def\u5f84\u3002\u8fd9\u5bf9\u4e8e\u4e34\u65f6\u4f7f\u7528\u67d0\u4e9b\u6a21\u5757\u6216\u5728\u7279\u5b9a\u73af\u5883\u4e2d\u8fd0\u884c\u4ee3\u7801\u975e\u5e38\u6709\u7528\u3002\u786e\u4fdd\u5728\u5bfc\u5165\u6a21\u5757\u4e4b\u524d\u6dfb\u52a0\u8def\u5f84\uff0c\u4ee5\u786e\u4fdd\u5b83\u4eec\u80fd\u591f\u88ab\u627e\u5230\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u4e3aPython\u6dfb\u52a0\u8def\u5f84\u7684\u65b9\u6cd5\u5305\u62ec\uff1a\u901a\u8fc7\u4fee\u6539\u73af\u5883\u53d8\u91cf\u3001\u4f7f\u7528sys.path.append()\u3001\u914d\u7f6e.pth\u6587\u4ef6\u3002 [&hellip;]","protected":false},"author":3,"featured_media":1011039,"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\/1011026"}],"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=1011026"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1011026\/revisions"}],"predecessor-version":[{"id":1011042,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1011026\/revisions\/1011042"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1011039"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1011026"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1011026"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1011026"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}