{"id":1085250,"date":"2025-01-08T13:14:22","date_gmt":"2025-01-08T05:14:22","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1085250.html"},"modified":"2025-01-08T13:14:26","modified_gmt":"2025-01-08T05:14:26","slug":"%e5%a6%82%e4%bd%95%e7%94%a8python%e6%89%93%e5%bc%80%e5%b7%a5%e7%a8%8b%e6%96%87%e4%bb%b6%e8%b7%af%e5%be%84-2","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1085250.html","title":{"rendered":"\u5982\u4f55\u7528python\u6253\u5f00\u5de5\u7a0b\u6587\u4ef6\u8def\u5f84"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24195226\/46f92118-acf4-48a7-b0ef-fcca122a2f91.webp\" alt=\"\u5982\u4f55\u7528python\u6253\u5f00\u5de5\u7a0b\u6587\u4ef6\u8def\u5f84\" \/><\/p>\n<p><p> <strong>\u4f7f\u7528Python\u6253\u5f00\u5de5\u7a0b\u6587\u4ef6\u8def\u5f84\u7684\u5e38\u7528\u65b9\u6cd5\u5305\u62ec\u4f7f\u7528os\u6a21\u5757\u3001pathlib\u6a21\u5757\u3001\u4ee5\u53ca\u914d\u7f6e\u6587\u4ef6\u8bfb\u53d6\u7b49\u3002os\u6a21\u5757\u5177\u6709\u8f83\u9ad8\u7684\u7075\u6d3b\u6027\u548c\u517c\u5bb9\u6027\uff0cpathlib\u6a21\u5757\u63d0\u4f9b\u4e86\u9762\u5411\u5bf9\u8c61\u7684\u8def\u5f84\u64cd\u4f5c\uff0c\u914d\u7f6e\u6587\u4ef6\u53ef\u4ee5\u5b58\u50a8\u548c\u8bfb\u53d6\u9879\u76ee\u8def\u5f84\u3002\u63a5\u4e0b\u6765\uff0c\u6211\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528os\u6a21\u5757\u6765\u6253\u5f00\u5de5\u7a0b\u6587\u4ef6\u8def\u5f84\u3002<\/strong><\/p>\n<\/p>\n<p><p>\u5728Python\u4e2d\u7ba1\u7406\u5de5\u7a0b\u6587\u4ef6\u8def\u5f84\u662f\u4e00\u4e2a\u5e38\u89c1\u9700\u6c42\uff0c\u7279\u522b\u662f\u5728\u6d89\u53ca\u5230\u6587\u4ef6\u8bfb\u5199\u64cd\u4f5c\u65f6\u3002\u6253\u5f00\u5de5\u7a0b\u6587\u4ef6\u8def\u5f84\u7684\u65b9\u6cd5\u6709\u5f88\u591a\uff0c\u4e0b\u9762\u6211\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u51e0\u79cd\u6700\u5e38\u7528\u7684\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u4f7f\u7528os\u6a21\u5757<\/h3>\n<\/p>\n<p><p>os\u6a21\u5757\u662fPython\u6807\u51c6\u5e93\u4e2d\u7684\u4e00\u4e2a\u6a21\u5757\uff0c\u63d0\u4f9b\u4e86\u591a\u79cd\u4e0e\u64cd\u4f5c\u7cfb\u7edf\u8fdb\u884c\u4ea4\u4e92\u7684\u529f\u80fd\u3002\u901a\u8fc7os\u6a21\u5757\u53ef\u4ee5\u8fdb\u884c\u6587\u4ef6\u548c\u76ee\u5f55\u7684\u64cd\u4f5c\u3002<\/p>\n<\/p>\n<p><h4>1. \u83b7\u53d6\u5f53\u524d\u5de5\u4f5c\u76ee\u5f55<\/h4>\n<\/p>\n<p><p>\u5728Python\u4e2d\uff0c\u4f7f\u7528os\u6a21\u5757\u53ef\u4ee5\u83b7\u53d6\u5f53\u524d\u5de5\u4f5c\u76ee\u5f55\u3002\u5f53\u524d\u5de5\u4f5c\u76ee\u5f55\u662f\u6307Python\u811a\u672c\u6267\u884c\u65f6\u6240\u5728\u7684\u76ee\u5f55\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import os<\/p>\n<p>current_directory = os.getcwd()<\/p>\n<p>print(&quot;\u5f53\u524d\u5de5\u4f5c\u76ee\u5f55:&quot;, current_directory)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2. \u66f4\u6539\u5f53\u524d\u5de5\u4f5c\u76ee\u5f55<\/h4>\n<\/p>\n<p><p>\u6709\u65f6\u9700\u8981\u66f4\u6539\u5f53\u524d\u5de5\u4f5c\u76ee\u5f55\uff0c\u53ef\u4ee5\u4f7f\u7528os.chdir()\u51fd\u6570\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import os<\/p>\n<p>new_directory = &#39;\/path\/to\/your\/project&#39;<\/p>\n<p>os.chdir(new_directory)<\/p>\n<p>print(&quot;\u65b0\u7684\u5de5\u4f5c\u76ee\u5f55:&quot;, os.getcwd())<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>3. \u6784\u5efa\u6587\u4ef6\u8def\u5f84<\/h4>\n<\/p>\n<p><p>\u5728\u8fdb\u884c\u6587\u4ef6\u64cd\u4f5c\u65f6\uff0c\u901a\u5e38\u9700\u8981\u6784\u5efa\u6587\u4ef6\u8def\u5f84\u3002\u53ef\u4ee5\u4f7f\u7528os.path.join()\u51fd\u6570\u6765\u6784\u5efa\u8def\u5f84\uff0c\u4ee5\u786e\u4fdd\u8def\u5f84\u7684\u6b63\u786e\u6027\u548c\u8de8\u5e73\u53f0\u517c\u5bb9\u6027\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import os<\/p>\n<p>project_path = &#39;\/path\/to\/your\/project&#39;<\/p>\n<p>file_name = &#39;example.txt&#39;<\/p>\n<p>file_path = os.path.join(project_path, file_name)<\/p>\n<p>print(&quot;\u6587\u4ef6\u8def\u5f84:&quot;, file_path)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>4. \u68c0\u67e5\u6587\u4ef6\u6216\u76ee\u5f55\u662f\u5426\u5b58\u5728<\/h4>\n<\/p>\n<p><p>\u5728\u64cd\u4f5c\u6587\u4ef6\u6216\u76ee\u5f55\u4e4b\u524d\uff0c\u901a\u5e38\u9700\u8981\u68c0\u67e5\u5b83\u4eec\u662f\u5426\u5b58\u5728\u3002\u53ef\u4ee5\u4f7f\u7528os.path.exists()\u51fd\u6570\u6765\u68c0\u67e5\u8def\u5f84\u662f\u5426\u5b58\u5728\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import os<\/p>\n<p>file_path = &#39;\/path\/to\/your\/project\/example.txt&#39;<\/p>\n<p>if os.path.exists(file_path):<\/p>\n<p>    print(&quot;\u6587\u4ef6\u5b58\u5728&quot;)<\/p>\n<p>else:<\/p>\n<p>    print(&quot;\u6587\u4ef6\u4e0d\u5b58\u5728&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>5. \u521b\u5efa\u76ee\u5f55<\/h4>\n<\/p>\n<p><p>\u5982\u679c\u8981\u521b\u5efa\u76ee\u5f55\uff0c\u53ef\u4ee5\u4f7f\u7528os.makedirs()\u51fd\u6570\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import os<\/p>\n<p>directory_path = &#39;\/path\/to\/your\/project\/new_directory&#39;<\/p>\n<p>if not os.path.exists(directory_path):<\/p>\n<p>    os.makedirs(directory_path)<\/p>\n<p>    print(&quot;\u76ee\u5f55\u5df2\u521b\u5efa&quot;)<\/p>\n<p>else:<\/p>\n<p>    print(&quot;\u76ee\u5f55\u5df2\u5b58\u5728&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e8c\u3001\u4f7f\u7528pathlib\u6a21\u5757<\/h3>\n<\/p>\n<p><p>pathlib\u6a21\u5757\u662fPython 3.4\u5f15\u5165\u7684\u6a21\u5757\uff0c\u63d0\u4f9b\u4e86\u9762\u5411\u5bf9\u8c61\u7684\u8def\u5f84\u64cd\u4f5c\u3002\u76f8\u6bd4\u4e8eos\u6a21\u5757\uff0cpathlib\u7684API\u66f4\u52a0\u7b80\u6d01\u548c\u6613\u7528\u3002<\/p>\n<\/p>\n<p><h4>1. \u83b7\u53d6\u5f53\u524d\u5de5\u4f5c\u76ee\u5f55<\/h4>\n<\/p>\n<p><p>\u4f7f\u7528pathlib\u6a21\u5757\u53ef\u4ee5\u8f7b\u677e\u83b7\u53d6\u5f53\u524d\u5de5\u4f5c\u76ee\u5f55\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from pathlib import Path<\/p>\n<p>current_directory = Path.cwd()<\/p>\n<p>print(&quot;\u5f53\u524d\u5de5\u4f5c\u76ee\u5f55:&quot;, current_directory)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2. \u66f4\u6539\u5f53\u524d\u5de5\u4f5c\u76ee\u5f55<\/h4>\n<\/p>\n<p><p>pathlib\u672c\u8eab\u4e0d\u63d0\u4f9b\u66f4\u6539\u5de5\u4f5c\u76ee\u5f55\u7684\u529f\u80fd\uff0c\u4f46\u53ef\u4ee5\u7ed3\u5408os\u6a21\u5757\u6765\u5b9e\u73b0\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from pathlib import Path<\/p>\n<p>import os<\/p>\n<p>new_directory = Path(&#39;\/path\/to\/your\/project&#39;)<\/p>\n<p>os.chdir(new_directory)<\/p>\n<p>print(&quot;\u65b0\u7684\u5de5\u4f5c\u76ee\u5f55:&quot;, Path.cwd())<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>3. \u6784\u5efa\u6587\u4ef6\u8def\u5f84<\/h4>\n<\/p>\n<p><p>\u4f7f\u7528pathlib\u53ef\u4ee5\u66f4\u52a0\u4f18\u96c5\u5730\u6784\u5efa\u6587\u4ef6\u8def\u5f84\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from pathlib import Path<\/p>\n<p>project_path = Path(&#39;\/path\/to\/your\/project&#39;)<\/p>\n<p>file_name = &#39;example.txt&#39;<\/p>\n<p>file_path = project_path \/ file_name<\/p>\n<p>print(&quot;\u6587\u4ef6\u8def\u5f84:&quot;, file_path)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>4. \u68c0\u67e5\u6587\u4ef6\u6216\u76ee\u5f55\u662f\u5426\u5b58\u5728<\/h4>\n<\/p>\n<p><p>pathlib\u53ef\u4ee5\u76f4\u63a5\u8c03\u7528exists()\u65b9\u6cd5\u6765\u68c0\u67e5\u8def\u5f84\u662f\u5426\u5b58\u5728\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from pathlib import Path<\/p>\n<p>file_path = Path(&#39;\/path\/to\/your\/project\/example.txt&#39;)<\/p>\n<p>if file_path.exists():<\/p>\n<p>    print(&quot;\u6587\u4ef6\u5b58\u5728&quot;)<\/p>\n<p>else:<\/p>\n<p>    print(&quot;\u6587\u4ef6\u4e0d\u5b58\u5728&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>5. \u521b\u5efa\u76ee\u5f55<\/h4>\n<\/p>\n<p><p>pathlib\u53ef\u4ee5\u4f7f\u7528mkdir()\u65b9\u6cd5\u6765\u521b\u5efa\u76ee\u5f55\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from pathlib import Path<\/p>\n<p>directory_path = Path(&#39;\/path\/to\/your\/project\/new_directory&#39;)<\/p>\n<p>if not directory_path.exists():<\/p>\n<p>    directory_path.mkdir(parents=True)<\/p>\n<p>    print(&quot;\u76ee\u5f55\u5df2\u521b\u5efa&quot;)<\/p>\n<p>else:<\/p>\n<p>    print(&quot;\u76ee\u5f55\u5df2\u5b58\u5728&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e09\u3001\u4f7f\u7528\u914d\u7f6e\u6587\u4ef6<\/h3>\n<\/p>\n<p><p>\u5728\u9879\u76ee\u4e2d\u4f7f\u7528\u914d\u7f6e\u6587\u4ef6\u6765\u7ba1\u7406\u8def\u5f84\u662f\u4e00\u4e2a\u5f88\u597d\u7684\u5b9e\u8df5\u3002\u53ef\u4ee5\u4f7f\u7528configparser\u6a21\u5757\u6765\u8bfb\u53d6\u914d\u7f6e\u6587\u4ef6\u4e2d\u7684\u8def\u5f84\u3002<\/p>\n<\/p>\n<p><h4>1. \u521b\u5efa\u914d\u7f6e\u6587\u4ef6<\/h4>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u521b\u5efa\u4e00\u4e2a\u914d\u7f6e\u6587\u4ef6\uff0c\u4f8b\u5982config.ini\uff0c\u5185\u5bb9\u5982\u4e0b\uff1a<\/p>\n<\/p>\n<p><pre><code>[Paths]<\/p>\n<p>project_path = \/path\/to\/your\/project<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2. \u8bfb\u53d6\u914d\u7f6e\u6587\u4ef6<\/h4>\n<\/p>\n<p><p>\u4f7f\u7528configparser\u6a21\u5757\u8bfb\u53d6\u914d\u7f6e\u6587\u4ef6\u4e2d\u7684\u8def\u5f84\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import configparser<\/p>\n<p>config = configparser.ConfigParser()<\/p>\n<p>config.read(&#39;config.ini&#39;)<\/p>\n<p>project_path = config[&#39;Paths&#39;][&#39;project_path&#39;]<\/p>\n<p>print(&quot;\u9879\u76ee\u8def\u5f84:&quot;, project_path)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u56db\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p><strong>\u901a\u8fc7\u4ee5\u4e0a\u65b9\u6cd5\uff0c\u53ef\u4ee5\u8f7b\u677e\u7ba1\u7406Python\u9879\u76ee\u4e2d\u7684\u6587\u4ef6\u8def\u5f84\u3002<\/strong>os\u6a21\u5757\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u8def\u5f84\u64cd\u4f5c\u529f\u80fd\uff0cpathlib\u6a21\u5757\u63d0\u4f9b\u4e86\u9762\u5411\u5bf9\u8c61\u7684\u8def\u5f84\u64cd\u4f5c\uff0c\u914d\u7f6e\u6587\u4ef6\u53ef\u4ee5\u65b9\u4fbf\u5730\u7ba1\u7406\u9879\u76ee\u8def\u5f84\u3002\u6839\u636e\u4e0d\u540c\u7684\u9700\u6c42\uff0c\u53ef\u4ee5\u9009\u62e9\u9002\u5408\u7684\u65b9\u6cd5\u6765\u7ba1\u7406\u548c\u64cd\u4f5c\u6587\u4ef6\u8def\u5f84\u3002\u65e0\u8bba\u662f\u4f7f\u7528os\u6a21\u5757\u8fd8\u662fpathlib\u6a21\u5757\uff0c\u8fd8\u662f\u4f7f\u7528\u914d\u7f6e\u6587\u4ef6\uff0c\u90fd\u80fd\u6709\u6548\u63d0\u9ad8\u4ee3\u7801\u7684\u53ef\u8bfb\u6027\u548c\u53ef\u7ef4\u62a4\u6027\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u83b7\u53d6\u5de5\u7a0b\u6587\u4ef6\u7684\u8def\u5f84\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528<code>os<\/code>\u6a21\u5757\u548c<code>pathlib<\/code>\u6a21\u5757\u6765\u83b7\u53d6\u5de5\u7a0b\u6587\u4ef6\u7684\u8def\u5f84\u3002\u4f7f\u7528<code>os.path.abspath(__file__)<\/code>\u53ef\u4ee5\u83b7\u53d6\u5f53\u524d\u811a\u672c\u7684\u7edd\u5bf9\u8def\u5f84\uff0c\u800c<code>pathlib.Path(__file__).resolve()<\/code>\u5219\u63d0\u4f9b\u4e86\u4e00\u79cd\u66f4\u73b0\u4ee3\u7684\u65b9\u5f0f\u6765\u83b7\u53d6\u6587\u4ef6\u7684\u8def\u5f84\u3002\u8fd9\u4e9b\u65b9\u6cd5\u53ef\u4ee5\u5e2e\u52a9\u4f60\u8f7b\u677e\u627e\u5230\u5de5\u7a0b\u6587\u4ef6\u7684\u4f4d\u7f6e\u3002<\/p>\n<p><strong>\u6211\u80fd\u5426\u4f7f\u7528Python\u6253\u5f00\u7279\u5b9a\u7c7b\u578b\u7684\u5de5\u7a0b\u6587\u4ef6\uff1f<\/strong><br \/>\u662f\u7684\uff0cPython\u652f\u6301\u591a\u79cd\u6587\u4ef6\u7c7b\u578b\u7684\u6253\u5f00\u548c\u5904\u7406\u3002\u4f60\u53ef\u4ee5\u4f7f\u7528\u5185\u7f6e\u7684<code>open()<\/code>\u51fd\u6570\u6765\u6253\u5f00\u6587\u672c\u6587\u4ef6\u3001CSV\u6587\u4ef6\u7b49\u3002\u5bf9\u4e8e\u66f4\u590d\u6742\u7684\u6587\u4ef6\u7c7b\u578b\uff0c\u5982Excel\u6587\u4ef6\u6216\u6570\u636e\u5e93\u6587\u4ef6\uff0c\u53ef\u4ee5\u4f7f\u7528\u76f8\u5e94\u7684\u7b2c\u4e09\u65b9\u5e93\uff0c\u4f8b\u5982<code>pandas<\/code>\u3001<code>openpyxl<\/code>\u6216<code>sqlite3<\/code>\uff0c\u8fd9\u4f7f\u5f97\u5728Python\u4e2d\u5904\u7406\u5404\u79cd\u5de5\u7a0b\u6587\u4ef6\u53d8\u5f97\u975e\u5e38\u65b9\u4fbf\u3002<\/p>\n<p><strong>\u5982\u4f55\u5728Python\u4e2d\u5904\u7406\u76f8\u5bf9\u8def\u5f84\u548c\u7edd\u5bf9\u8def\u5f84\uff1f<\/strong><br \/>\u5904\u7406\u76f8\u5bf9\u8def\u5f84\u548c\u7edd\u5bf9\u8def\u5f84\u65f6\uff0c\u53ef\u4ee5\u4f7f\u7528<code>os.path<\/code>\u6a21\u5757\u4e2d\u7684<code>os.path.join()<\/code>\u548c<code>os.path.abspath()<\/code>\u51fd\u6570\u3002\u76f8\u5bf9\u8def\u5f84\u662f\u76f8\u5bf9\u4e8e\u5f53\u524d\u5de5\u4f5c\u76ee\u5f55\u7684\uff0c\u800c\u7edd\u5bf9\u8def\u5f84\u5219\u662f\u5b8c\u6574\u7684\u6587\u4ef6\u4f4d\u7f6e\u3002\u4f7f\u7528\u8fd9\u4e9b\u51fd\u6570\u53ef\u4ee5\u786e\u4fdd\u5728\u4e0d\u540c\u7684\u64cd\u4f5c\u7cfb\u7edf\u548c\u73af\u5883\u4e2d\uff0c\u8def\u5f84\u7684\u5904\u7406\u4fdd\u6301\u4e00\u81f4\uff0c\u907f\u514d\u56e0\u8def\u5f84\u95ee\u9898\u5bfc\u81f4\u7684\u9519\u8bef\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u4f7f\u7528Python\u6253\u5f00\u5de5\u7a0b\u6587\u4ef6\u8def\u5f84\u7684\u5e38\u7528\u65b9\u6cd5\u5305\u62ec\u4f7f\u7528os\u6a21\u5757\u3001pathlib\u6a21\u5757\u3001\u4ee5\u53ca\u914d\u7f6e\u6587\u4ef6\u8bfb\u53d6\u7b49\u3002os\u6a21\u5757\u5177 [&hellip;]","protected":false},"author":3,"featured_media":1085262,"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\/1085250"}],"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=1085250"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1085250\/revisions"}],"predecessor-version":[{"id":1085263,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1085250\/revisions\/1085263"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1085262"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1085250"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1085250"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1085250"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}