{"id":1037635,"date":"2024-12-31T12:16:42","date_gmt":"2024-12-31T04:16:42","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1037635.html"},"modified":"2024-12-31T12:16:45","modified_gmt":"2024-12-31T04:16:45","slug":"python%e5%a6%82%e4%bd%95%e5%af%bc%e5%85%a5%e5%90%8c%e4%b8%80%e5%8c%85%e6%a8%a1%e5%9d%97","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1037635.html","title":{"rendered":"python\u5982\u4f55\u5bfc\u5165\u540c\u4e00\u5305\u6a21\u5757"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-docs.pingcode.com\/wp-content\/uploads\/2024\/12\/18a1ca45-f32f-4645-b999-91205602910e.webp?x-oss-process=image\/auto-orient,1\/format,webp\" alt=\"python\u5982\u4f55\u5bfc\u5165\u540c\u4e00\u5305\u6a21\u5757\" \/><\/p>\n<p><p> <strong>Python \u5bfc\u5165\u540c\u4e00\u5305\u6a21\u5757\u7684\u51e0\u79cd\u65b9\u5f0f\u3001\u4f7f\u7528\u76f8\u5bf9\u5bfc\u5165\u3001\u4f7f\u7528\u7edd\u5bf9\u5bfc\u5165<\/strong><\/p>\n<\/p>\n<p><p>\u5728Python\u4e2d\uff0c\u5bfc\u5165\u540c\u4e00\u5305\u4e2d\u7684\u6a21\u5757\u53ef\u4ee5\u901a\u8fc7\u51e0\u79cd\u65b9\u5f0f\u6765\u5b8c\u6210\uff0c\u4e3b\u8981\u6709\u4f7f\u7528\u7edd\u5bf9\u5bfc\u5165\u548c\u76f8\u5bf9\u5bfc\u5165\u4e24\u79cd\u65b9\u5f0f\u3002<strong>\u7edd\u5bf9\u5bfc\u5165\u66f4\u4e3a\u63a8\u8350\uff0c\u56e0\u4e3a\u5b83\u66f4\u52a0\u660e\u786e\u548c\u6613\u4e8e\u7ef4\u62a4<\/strong>\u3002\u4e0b\u9762\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u8fd9\u4e24\u79cd\u5bfc\u5165\u65b9\u5f0f\uff0c\u5e76\u4e3e\u4f8b\u8bf4\u660e\u5982\u4f55\u5728\u5b9e\u9645\u9879\u76ee\u4e2d\u4f7f\u7528\u5b83\u4eec\u3002<\/p>\n<\/p>\n<hr>\n<p><h3>\u4e00\u3001\u7edd\u5bf9\u5bfc\u5165<\/h3>\n<\/p>\n<p><p>\u7edd\u5bf9\u5bfc\u5165\u662f\u6307\u4f7f\u7528\u6a21\u5757\u7684\u5168\u8def\u5f84\u6765\u8fdb\u884c\u5bfc\u5165\uff0c\u8fd9\u6837\u53ef\u4ee5\u786e\u4fdd\u5bfc\u5165\u7684\u6a21\u5757\u662f\u6b63\u786e\u7684\uff0c\u4e0d\u4f1a\u56e0\u4e3a\u547d\u540d\u51b2\u7a81\u6216\u5305\u7ed3\u6784\u7684\u6539\u53d8\u800c\u5bfc\u81f4\u9519\u8bef\u3002<\/p>\n<\/p>\n<p><h4>1. \u4f7f\u7528\u6a21\u5757\u7684\u5168\u8def\u5f84\u8fdb\u884c\u5bfc\u5165<\/h4>\n<\/p>\n<p><p>\u7edd\u5bf9\u5bfc\u5165\u7684\u8bed\u6cd5\u975e\u5e38\u7b80\u5355\uff0c\u76f4\u63a5\u4f7f\u7528\u6a21\u5757\u7684\u5168\u8def\u5f84\u8fdb\u884c\u5bfc\u5165\u3002\u5047\u8bbe\u9879\u76ee\u7ed3\u6784\u5982\u4e0b\uff1a<\/p>\n<\/p>\n<p><pre><code>my_package\/<\/p>\n<p>    __init__.py<\/p>\n<p>    module1.py<\/p>\n<p>    module2.py<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728 <code>module2.py<\/code> \u4e2d\u5bfc\u5165 <code>module1<\/code> \u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u65b9\u5f0f\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># module2.py<\/p>\n<p>import my_package.module1<\/p>\n<h2><strong>\u4f7f\u7528 module1 \u7684\u5185\u5bb9<\/strong><\/h2>\n<p>my_package.module1.some_function()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u901a\u8fc7\u8fd9\u79cd\u65b9\u5f0f\uff0c\u6211\u4eec\u53ef\u4ee5\u786e\u4fdd\u5bfc\u5165\u7684\u662f <code>my_package<\/code> \u4e0b\u7684 <code>module1<\/code> \u6a21\u5757\u3002<\/p>\n<\/p>\n<p><h4>2. \u4f7f\u7528 from &#8230; import \u8bed\u53e5<\/h4>\n<\/p>\n<p><p>\u7edd\u5bf9\u5bfc\u5165\u4e5f\u53ef\u4ee5\u4f7f\u7528 <code>from ... import<\/code> \u8bed\u53e5\u6765\u5bfc\u5165\u7279\u5b9a\u7684\u51fd\u6570\u6216\u7c7b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># module2.py<\/p>\n<p>from my_package.module1 import some_function<\/p>\n<h2><strong>\u4f7f\u7528\u5bfc\u5165\u7684\u51fd\u6570<\/strong><\/h2>\n<p>some_function()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u5f0f\u907f\u514d\u4e86\u5728\u4f7f\u7528\u51fd\u6570\u65f6\u9700\u8981\u5e26\u4e0a\u6a21\u5757\u524d\u7f00\uff0c\u4f7f\u4ee3\u7801\u66f4\u52a0\u7b80\u6d01\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u76f8\u5bf9\u5bfc\u5165<\/h3>\n<\/p>\n<p><p>\u76f8\u5bf9\u5bfc\u5165\u662f\u57fa\u4e8e\u5f53\u524d\u6a21\u5757\u6240\u5728\u7684\u5305\u6765\u8fdb\u884c\u5bfc\u5165\u7684\uff0c\u4f7f\u7528 <code>.<\/code> \u548c <code>..<\/code> \u8868\u793a\u5f53\u524d\u76ee\u5f55\u548c\u7236\u76ee\u5f55\u3002\u76f8\u5bf9\u5bfc\u5165\u5728\u5305\u7684\u7ed3\u6784\u53d1\u751f\u6539\u53d8\u65f6\u6bd4\u8f83\u5bb9\u6613\u8c03\u6574\u3002<\/p>\n<\/p>\n<p><h4>1. \u4f7f\u7528\u5355\u4e2a\u70b9\u8868\u793a\u5f53\u524d\u5305<\/h4>\n<\/p>\n<p><p>\u5047\u8bbe\u9879\u76ee\u7ed3\u6784\u5982\u4e0b\uff1a<\/p>\n<\/p>\n<p><pre><code>my_package\/<\/p>\n<p>    __init__.py<\/p>\n<p>    module1.py<\/p>\n<p>    module2.py<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728 <code>module2.py<\/code> \u4e2d\u5bfc\u5165 <code>module1<\/code> \u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u65b9\u5f0f\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># module2.py<\/p>\n<p>from . import module1<\/p>\n<h2><strong>\u4f7f\u7528 module1 \u7684\u5185\u5bb9<\/strong><\/h2>\n<p>module1.some_function()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u901a\u8fc7\u8fd9\u79cd\u65b9\u5f0f\uff0c\u5bfc\u5165\u7684\u662f\u5f53\u524d\u5305 <code>my_package<\/code> \u4e0b\u7684 <code>module1<\/code> \u6a21\u5757\u3002<\/p>\n<\/p>\n<p><h4>2. \u4f7f\u7528\u4e24\u4e2a\u70b9\u8868\u793a\u7236\u5305<\/h4>\n<\/p>\n<p><p>\u5982\u679c\u6a21\u5757\u5728\u66f4\u6df1\u7684\u5c42\u7ea7\u7ed3\u6784\u4e2d\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528\u4e24\u4e2a\u70b9\u8868\u793a\u7236\u5305\uff1a<\/p>\n<\/p>\n<p><pre><code>my_package\/<\/p>\n<p>    __init__.py<\/p>\n<p>    sub_package\/<\/p>\n<p>        __init__.py<\/p>\n<p>        module3.py<\/p>\n<p>    module1.py<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728 <code>module3.py<\/code> \u4e2d\u5bfc\u5165 <code>module1<\/code> \u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u65b9\u5f0f\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># module3.py<\/p>\n<p>from .. import module1<\/p>\n<h2><strong>\u4f7f\u7528 module1 \u7684\u5185\u5bb9<\/strong><\/h2>\n<p>module1.some_function()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u901a\u8fc7\u8fd9\u79cd\u65b9\u5f0f\uff0c\u6211\u4eec\u53ef\u4ee5\u5bfc\u5165\u7236\u5305 <code>my_package<\/code> \u4e0b\u7684 <code>module1<\/code> \u6a21\u5757\u3002<\/p>\n<\/p>\n<hr>\n<p><h3>\u4e09\u3001\u76f8\u5bf9\u5bfc\u5165\u4e0e\u7edd\u5bf9\u5bfc\u5165\u7684\u6bd4\u8f83<\/h3>\n<\/p>\n<p><h4>1. \u7ef4\u62a4\u6027<\/h4>\n<\/p>\n<p><p><strong>\u7edd\u5bf9\u5bfc\u5165<\/strong>\uff1a\u7edd\u5bf9\u5bfc\u5165\u66f4\u6613\u4e8e\u7ef4\u62a4\uff0c\u56e0\u4e3a\u5b83\u4eec\u5728\u5305\u7ed3\u6784\u53d8\u5316\u65f6\u66f4\u5bb9\u6613\u8c03\u6574\u3002\u7edd\u5bf9\u8def\u5f84\u660e\u786e\u6307\u51fa\u4e86\u6a21\u5757\u7684\u6765\u6e90\uff0c\u51cf\u5c11\u4e86\u547d\u540d\u51b2\u7a81\u7684\u53ef\u80fd\u6027\u3002<\/p>\n<\/p>\n<p><p><strong>\u76f8\u5bf9\u5bfc\u5165<\/strong>\uff1a\u76f8\u5bf9\u5bfc\u5165\u5728\u5305\u7ed3\u6784\u53d1\u751f\u53d8\u5316\u65f6\u9700\u8981\u8c03\u6574\u5bfc\u5165\u8def\u5f84\uff0c\u4f46\u5b83\u5728\u5305\u7684\u5185\u90e8\u4f9d\u8d56\u5173\u7cfb\u8f83\u590d\u6742\u65f6\u8f83\u4e3a\u65b9\u4fbf\u3002<\/p>\n<\/p>\n<p><h4>2. \u53ef\u8bfb\u6027<\/h4>\n<\/p>\n<p><p><strong>\u7edd\u5bf9\u5bfc\u5165<\/strong>\uff1a\u7edd\u5bf9\u5bfc\u5165\u66f4\u52a0\u6e05\u6670\uff0c\u5bb9\u6613\u7406\u89e3\u6a21\u5757\u7684\u6765\u6e90\uff0c\u5bf9\u4e8e\u65b0\u52a0\u5165\u9879\u76ee\u7684\u5f00\u53d1\u8005\u6765\u8bf4\u66f4\u5bb9\u6613\u4e0a\u624b\u3002<\/p>\n<\/p>\n<p><p><strong>\u76f8\u5bf9\u5bfc\u5165<\/strong>\uff1a\u76f8\u5bf9\u5bfc\u5165\u5728\u6a21\u5757\u95f4\u5173\u7cfb\u660e\u786e\u65f6\u4ee3\u7801\u8f83\u4e3a\u7b80\u6d01\uff0c\u4f46\u5bf9\u4e8e\u590d\u6742\u7684\u5305\u7ed3\u6784\u53ef\u80fd\u4f1a\u589e\u52a0\u7406\u89e3\u96be\u5ea6\u3002<\/p>\n<\/p>\n<p><h4>3. \u6027\u80fd<\/h4>\n<\/p>\n<p><p>\u5bfc\u5165\u6a21\u5757\u7684\u6027\u80fd\u5dee\u5f02\u4e3b\u8981\u53d6\u51b3\u4e8e Python \u89e3\u91ca\u5668\u7684\u5b9e\u73b0\uff0c\u901a\u5e38\u7edd\u5bf9\u5bfc\u5165\u548c\u76f8\u5bf9\u5bfc\u5165\u5728\u6027\u80fd\u4e0a\u7684\u5dee\u5f02\u53ef\u4ee5\u5ffd\u7565\u4e0d\u8ba1\u3002<\/p>\n<\/p>\n<hr>\n<p><h3>\u56db\u3001\u5b9e\u9645\u9879\u76ee\u4e2d\u7684\u4f7f\u7528\u5efa\u8bae<\/h3>\n<\/p>\n<p><p>\u5728\u5b9e\u9645\u9879\u76ee\u4e2d\uff0c\u63a8\u8350\u4f18\u5148\u4f7f\u7528\u7edd\u5bf9\u5bfc\u5165\uff0c\u7279\u522b\u662f\u5bf9\u4e8e\u8f83\u5927\u548c\u590d\u6742\u7684\u9879\u76ee\u3002\u7edd\u5bf9\u5bfc\u5165\u66f4\u52a0\u660e\u786e\u548c\u6613\u4e8e\u7ef4\u62a4\uff0c\u53ef\u4ee5\u51cf\u5c11\u6f5c\u5728\u7684\u9519\u8bef\u3002<\/p>\n<\/p>\n<p><p>\u5bf9\u4e8e\u4e00\u4e9b\u8f83\u5c0f\u7684\u9879\u76ee\u6216\u5305\u7ed3\u6784\u6bd4\u8f83\u7b80\u5355\u7684\u60c5\u51b5\u4e0b\uff0c\u53ef\u4ee5\u6839\u636e\u9700\u8981\u4f7f\u7528\u76f8\u5bf9\u5bfc\u5165\uff0c\u4f7f\u4ee3\u7801\u66f4\u52a0\u7b80\u6d01\u3002<\/p>\n<\/p>\n<hr>\n<p><h3>\u4e94\u3001\u793a\u4f8b\u4ee3\u7801<\/h3>\n<\/p>\n<p><p>\u4ee5\u4e0b\u662f\u4e00\u4e2a\u5b8c\u6574\u7684\u793a\u4f8b\uff0c\u5c55\u793a\u4e86\u5982\u4f55\u4f7f\u7528\u7edd\u5bf9\u5bfc\u5165\u548c\u76f8\u5bf9\u5bfc\u5165\uff1a<\/p>\n<\/p>\n<p><h4>\u9879\u76ee\u7ed3\u6784<\/h4>\n<\/p>\n<p><pre><code>my_package\/<\/p>\n<p>    __init__.py<\/p>\n<p>    module1.py<\/p>\n<p>    module2.py<\/p>\n<p>    sub_package\/<\/p>\n<p>        __init__.py<\/p>\n<p>        module3.py<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>module1.py<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\"># module1.py<\/p>\n<p>def some_function():<\/p>\n<p>    print(&quot;Function from module1&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>module2.py\uff08\u7edd\u5bf9\u5bfc\u5165\uff09<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\"># module2.py<\/p>\n<p>from my_package.module1 import some_function<\/p>\n<p>def another_function():<\/p>\n<p>    print(&quot;Function from module2&quot;)<\/p>\n<p>    some_function()<\/p>\n<p>if __name__ == &quot;__m<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>n__&quot;:<\/p>\n<p>    another_function()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>module3.py\uff08\u76f8\u5bf9\u5bfc\u5165\uff09<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\"># module3.py<\/p>\n<p>from ..module1 import some_function<\/p>\n<p>def third_function():<\/p>\n<p>    print(&quot;Function from module3&quot;)<\/p>\n<p>    some_function()<\/p>\n<p>if __name__ == &quot;__main__&quot;:<\/p>\n<p>    third_function()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u901a\u8fc7\u4ee5\u4e0a\u793a\u4f8b\uff0c\u6211\u4eec\u53ef\u4ee5\u6e05\u6670\u5730\u770b\u5230\u7edd\u5bf9\u5bfc\u5165\u548c\u76f8\u5bf9\u5bfc\u5165\u7684\u4f7f\u7528\u65b9\u5f0f\u53ca\u5176\u6548\u679c\u3002\u5728\u5b9e\u9645\u9879\u76ee\u4e2d\uff0c\u53ef\u4ee5\u6839\u636e\u5177\u4f53\u60c5\u51b5\u9009\u62e9\u5408\u9002\u7684\u5bfc\u5165\u65b9\u5f0f\u6765\u63d0\u9ad8\u4ee3\u7801\u7684\u53ef\u8bfb\u6027\u548c\u7ef4\u62a4\u6027\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u5bfc\u5165\u540c\u4e00\u5305\u4e2d\u7684\u6a21\u5757\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u5bfc\u5165\u540c\u4e00\u5305\u7684\u6a21\u5757\u53ef\u4ee5\u4f7f\u7528\u76f8\u5bf9\u5bfc\u5165\u548c\u7edd\u5bf9\u5bfc\u5165\u4e24\u79cd\u65b9\u5f0f\u3002\u7edd\u5bf9\u5bfc\u5165\u662f\u6307\u4ece\u9879\u76ee\u7684\u6839\u76ee\u5f55\u5f00\u59cb\u5bfc\u5165\u6a21\u5757\uff0c\u901a\u5e38\u4f7f\u7528<code>import \u5305\u540d.\u6a21\u5757\u540d<\/code>\u7684\u683c\u5f0f\u3002\u76f8\u5bf9\u5bfc\u5165\u5219\u662f\u4f7f\u7528<code>.<\/code>\u548c<code>..<\/code>\u6765\u8868\u793a\u76f8\u5bf9\u8def\u5f84\uff0c\u6bd4\u5982<code>from .\u6a21\u5757\u540d import \u7c7b\u540d<\/code>\u3002\u9009\u62e9\u54ea\u79cd\u65b9\u5f0f\u53d6\u51b3\u4e8e\u4f60\u7684\u9879\u76ee\u7ed3\u6784\u548c\u4e2a\u4eba\u504f\u597d\u3002<\/p>\n<p><strong>\u5728\u4e00\u4e2a\u5305\u4e2d\u5982\u4f55\u907f\u514d\u5faa\u73af\u5bfc\u5165\u95ee\u9898\uff1f<\/strong><br \/>\u5faa\u73af\u5bfc\u5165\u901a\u5e38\u53d1\u751f\u5728\u4e24\u4e2a\u6a21\u5757\u4e92\u76f8\u5bfc\u5165\u5bf9\u65b9\u7684\u60c5\u51b5\u4e0b\u3002\u4e3a\u4e86\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\uff0c\u53ef\u4ee5\u5c06\u5bfc\u5165\u8bed\u53e5\u653e\u5728\u51fd\u6570\u5185\u90e8\uff0c\u6216\u8005\u91cd\u6784\u4ee3\u7801\u4ee5\u51cf\u5c11\u6a21\u5757\u4e4b\u95f4\u7684\u4f9d\u8d56\u5173\u7cfb\u3002\u6b64\u5916\uff0c\u5c3d\u91cf\u5c06\u5171\u4eab\u7684\u529f\u80fd\u63d0\u53d6\u5230\u4e00\u4e2a\u5355\u72ec\u7684\u6a21\u5757\u4e2d\uff0c\u4ee5\u4fbf\u5176\u4ed6\u6a21\u5757\u53ef\u4ee5\u5355\u72ec\u5bfc\u5165\u5b83\uff0c\u4ece\u800c\u907f\u514d\u5faa\u73af\u4f9d\u8d56\u3002<\/p>\n<p><strong>\u5982\u4f55\u5728Python\u5305\u4e2d\u7ec4\u7ec7\u6a21\u5757\u4ee5\u4fbf\u4e8e\u5bfc\u5165\uff1f<\/strong><br \/>\u5728Python\u5305\u4e2d\uff0c\u826f\u597d\u7684\u6a21\u5757\u7ec4\u7ec7\u80fd\u591f\u7b80\u5316\u5bfc\u5165\u8fc7\u7a0b\u3002\u53ef\u4ee5\u5c06\u76f8\u5173\u529f\u80fd\u5206\u7ec4\u5230\u540c\u4e00\u4e2a\u5305\u4e0b\uff0c\u5e76\u4f7f\u7528__init__.py\u6587\u4ef6\u6765\u5b9a\u4e49\u5305\u7684\u516c\u5171\u63a5\u53e3\u3002\u901a\u8fc7\u5408\u7406\u547d\u540d\u6a21\u5757\u5e76\u4fdd\u6301\u76ee\u5f55\u7ed3\u6784\u6e05\u6670\uff0c\u53ef\u4ee5\u4f7f\u5f97\u5bfc\u5165\u64cd\u4f5c\u66f4\u52a0\u76f4\u89c2\u3002\u4f8b\u5982\uff0c\u53ef\u4ee5\u5c06\u529f\u80fd\u6a21\u5757\u5206\u4e3a\u5b50\u76ee\u5f55\uff0c\u6bcf\u4e2a\u5b50\u76ee\u5f55\u4e0b\u90fd\u6709\u4e00\u4e2a__init__.py\u6587\u4ef6\uff0c\u8fd9\u6837\u5c31\u80fd\u5229\u7528\u5305\u7684\u5c42\u6b21\u7ed3\u6784\u8fdb\u884c\u5bfc\u5165\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Python \u5bfc\u5165\u540c\u4e00\u5305\u6a21\u5757\u7684\u51e0\u79cd\u65b9\u5f0f\u3001\u4f7f\u7528\u76f8\u5bf9\u5bfc\u5165\u3001\u4f7f\u7528\u7edd\u5bf9\u5bfc\u5165 \u5728Python\u4e2d\uff0c\u5bfc\u5165\u540c\u4e00\u5305\u4e2d\u7684\u6a21\u5757\u53ef\u4ee5\u901a [&hellip;]","protected":false},"author":3,"featured_media":1037643,"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\/1037635"}],"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=1037635"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1037635\/revisions"}],"predecessor-version":[{"id":1037645,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1037635\/revisions\/1037645"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1037643"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1037635"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1037635"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1037635"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}