{"id":1138508,"date":"2025-01-08T22:00:39","date_gmt":"2025-01-08T14:00:39","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1138508.html"},"modified":"2025-01-08T22:00:42","modified_gmt":"2025-01-08T14:00:42","slug":"python%e5%a6%82%e4%bd%95%e5%bc%95%e5%85%a5%e9%9d%9e%e5%90%8c%e4%b8%80%e7%9b%ae%e5%bd%95%e4%b8%8b%e7%9a%84%e6%a8%a1%e5%9d%97","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1138508.html","title":{"rendered":"python\u5982\u4f55\u5f15\u5165\u975e\u540c\u4e00\u76ee\u5f55\u4e0b\u7684\u6a21\u5757"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25102115\/515d5f94-6838-41fb-9745-a2d30cb47f69.webp\" alt=\"python\u5982\u4f55\u5f15\u5165\u975e\u540c\u4e00\u76ee\u5f55\u4e0b\u7684\u6a21\u5757\" \/><\/p>\n<p><p> <strong>Python\u5f15\u5165\u975e\u540c\u4e00\u76ee\u5f55\u4e0b\u7684\u6a21\u5757\u7684\u65b9\u6cd5\u5305\u62ec\uff1a\u4f7f\u7528sys.path.append()\u3001\u4f7f\u7528PYTHONPATH\u73af\u5883\u53d8\u91cf\u3001\u4f7f\u7528\u76f8\u5bf9\u8def\u5f84\u3001\u4f7f\u7528\u5305\u7684\u5f62\u5f0f<\/strong>\u3002\u5176\u4e2d\uff0c\u4f7f\u7528sys.path.append()\u662f\u6700\u5e38\u89c1\u4e14\u7075\u6d3b\u7684\u65b9\u6cd5\u4e4b\u4e00\uff0c\u5b83\u5141\u8bb8\u5728\u8fd0\u884c\u65f6\u52a8\u6001\u5730\u6dfb\u52a0\u8def\u5f84\uff0c\u4f7f\u5f97Python\u80fd\u591f\u627e\u5230\u5e76\u5bfc\u5165\u6240\u9700\u7684\u6a21\u5757\u3002<\/p>\n<\/p>\n<p><p><strong>\u4f7f\u7528sys.path.append()<\/strong>\u662f\u4e00\u79cd\u975e\u5e38\u5b9e\u7528\u7684\u65b9\u6cd5\uff0c\u5b83\u53ef\u4ee5\u8ba9\u4f60\u5728\u8fd0\u884c\u65f6\u52a8\u6001\u5730\u6dfb\u52a0\u6a21\u5757\u8def\u5f84\uff0c\u4ece\u800c\u4f7fPython\u80fd\u591f\u627e\u5230\u5e76\u52a0\u8f7d\u6a21\u5757\u3002\u4f8b\u5982\uff0c\u5047\u8bbe\u4f60\u6709\u4e00\u4e2a\u6a21\u5757\u4f4d\u4e8e<code>\/path\/to\/your\/module<\/code>\uff0c\u4f60\u53ef\u4ee5\u5728\u4f60\u7684\u811a\u672c\u4e2d\u6dfb\u52a0\u5982\u4e0b\u4ee3\u7801\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>import your_module<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u7684\u4f18\u52bf\u5728\u4e8e\u7075\u6d3b\u6027\u9ad8\uff0c\u4e0d\u9700\u8981\u4fee\u6539\u7cfb\u7edf\u73af\u5883\u53d8\u91cf\uff0c\u4e5f\u4e0d\u9700\u8981\u5c06\u6a21\u5757\u79fb\u52a8\u5230Python\u7684\u9ed8\u8ba4\u641c\u7d22\u8def\u5f84\u4e2d\u3002\u63a5\u4e0b\u6765\u6211\u4eec\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u8fd9\u51e0\u79cd\u65b9\u6cd5\uff0c\u5e76\u63a2\u8ba8\u5b83\u4eec\u7684\u4f18\u7f3a\u70b9\u548c\u9002\u7528\u573a\u666f\u3002<\/p>\n<\/p>\n<h2><strong>\u4e00\u3001\u4f7f\u7528sys.path.append()<\/strong><\/h2>\n<p><h2>1\u3001\u57fa\u672c\u7528\u6cd5<\/h2>\n<\/p>\n<p><p>\u4f7f\u7528<code>sys.path.append()<\/code>\u65b9\u6cd5\u662f\u6700\u76f4\u63a5\u3001\u6700\u7075\u6d3b\u7684\u4e00\u79cd\u65b9\u5f0f\u3002\u4f60\u53ef\u4ee5\u5728\u4ee3\u7801\u4e2d\u52a8\u6001\u6dfb\u52a0\u9700\u8981\u7684\u8def\u5f84\uff0c\u4ece\u800c\u8ba9Python\u80fd\u591f\u627e\u5230\u5e76\u5bfc\u5165\u8be5\u8def\u5f84\u4e0b\u7684\u6a21\u5757\u3002\u793a\u4f8b\u5982\u4e0b\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>import your_module<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u6837\u505a\u7684\u597d\u5904\u662f<strong>\u7075\u6d3b\u6027\u9ad8<\/strong>\uff0c\u80fd\u591f\u5728\u4e0d\u4fee\u6539\u7cfb\u7edf\u73af\u5883\u53d8\u91cf\u7684\u524d\u63d0\u4e0b\uff0c\u52a8\u6001\u5730\u6dfb\u52a0\u6a21\u5757\u8def\u5f84\uff0c\u975e\u5e38\u9002\u5408\u5728\u5f00\u53d1\u548c\u6d4b\u8bd5\u9636\u6bb5\u4f7f\u7528\u3002<\/p>\n<\/p>\n<p><h2>2\u3001\u6ce8\u610f\u4e8b\u9879<\/h2>\n<\/p>\n<p><p>\u4f7f\u7528<code>sys.path.append()<\/code>\u65f6\u9700\u8981\u6ce8\u610f\u4ee5\u4e0b\u51e0\u70b9\uff1a<\/p>\n<\/p>\n<ul>\n<li><strong>\u8def\u5f84\u7684\u6709\u6548\u6027<\/strong>\uff1a\u786e\u4fdd\u6dfb\u52a0\u7684\u8def\u5f84\u662f\u6709\u6548\u7684\uff0c\u5e76\u4e14\u80fd\u591f\u8bbf\u95ee\u3002<\/li>\n<li><strong>\u8def\u5f84\u7684\u987a\u5e8f<\/strong>\uff1a<code>sys.path<\/code>\u662f\u4e00\u4e2a\u5217\u8868\uff0cPython\u4f1a\u6309\u987a\u5e8f\u641c\u7d22\u8fd9\u4e9b\u8def\u5f84\uff0c\u5148\u627e\u5230\u7684\u6a21\u5757\u4f1a\u4f18\u5148\u88ab\u52a0\u8f7d\u3002<\/li>\n<li><strong>\u76f8\u5bf9\u8def\u5f84<\/strong>\uff1a\u5c3d\u91cf\u4f7f\u7528\u7edd\u5bf9\u8def\u5f84\uff0c\u907f\u514d\u76f8\u5bf9\u8def\u5f84\u5e26\u6765\u7684\u4e0d\u786e\u5b9a\u6027\u3002<\/li>\n<\/ul>\n<h2><strong>\u4e8c\u3001\u4f7f\u7528PYTHONPATH\u73af\u5883\u53d8\u91cf<\/strong><\/h2>\n<p><h2>1\u3001\u57fa\u672c\u539f\u7406<\/h2>\n<\/p>\n<p><p><code>PYTHONPATH<\/code>\u662f\u4e00\u4e2a\u73af\u5883\u53d8\u91cf\uff0c\u901a\u8fc7\u8bbe\u7f6e\u8fd9\u4e2a\u53d8\u91cf\uff0c\u53ef\u4ee5\u8ba9Python\u5728\u542f\u52a8\u65f6\u81ea\u52a8\u5305\u542b\u6307\u5b9a\u7684\u8def\u5f84\uff0c\u4ece\u800c\u80fd\u591f\u5bfc\u5165\u8fd9\u4e9b\u8def\u5f84\u4e0b\u7684\u6a21\u5757\u3002\u4f60\u53ef\u4ee5\u5728\u547d\u4ee4\u884c\u4e2d\u8bbe\u7f6e\u8fd9\u4e2a\u53d8\u91cf\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-sh\">export PYTHONPATH=&quot;\/path\/to\/your\/module:$PYTHONPATH&quot;<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u6216\u8005\u5728Windows\u4e0a\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-sh\">set PYTHONPATH=C:\\path\\to\\your\\module;%PYTHONPATH%<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h2>2\u3001\u4f18\u7f3a\u70b9<\/h2>\n<\/p>\n<p><p>\u4f7f\u7528<code>PYTHONPATH<\/code>\u7684\u4f18\u70b9\u662f<strong>\u5168\u5c40\u6709\u6548<\/strong>\uff0c\u4e00\u65e6\u8bbe\u7f6e\uff0c\u65e0\u9700\u5728\u6bcf\u4e2a\u811a\u672c\u4e2d\u6dfb\u52a0\u8def\u5f84\uff0c\u975e\u5e38\u9002\u5408\u751f\u4ea7\u73af\u5883\u3002\u4f46\u662f\uff0c\u5b83\u4e5f\u6709\u4e00\u4e9b\u7f3a\u70b9\uff1a<\/p>\n<\/p>\n<ul>\n<li><strong>\u9700\u4fee\u6539\u7cfb\u7edf\u73af\u5883\u53d8\u91cf<\/strong>\uff1a\u8fd9\u53ef\u80fd\u5bf9\u5176\u4ed6\u7a0b\u5e8f\u9020\u6210\u5f71\u54cd\u3002<\/li>\n<li><strong>\u4e0d\u591f\u7075\u6d3b<\/strong>\uff1a\u5728\u4e0d\u540c\u7684\u9879\u76ee\u4e2d\u53ef\u80fd\u9700\u8981\u4e0d\u540c\u7684\u8def\u5f84\u914d\u7f6e\u3002<\/li>\n<\/ul>\n<h2><strong>\u4e09\u3001\u4f7f\u7528\u76f8\u5bf9\u8def\u5f84<\/strong><\/h2>\n<p><h2>1\u3001\u76f8\u5bf9\u8def\u5f84\u7684\u4f7f\u7528<\/h2>\n<\/p>\n<p><p>\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u4f60\u53ef\u80fd\u5e0c\u671b\u4f7f\u7528\u76f8\u5bf9\u8def\u5f84\u6765\u5bfc\u5165\u6a21\u5757\uff0c\u8fd9\u6837\u53ef\u4ee5\u8ba9\u4ee3\u7801\u66f4\u52a0\u7075\u6d3b\u3002\u4f8b\u5982\uff0c\u5047\u8bbe\u4f60\u7684\u9879\u76ee\u7ed3\u6784\u5982\u4e0b\uff1a<\/p>\n<\/p>\n<p><pre><code>project\/<\/p>\n<p>\u2502<\/p>\n<p>\u251c\u2500\u2500 m<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>n.py<\/p>\n<p>\u2514\u2500\u2500 module\/<\/p>\n<p>    \u2514\u2500\u2500 your_module.py<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4f60\u53ef\u4ee5\u5728<code>main.py<\/code>\u4e2d\u4f7f\u7528\u76f8\u5bf9\u8def\u5f84\u5bfc\u5165<code>your_module<\/code>\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import os<\/p>\n<p>import sys<\/p>\n<h2><strong>\u83b7\u53d6\u5f53\u524d\u6587\u4ef6\u7684\u76ee\u5f55<\/strong><\/h2>\n<p>current_dir = os.path.dirname(os.path.abspath(__file__))<\/p>\n<h2><strong>\u6784\u9020\u6a21\u5757\u8def\u5f84<\/strong><\/h2>\n<p>module_path = os.path.join(current_dir, &#39;module&#39;)<\/p>\n<h2><strong>\u6dfb\u52a0\u5230sys.path\u4e2d<\/strong><\/h2>\n<p>sys.path.append(module_path)<\/p>\n<p>import your_module<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h2>2\u3001\u9002\u7528\u573a\u666f<\/h2>\n<\/p>\n<p><p>\u4f7f\u7528\u76f8\u5bf9\u8def\u5f84\u7684\u4f18\u52bf\u5728\u4e8e<strong>\u4ee3\u7801\u7684\u53ef\u79fb\u690d\u6027<\/strong>\uff0c\u7279\u522b\u9002\u5408\u5728\u540c\u4e00\u9879\u76ee\u4e2d\u4e0d\u540c\u6a21\u5757\u4e4b\u95f4\u7684\u5f15\u7528\u3002\u4f46\u662f\uff0c\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c<strong>\u76f8\u5bf9\u8def\u5f84\u7684\u590d\u6742\u6027<\/strong>\u53ef\u80fd\u4f1a\u589e\u52a0\u7ef4\u62a4\u7684\u96be\u5ea6\u3002<\/p>\n<\/p>\n<h2><strong>\u56db\u3001\u4f7f\u7528\u5305\u7684\u5f62\u5f0f<\/strong><\/h2>\n<p><h2>1\u3001\u5305\u7684\u57fa\u672c\u6982\u5ff5<\/h2>\n<\/p>\n<p><p>\u5728Python\u4e2d\uff0c\u5305\u662f\u4e00\u79cd\u7ec4\u7ec7\u6a21\u5757\u7684\u65b9\u5f0f\uff0c\u53ef\u4ee5\u901a\u8fc7\u76ee\u5f55\u548c<code>__init__.py<\/code>\u6587\u4ef6\u6765\u5b9a\u4e49\u5305\u3002\u901a\u8fc7\u4f7f\u7528\u5305\uff0c\u53ef\u4ee5\u66f4\u52a0\u7ed3\u6784\u5316\u5730\u7ec4\u7ec7\u4ee3\u7801\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code>project\/<\/p>\n<p>\u2502<\/p>\n<p>\u251c\u2500\u2500 main.py<\/p>\n<p>\u2514\u2500\u2500 mypackage\/<\/p>\n<p>    \u251c\u2500\u2500 __init__.py<\/p>\n<p>    \u2514\u2500\u2500 your_module.py<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u4f60\u53ef\u4ee5\u5728<code>main.py<\/code>\u4e2d\u5bfc\u5165<code>your_module<\/code>\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from mypackage import your_module<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h2>2\u3001\u4f18\u7f3a\u70b9<\/h2>\n<\/p>\n<p><p>\u4f7f\u7528\u5305\u7684\u4f18\u52bf\u5728\u4e8e<strong>\u4ee3\u7801\u7684\u7ec4\u7ec7\u7ed3\u6784\u66f4\u52a0\u6e05\u6670<\/strong>\uff0c\u7279\u522b\u9002\u5408\u5927\u578b\u9879\u76ee\u3002\u4f46\u662f\uff0c\u8fd9\u79cd\u65b9\u6cd5\u4e5f\u8981\u6c42<strong>\u5bf9\u9879\u76ee\u7ed3\u6784\u6709\u8f83\u9ad8\u7684\u89c4\u8303\u6027<\/strong>\uff0c\u9700\u8981\u989d\u5916\u7684\u76ee\u5f55\u548c\u6587\u4ef6\u7ba1\u7406\u3002<\/p>\n<\/p>\n<h2><strong>\u4e94\u3001\u603b\u7ed3<\/strong><\/h2>\n<p><p>\u5728Python\u4e2d\u5f15\u5165\u975e\u540c\u4e00\u76ee\u5f55\u4e0b\u7684\u6a21\u5757\u6709\u591a\u79cd\u65b9\u6cd5\uff0c\u6bcf\u79cd\u65b9\u6cd5\u90fd\u6709\u5176\u9002\u7528\u7684\u573a\u666f\u548c\u4f18\u7f3a\u70b9\uff1a<\/p>\n<\/p>\n<ul>\n<li><strong>\u4f7f\u7528sys.path.append()<\/strong>\uff1a\u7075\u6d3b\u6027\u9ad8\uff0c\u9002\u5408\u5f00\u53d1\u548c\u6d4b\u8bd5\u9636\u6bb5\u3002<\/li>\n<li><strong>\u4f7f\u7528PYTHONPATH\u73af\u5883\u53d8\u91cf<\/strong>\uff1a\u5168\u5c40\u6709\u6548\uff0c\u9002\u5408\u751f\u4ea7\u73af\u5883\uff0c\u4f46\u9700\u4fee\u6539\u7cfb\u7edf\u73af\u5883\u53d8\u91cf\u3002<\/li>\n<li><strong>\u4f7f\u7528\u76f8\u5bf9\u8def\u5f84<\/strong>\uff1a\u4ee3\u7801\u53ef\u79fb\u690d\u6027\u5f3a\uff0c\u9002\u5408\u540c\u4e00\u9879\u76ee\u5185\u90e8\u7684\u5f15\u7528\u3002<\/li>\n<li><strong>\u4f7f\u7528\u5305\u7684\u5f62\u5f0f<\/strong>\uff1a\u7ec4\u7ec7\u7ed3\u6784\u6e05\u6670\uff0c\u9002\u5408\u5927\u578b\u9879\u76ee\u3002<\/li>\n<\/ul>\n<p><p>\u6839\u636e\u5b9e\u9645\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\uff0c\u53ef\u4ee5\u8ba9\u4ee3\u7801\u66f4\u52a0\u7075\u6d3b\u3001\u53ef\u7ef4\u62a4\u6027\u66f4\u5f3a\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u9879\u76ee\u4e2d\u7ba1\u7406\u4e0d\u540c\u76ee\u5f55\u4e0b\u7684\u6a21\u5757\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u7ba1\u7406\u4e0d\u540c\u76ee\u5f55\u4e0b\u7684\u6a21\u5757\u901a\u5e38\u53ef\u4ee5\u901a\u8fc7\u8bbe\u7f6e<code>PYTHONPATH<\/code>\u6216\u4f7f\u7528\u76f8\u5bf9\u5bfc\u5165\u6765\u5b9e\u73b0\u3002\u4f60\u53ef\u4ee5\u5728\u9879\u76ee\u7684\u6839\u76ee\u5f55\u4e2d\u521b\u5efa\u4e00\u4e2a<code>__init__.py<\/code>\u6587\u4ef6\uff0c\u5c06\u591a\u4e2a\u5b50\u76ee\u5f55\u89c6\u4e3a\u5305\u3002\u540c\u65f6\uff0c\u901a\u8fc7\u4fee\u6539\u73af\u5883\u53d8\u91cf<code>PYTHONPATH<\/code>\uff0c\u53ef\u4ee5\u5c06\u5176\u4ed6\u76ee\u5f55\u6dfb\u52a0\u5230\u6a21\u5757\u641c\u7d22\u8def\u5f84\u4e2d\uff0c\u4f7f\u5f97Python\u80fd\u591f\u627e\u5230\u6240\u9700\u7684\u6a21\u5757\u3002<\/p>\n<p><strong>\u5728\u5bfc\u5165\u6a21\u5757\u65f6\u9047\u5230\u9519\u8bef\uff0c\u600e\u4e48\u529e\uff1f<\/strong><br \/>\u5982\u679c\u5728\u5bfc\u5165\u975e\u540c\u4e00\u76ee\u5f55\u4e0b\u7684\u6a21\u5757\u65f6\u9047\u5230\u9519\u8bef\uff0c\u9996\u5148\u8981\u68c0\u67e5\u6a21\u5757\u8def\u5f84\u662f\u5426\u6b63\u786e\u3002\u786e\u8ba4\u76ee\u6807\u6a21\u5757\u7684\u8def\u5f84\u662f\u5426\u5728<code>sys.path<\/code>\u4e2d\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u4ee3\u7801\u5b9e\u73b0\uff1a  <\/p>\n<pre><code class=\"language-python\">import sys\nprint(sys.path)\n<\/code><\/pre>\n<p>\u5982\u679c\u76ee\u6807\u8def\u5f84\u4e0d\u5728\u5217\u8868\u4e2d\uff0c\u53ef\u4ee5\u4e34\u65f6\u6dfb\u52a0\u8def\u5f84\uff1a<\/p>\n<pre><code class=\"language-python\">import sys\nsys.path.append(&#39;\/path\/to\/your\/module&#39;)\n<\/code><\/pre>\n<p>\u8fd9\u6837\u5c31\u53ef\u4ee5\u907f\u514d\u5bfc\u5165\u65f6\u7684\u9519\u8bef\u3002<\/p>\n<p><strong>\u4f7f\u7528\u865a\u62df\u73af\u5883\u4f1a\u5f71\u54cd\u6a21\u5757\u5bfc\u5165\u5417\uff1f<\/strong><br \/>\u865a\u62df\u73af\u5883\u4e0d\u4f1a\u76f4\u63a5\u5f71\u54cd\u4f60\u5bfc\u5165\u6a21\u5757\u7684\u65b9\u5f0f\uff0c\u4f46\u5b83\u786e\u5b9e\u4f1a\u6539\u53d8\u6a21\u5757\u7684\u641c\u7d22\u8def\u5f84\u3002\u5f53\u4f60\u5728\u865a\u62df\u73af\u5883\u4e2d\u5de5\u4f5c\u65f6\uff0c\u786e\u4fdd\u5728\u8be5\u73af\u5883\u4e2d\u5b89\u88c5\u4e86\u6240\u6709\u9700\u8981\u7684\u6a21\u5757\u3002\u6b64\u5916\uff0c\u68c0\u67e5\u865a\u62df\u73af\u5883\u7684<code>site-packages<\/code>\u76ee\u5f55\uff0c\u786e\u8ba4\u6240\u9700\u6a21\u5757\u662f\u5426\u5b58\u5728\uff0c\u786e\u4fdd\u4f60\u7684\u9879\u76ee\u80fd\u591f\u6b63\u786e\u5bfc\u5165\u6240\u9700\u7684\u6a21\u5757\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Python\u5f15\u5165\u975e\u540c\u4e00\u76ee\u5f55\u4e0b\u7684\u6a21\u5757\u7684\u65b9\u6cd5\u5305\u62ec\uff1a\u4f7f\u7528sys.path.append()\u3001\u4f7f\u7528PYTHONPATH [&hellip;]","protected":false},"author":3,"featured_media":1138519,"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\/1138508"}],"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=1138508"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1138508\/revisions"}],"predecessor-version":[{"id":1138522,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1138508\/revisions\/1138522"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1138519"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1138508"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1138508"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1138508"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}