{"id":1113470,"date":"2025-01-08T17:48:13","date_gmt":"2025-01-08T09:48:13","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1113470.html"},"modified":"2025-01-08T17:48:15","modified_gmt":"2025-01-08T09:48:15","slug":"python%e5%a6%82%e4%bd%95%e8%b0%83%e7%94%a8%e5%85%b6%e4%bb%96%e6%96%87%e4%bb%b6%e4%b8%ad%e7%9a%84%e7%b1%bb%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1113470.html","title":{"rendered":"python\u5982\u4f55\u8c03\u7528\u5176\u4ed6\u6587\u4ef6\u4e2d\u7684\u7c7b\u65b9\u6cd5"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25075048\/a083f13a-6760-4fce-b5f7-dd19746e63a7.webp\" alt=\"python\u5982\u4f55\u8c03\u7528\u5176\u4ed6\u6587\u4ef6\u4e2d\u7684\u7c7b\u65b9\u6cd5\" \/><\/p>\n<p><p> <strong>Python\u8c03\u7528\u5176\u4ed6\u6587\u4ef6\u4e2d\u7684\u7c7b\u65b9\u6cd5\u7684\u65b9\u6cd5\uff1a\u4f7f\u7528import\u8bed\u53e5\u3001\u6307\u5b9a\u8def\u5f84\u5bfc\u5165\u3001\u76f8\u5bf9\u5bfc\u5165\u3001\u4f7f\u7528__init__.py\u6587\u4ef6\u3002<\/strong><br \/>\u5176\u4e2d<strong>import\u8bed\u53e5<\/strong>\u662f\u6700\u5e38\u7528\u4e14\u6700\u7b80\u5355\u7684\u4e00\u79cd\u65b9\u5f0f\u3002\u4e0b\u9762\u6211\u4eec\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u8fd9\u4e2a\u65b9\u6cd5\uff0c\u5e76\u63d0\u4f9b\u5176\u4ed6\u51e0\u79cd\u65b9\u6cd5\u7684\u5177\u4f53\u6b65\u9aa4\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001IMPORT\u8bed\u53e5<\/p>\n<\/p>\n<p><p>\u5728Python\u4e2d\uff0c\u4f7f\u7528import\u8bed\u53e5\u53ef\u4ee5\u5f88\u65b9\u4fbf\u5730\u5bfc\u5165\u5176\u4ed6\u6587\u4ef6\u4e2d\u7684\u7c7b\u548c\u65b9\u6cd5\u3002\u5047\u8bbe\u6211\u4eec\u6709\u4e00\u4e2a\u540d\u4e3a<code>module1.py<\/code>\u7684\u6587\u4ef6\uff0c\u5176\u4e2d\u5b9a\u4e49\u4e86\u4e00\u4e2a\u7c7b<code>MyClass<\/code>\uff0c\u5e76\u4e14\u6211\u4eec\u5e0c\u671b\u5728\u53e6\u4e00\u4e2a\u6587\u4ef6<code>m<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>n.py<\/code>\u4e2d\u4f7f\u7528\u8fd9\u4e2a\u7c7b\u7684\u65b9\u6cd5\u3002\u4ee5\u4e0b\u662f\u5177\u4f53\u7684\u6b65\u9aa4\uff1a<\/p>\n<\/p>\n<ol>\n<li>\u521b\u5efa\u4e00\u4e2a\u540d\u4e3a<code>module1.py<\/code>\u7684\u6587\u4ef6\uff0c\u5e76\u5b9a\u4e49\u4e00\u4e2a\u7c7b\u548c\u65b9\u6cd5\uff1a<\/li>\n<\/ol>\n<p><pre><code class=\"language-python\"># module1.py<\/p>\n<p>class MyClass:<\/p>\n<p>    def my_method(self):<\/p>\n<p>        print(&quot;Hello from MyClass!&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li>\u5728<code>main.py<\/code>\u6587\u4ef6\u4e2d\u5bfc\u5165<code>module1.py<\/code>\u4e2d\u7684<code>MyClass<\/code>\u7c7b\uff0c\u5e76\u8c03\u7528\u5176\u65b9\u6cd5\uff1a<\/li>\n<\/ol>\n<p><pre><code class=\"language-python\"># main.py<\/p>\n<p>from module1 import MyClass<\/p>\n<h2><strong>\u521b\u5efa\u7c7b\u7684\u5b9e\u4f8b<\/strong><\/h2>\n<p>my_instance = MyClass()<\/p>\n<h2><strong>\u8c03\u7528\u7c7b\u7684\u65b9\u6cd5<\/strong><\/h2>\n<p>my_instance.my_method()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u901a\u8fc7\u4ee5\u4e0a\u6b65\u9aa4\uff0c\u6211\u4eec\u6210\u529f\u5730\u5728<code>main.py<\/code>\u6587\u4ef6\u4e2d\u8c03\u7528\u4e86<code>module1.py<\/code>\u4e2d\u7684\u7c7b\u65b9\u6cd5\u3002\u8fd9\u79cd\u65b9\u6cd5\u9002\u7528\u4e8e\u540c\u4e00\u76ee\u5f55\u4e0b\u7684\u6587\u4ef6\uff0c\u4e5f\u53ef\u4ee5\u901a\u8fc7\u6307\u5b9a\u8def\u5f84\u6765\u5bfc\u5165\u4e0d\u540c\u76ee\u5f55\u4e0b\u7684\u6587\u4ef6\u4e2d\u7684\u7c7b\u548c\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<p><p>\u4e8c\u3001\u6307\u5b9a\u8def\u5f84\u5bfc\u5165<\/p>\n<\/p>\n<p><p>\u5f53\u6211\u4eec\u9700\u8981\u4ece\u4e0d\u540c\u76ee\u5f55\u4e0b\u5bfc\u5165\u6587\u4ef6\u65f6\uff0c\u53ef\u4ee5\u4f7f\u7528\u6307\u5b9a\u8def\u5f84\u7684\u65b9\u5f0f\u3002\u5047\u8bbe\u6211\u4eec\u6709\u4ee5\u4e0b\u76ee\u5f55\u7ed3\u6784\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 subdir\/<\/p>\n<p>    \u2514\u2500\u2500 module1.py<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u6b65\u9aa4\u5bfc\u5165<code>subdir\/module1.py<\/code>\u4e2d\u7684\u7c7b\u548c\u65b9\u6cd5\uff1a<\/p>\n<\/p>\n<ol>\n<li>\u786e\u4fdd<code>module1.py<\/code>\u7684\u5185\u5bb9\u5982\u4e0b\uff1a<\/li>\n<\/ol>\n<p><pre><code class=\"language-python\"># subdir\/module1.py<\/p>\n<p>class MyClass:<\/p>\n<p>    def my_method(self):<\/p>\n<p>        print(&quot;Hello from MyClass in subdir!&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li>\u5728<code>main.py<\/code>\u6587\u4ef6\u4e2d\u5bfc\u5165<code>subdir\/module1.py<\/code>\u4e2d\u7684<code>MyClass<\/code>\u7c7b\uff0c\u5e76\u8c03\u7528\u5176\u65b9\u6cd5\uff1a<\/li>\n<\/ol>\n<p><pre><code class=\"language-python\"># main.py<\/p>\n<p>import sys<\/p>\n<p>sys.path.append(&#39;.\/subdir&#39;)<\/p>\n<p>from module1 import MyClass<\/p>\n<h2><strong>\u521b\u5efa\u7c7b\u7684\u5b9e\u4f8b<\/strong><\/h2>\n<p>my_instance = MyClass()<\/p>\n<h2><strong>\u8c03\u7528\u7c7b\u7684\u65b9\u6cd5<\/strong><\/h2>\n<p>my_instance.my_method()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u901a\u8fc7\u8fd9\u79cd\u65b9\u5f0f\uff0c\u6211\u4eec\u6210\u529f\u5730\u4ece\u4e0d\u540c\u76ee\u5f55\u4e0b\u5bfc\u5165\u4e86\u6587\u4ef6\u5e76\u8c03\u7528\u4e86\u7c7b\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<p><p>\u4e09\u3001\u76f8\u5bf9\u5bfc\u5165<\/p>\n<\/p>\n<p><p>\u5728\u4e00\u4e9b\u590d\u6742\u7684\u9879\u76ee\u4e2d\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528\u76f8\u5bf9\u5bfc\u5165\u7684\u65b9\u5f0f\u6765\u5bfc\u5165\u4e0d\u540c\u6a21\u5757\u3002\u5047\u8bbe\u6211\u4eec\u6709\u4ee5\u4e0b\u76ee\u5f55\u7ed3\u6784\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 subdir\/<\/p>\n<p>    \u251c\u2500\u2500 __init__.py<\/p>\n<p>    \u2514\u2500\u2500 module1.py<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u6b65\u9aa4\u8fdb\u884c\u76f8\u5bf9\u5bfc\u5165\uff1a<\/p>\n<\/p>\n<ol>\n<li>\u786e\u4fdd<code>module1.py<\/code>\u7684\u5185\u5bb9\u5982\u4e0b\uff1a<\/li>\n<\/ol>\n<p><pre><code class=\"language-python\"># subdir\/module1.py<\/p>\n<p>class MyClass:<\/p>\n<p>    def my_method(self):<\/p>\n<p>        print(&quot;Hello from MyClass in subdir!&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li>\u5728<code>main.py<\/code>\u6587\u4ef6\u4e2d\u5bfc\u5165<code>subdir\/module1.py<\/code>\u4e2d\u7684<code>MyClass<\/code>\u7c7b\uff0c\u5e76\u8c03\u7528\u5176\u65b9\u6cd5\uff1a<\/li>\n<\/ol>\n<p><pre><code class=\"language-python\"># main.py<\/p>\n<p>from subdir.module1 import MyClass<\/p>\n<h2><strong>\u521b\u5efa\u7c7b\u7684\u5b9e\u4f8b<\/strong><\/h2>\n<p>my_instance = MyClass()<\/p>\n<h2><strong>\u8c03\u7528\u7c7b\u7684\u65b9\u6cd5<\/strong><\/h2>\n<p>my_instance.my_method()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u901a\u8fc7\u76f8\u5bf9\u5bfc\u5165\uff0c\u6211\u4eec\u53ef\u4ee5\u66f4\u52a0\u65b9\u4fbf\u5730\u7ec4\u7ec7\u548c\u7ba1\u7406\u9879\u76ee\u4e2d\u7684\u6a21\u5757\u548c\u6587\u4ef6\u3002<\/p>\n<\/p>\n<p><p>\u56db\u3001\u4f7f\u7528<code>__init__.py<\/code>\u6587\u4ef6<\/p>\n<\/p>\n<p><p>\u5728Python\u9879\u76ee\u4e2d\uff0c<code>__init__.py<\/code>\u6587\u4ef6\u7528\u4e8e\u5c06\u76ee\u5f55\u6807\u8bc6\u4e3aPython\u5305\u3002\u901a\u8fc7\u4f7f\u7528<code>__init__.py<\/code>\u6587\u4ef6\uff0c\u6211\u4eec\u53ef\u4ee5\u66f4\u597d\u5730\u7ba1\u7406\u548c\u5bfc\u5165\u9879\u76ee\u4e2d\u7684\u6a21\u5757\u3002\u5047\u8bbe\u6211\u4eec\u6709\u4ee5\u4e0b\u76ee\u5f55\u7ed3\u6784\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 subdir\/<\/p>\n<p>    \u251c\u2500\u2500 __init__.py<\/p>\n<p>    \u2514\u2500\u2500 module1.py<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u6b65\u9aa4\u901a\u8fc7<code>__init__.py<\/code>\u6587\u4ef6\u5bfc\u5165\u6a21\u5757\uff1a<\/p>\n<\/p>\n<ol>\n<li>\u786e\u4fdd<code>module1.py<\/code>\u7684\u5185\u5bb9\u5982\u4e0b\uff1a<\/li>\n<\/ol>\n<p><pre><code class=\"language-python\"># subdir\/module1.py<\/p>\n<p>class MyClass:<\/p>\n<p>    def my_method(self):<\/p>\n<p>        print(&quot;Hello from MyClass in subdir!&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li>\u5728<code>subdir\/__init__.py<\/code>\u6587\u4ef6\u4e2d\u5bfc\u5165<code>module1.py<\/code>\u4e2d\u7684<code>MyClass<\/code>\u7c7b\uff1a<\/li>\n<\/ol>\n<p><pre><code class=\"language-python\"># subdir\/__init__.py<\/p>\n<p>from .module1 import MyClass<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"3\">\n<li>\u5728<code>main.py<\/code>\u6587\u4ef6\u4e2d\u5bfc\u5165<code>subdir\/__init__.py<\/code>\u6587\u4ef6\u4e2d\u7684<code>MyClass<\/code>\u7c7b\uff0c\u5e76\u8c03\u7528\u5176\u65b9\u6cd5\uff1a<\/li>\n<\/ol>\n<p><pre><code class=\"language-python\"># main.py<\/p>\n<p>from subdir import MyClass<\/p>\n<h2><strong>\u521b\u5efa\u7c7b\u7684\u5b9e\u4f8b<\/strong><\/h2>\n<p>my_instance = MyClass()<\/p>\n<h2><strong>\u8c03\u7528\u7c7b\u7684\u65b9\u6cd5<\/strong><\/h2>\n<p>my_instance.my_method()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u901a\u8fc7\u4ee5\u4e0a\u6b65\u9aa4\uff0c\u6211\u4eec\u6210\u529f\u5730\u4f7f\u7528<code>__init__.py<\/code>\u6587\u4ef6\u5bfc\u5165\u4e86\u6a21\u5757\u5e76\u8c03\u7528\u4e86\u7c7b\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<p><p>\u603b\u7ed3<\/p>\n<\/p>\n<p><p>\u901a\u8fc7\u4ee5\u4e0a\u56db\u79cd\u65b9\u6cd5\uff0c\u6211\u4eec\u53ef\u4ee5\u5728Python\u9879\u76ee\u4e2d\u65b9\u4fbf\u5730\u8c03\u7528\u5176\u4ed6\u6587\u4ef6\u4e2d\u7684\u7c7b\u65b9\u6cd5\u3002<strong>\u4f7f\u7528import\u8bed\u53e5<\/strong>\u662f\u6700\u5e38\u7528\u4e14\u6700\u7b80\u5355\u7684\u4e00\u79cd\u65b9\u5f0f\uff0c\u9002\u7528\u4e8e\u540c\u4e00\u76ee\u5f55\u4e0b\u7684\u6587\u4ef6\u3002\u5bf9\u4e8e\u4e0d\u540c\u76ee\u5f55\u4e0b\u7684\u6587\u4ef6\uff0c\u53ef\u4ee5\u4f7f\u7528<strong>\u6307\u5b9a\u8def\u5f84\u5bfc\u5165<\/strong>\u7684\u65b9\u6cd5\u3002<strong>\u76f8\u5bf9\u5bfc\u5165<\/strong>\u9002\u7528\u4e8e\u590d\u6742\u9879\u76ee\u4e2d\u7684\u6a21\u5757\u7ba1\u7406\u3002\u4f7f\u7528<code>__init__.py<\/code>\u6587\u4ef6\u53ef\u4ee5\u66f4\u597d\u5730\u7ec4\u7ec7\u548c\u7ba1\u7406\u9879\u76ee\u4e2d\u7684\u6a21\u5757\u548c\u6587\u4ef6\u3002\u901a\u8fc7\u5408\u7406\u4f7f\u7528\u8fd9\u4e9b\u65b9\u6cd5\uff0c\u6211\u4eec\u53ef\u4ee5\u63d0\u9ad8\u4ee3\u7801\u7684\u53ef\u8bfb\u6027\u548c\u53ef\u7ef4\u62a4\u6027\uff0c\u540c\u65f6\u65b9\u4fbf\u5730\u8c03\u7528\u548c\u7ba1\u7406\u9879\u76ee\u4e2d\u7684\u7c7b\u548c\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u5bfc\u5165\u5176\u4ed6\u6587\u4ef6\u4e2d\u7684\u7c7b\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528<code>import<\/code>\u8bed\u53e5\u6765\u5bfc\u5165\u5176\u4ed6\u6587\u4ef6\u4e2d\u7684\u7c7b\u3002\u786e\u4fdd\u76ee\u6807\u6587\u4ef6\u4e0e\u5f53\u524d\u6587\u4ef6\u5728\u540c\u4e00\u76ee\u5f55\u4e0b\uff0c\u6216\u5728Python\u8def\u5f84\u4e2d\u3002\u4f7f\u7528\u8bed\u6cd5<code>from filename import ClassName<\/code>\u53ef\u4ee5\u76f4\u63a5\u5bfc\u5165\u7c7b\uff0c\u6216\u8005\u4f7f\u7528<code>import filename<\/code>\u7136\u540e\u901a\u8fc7<code>filename.ClassName<\/code>\u6765\u8c03\u7528\u7c7b\u3002<\/p>\n<p><strong>\u5728\u8c03\u7528\u7c7b\u65b9\u6cd5\u65f6\u9700\u8981\u6ce8\u610f\u54ea\u4e9b\u4e8b\u9879\uff1f<\/strong><br \/>\u5f53\u60a8\u8c03\u7528\u5176\u4ed6\u6587\u4ef6\u4e2d\u7684\u7c7b\u65b9\u6cd5\u65f6\uff0c\u786e\u4fdd\u60a8\u5df2\u5b9e\u4f8b\u5316\u8be5\u7c7b\u3002\u5b9e\u4f8b\u5316\u662f\u521b\u5efa\u5bf9\u8c61\u7684\u8fc7\u7a0b\uff0c\u4f8b\u5982\uff0c<code>obj = ClassName()<\/code>\u521b\u5efa\u4e86\u4e00\u4e2a\u7c7b\u7684\u5b9e\u4f8b\u3002\u7136\u540e\uff0c\u60a8\u53ef\u4ee5\u901a\u8fc7<code>obj.method_name()<\/code>\u6765\u8c03\u7528\u65b9\u6cd5\uff0c\u786e\u4fdd\u4f20\u5165\u4efb\u4f55\u5fc5\u9700\u7684\u53c2\u6570\u3002<\/p>\n<p><strong>\u5982\u4f55\u5904\u7406\u5bfc\u5165\u5931\u8d25\u6216\u7c7b\u672a\u627e\u5230\u7684\u9519\u8bef\uff1f<\/strong><br \/>\u5982\u679c\u9047\u5230\u5bfc\u5165\u5931\u8d25\u7684\u95ee\u9898\uff0c\u9996\u5148\u68c0\u67e5\u6587\u4ef6\u540d\u548c\u7c7b\u540d\u7684\u62fc\u5199\u662f\u5426\u6b63\u786e\u3002\u786e\u4fdd\u8def\u5f84\u8bbe\u7f6e\u65e0\u8bef\u5e76\u4e14\u6587\u4ef6\u5b58\u5728\u3002\u5982\u679c\u9519\u8bef\u4ecd\u7136\u5b58\u5728\uff0c\u53ef\u4ee5\u4f7f\u7528<code>try...except<\/code>\u8bed\u53e5\u6765\u6355\u83b7\u5f02\u5e38\u5e76\u5904\u7406\u9519\u8bef\uff0c\u63d0\u4f9b\u7528\u6237\u53cb\u597d\u7684\u63d0\u793a\u4fe1\u606f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Python\u8c03\u7528\u5176\u4ed6\u6587\u4ef6\u4e2d\u7684\u7c7b\u65b9\u6cd5\u7684\u65b9\u6cd5\uff1a\u4f7f\u7528import\u8bed\u53e5\u3001\u6307\u5b9a\u8def\u5f84\u5bfc\u5165\u3001\u76f8\u5bf9\u5bfc\u5165\u3001\u4f7f\u7528__init__. [&hellip;]","protected":false},"author":3,"featured_media":1113481,"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\/1113470"}],"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=1113470"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1113470\/revisions"}],"predecessor-version":[{"id":1113485,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1113470\/revisions\/1113485"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1113481"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1113470"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1113470"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1113470"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}