{"id":999890,"date":"2024-12-27T09:45:13","date_gmt":"2024-12-27T01:45:13","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/999890.html"},"modified":"2024-12-27T09:45:15","modified_gmt":"2024-12-27T01:45:15","slug":"python%e4%b9%b1%e7%a0%81%e5%90%8e%e5%a6%82%e4%bd%95%e4%bf%ae%e6%94%b9","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/999890.html","title":{"rendered":"python\u4e71\u7801\u540e\u5982\u4f55\u4fee\u6539"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25074722\/aa7b5a48-a33b-4bd5-a32b-8854d56e77f7.webp\" alt=\"python\u4e71\u7801\u540e\u5982\u4f55\u4fee\u6539\" \/><\/p>\n<p><p> <strong>\u5728Python\u4e2d\u5904\u7406\u4e71\u7801\u95ee\u9898\u7684\u65b9\u6cd5\u5305\u62ec\uff1a\u786e\u4fdd\u6587\u4ef6\u7f16\u7801\u4e00\u81f4\u3001\u4f7f\u7528\u6b63\u786e\u7684\u7f16\u7801\u89e3\u7801\u65b9\u6cd5\u3001\u68c0\u67e5\u6587\u4ef6\u8bfb\u53d6\u6a21\u5f0f\u3001\u5229\u7528chardet\u5e93\u68c0\u6d4b\u7f16\u7801\u3002<\/strong>\u5176\u4e2d\uff0c\u786e\u4fdd\u6587\u4ef6\u7f16\u7801\u4e00\u81f4\u662f\u6700\u91cd\u8981\u7684\u3002\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u4e71\u7801\u95ee\u9898\u662f\u7531\u4e8e\u7f16\u7801\u4e0d\u5339\u914d\u9020\u6210\u7684\uff0c\u56e0\u6b64\u5728\u8bfb\u53d6\u548c\u5199\u5165\u6587\u4ef6\u65f6\uff0c\u786e\u4fdd\u6587\u4ef6\u7f16\u7801\u7684\u4e00\u81f4\u6027\u81f3\u5173\u91cd\u8981\u3002\u4e0b\u9762\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u89e3\u51b3Python\u4e71\u7801\u95ee\u9898\u7684\u591a\u79cd\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u786e\u4fdd\u6587\u4ef6\u7f16\u7801\u4e00\u81f4<\/p>\n<\/p>\n<p><p>\u5728\u5904\u7406\u6587\u672c\u6587\u4ef6\u65f6\uff0c\u6700\u5e38\u89c1\u7684\u4e71\u7801\u95ee\u9898\u662f\u7531\u4e8e\u7f16\u7801\u4e0d\u4e00\u81f4\u9020\u6210\u7684\u3002\u4f8b\u5982\uff0c\u6587\u4ef6\u4fdd\u5b58\u65f6\u4f7f\u7528\u4e86\u67d0\u79cd\u7f16\u7801\u683c\u5f0f\uff0c\u800c\u8bfb\u53d6\u65f6\u4f7f\u7528\u4e86\u53e6\u4e00\u79cd\u7f16\u7801\u683c\u5f0f\u3002\u4e3a\u4e86\u907f\u514d\u8fd9\u79cd\u60c5\u51b5\uff0c\u53ef\u4ee5\u5728\u6587\u4ef6\u7684\u8bfb\u5199\u64cd\u4f5c\u4e2d\u660e\u786e\u6307\u5b9a\u7f16\u7801\u683c\u5f0f\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u9009\u62e9\u5408\u9002\u7684\u7f16\u7801<\/strong><\/p>\n<\/p>\n<p><p>UTF-8 \u662f\u4e00\u79cd\u5e38\u7528\u7684\u7f16\u7801\u683c\u5f0f\uff0c\u652f\u6301\u591a\u79cd\u8bed\u8a00\u5b57\u7b26\uff0c\u662f\u5904\u7406\u4e71\u7801\u95ee\u9898\u7684\u5e38\u7528\u89e3\u51b3\u65b9\u6848\u3002\u5728\u8bfb\u53d6\u548c\u5199\u5165\u6587\u4ef6\u65f6\uff0c\u663e\u5f0f\u6307\u5b9a <code>encoding=&#39;utf-8&#39;<\/code> \u53ef\u4ee5\u786e\u4fdd\u6587\u4ef6\u7f16\u7801\u7684\u4e00\u81f4\u6027\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u8bfb\u53d6\u6587\u4ef6\u65f6\u6307\u5b9a\u7f16\u7801<\/p>\n<p>with open(&#39;example.txt&#39;, &#39;r&#39;, encoding=&#39;utf-8&#39;) as f:<\/p>\n<p>    content = f.read()<\/p>\n<h2><strong>\u5199\u5165\u6587\u4ef6\u65f6\u6307\u5b9a\u7f16\u7801<\/strong><\/h2>\n<p>with open(&#39;example.txt&#39;, &#39;w&#39;, encoding=&#39;utf-8&#39;) as f:<\/p>\n<p>    f.write(content)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u68c0\u67e5\u6587\u4ef6\u7684\u539f\u59cb\u7f16\u7801<\/strong><\/p>\n<\/p>\n<p><p>\u5982\u679c\u4f60\u4e0d\u786e\u5b9a\u6587\u4ef6\u7684\u7f16\u7801\uff0c\u53ef\u4ee5\u4f7f\u7528\u4e00\u4e9b\u5de5\u5177\u6216\u5e93\uff08\u5982 <code>chardet<\/code>\uff09\u6765\u68c0\u6d4b\u6587\u4ef6\u7684\u539f\u59cb\u7f16\u7801\uff0c\u4ece\u800c\u9009\u62e9\u5408\u9002\u7684\u7f16\u7801\u8fdb\u884c\u8bfb\u53d6\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import chardet<\/p>\n<p>with open(&#39;example.txt&#39;, &#39;rb&#39;) as f:<\/p>\n<p>    raw_data = f.read()<\/p>\n<p>    result = chardet.detect(raw_data)<\/p>\n<p>    encoding = result[&#39;encoding&#39;]<\/p>\n<p>with open(&#39;example.txt&#39;, &#39;r&#39;, encoding=encoding) as f:<\/p>\n<p>    content = f.read()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e8c\u3001\u4f7f\u7528\u6b63\u786e\u7684\u7f16\u7801\u89e3\u7801\u65b9\u6cd5<\/p>\n<\/p>\n<p><p>\u5728\u5904\u7406\u5b57\u7b26\u4e32\u7684\u8fc7\u7a0b\u4e2d\uff0c\u53ef\u80fd\u9700\u8981\u5bf9\u5b57\u7b26\u4e32\u8fdb\u884c\u7f16\u7801\u6216\u89e3\u7801\u64cd\u4f5c\u3002\u9009\u62e9\u5408\u9002\u7684\u7f16\u7801\u89e3\u7801\u65b9\u6cd5\u53ef\u4ee5\u6709\u6548\u907f\u514d\u4e71\u7801\u95ee\u9898\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u7f16\u7801\u548c\u89e3\u7801<\/strong><\/p>\n<\/p>\n<p><p>\u5728Python\u4e2d\uff0c\u5b57\u7b26\u4e32\u662fUnicode\u7c7b\u578b\u7684\uff0c\u800c\u5b57\u8282\u662f\u4e8c\u8fdb\u5236\u6570\u636e\u3002\u5728\u8fdb\u884c\u7f51\u7edc\u4f20\u8f93\u6216\u6587\u4ef6\u5b58\u50a8\u65f6\uff0c\u901a\u5e38\u9700\u8981\u5c06\u5b57\u7b26\u4e32\u7f16\u7801\u4e3a\u5b57\u8282\uff0c\u6216\u5c06\u5b57\u8282\u89e3\u7801\u4e3a\u5b57\u7b26\u4e32\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u7f16\u7801\u4e3a\u5b57\u8282<\/p>\n<p>unicode_string = &quot;\u4f60\u597d&quot;<\/p>\n<p>byte_data = unicode_string.encode(&#39;utf-8&#39;)<\/p>\n<h2><strong>\u89e3\u7801\u4e3a\u5b57\u7b26\u4e32<\/strong><\/h2>\n<p>decoded_string = byte_data.decode(&#39;utf-8&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5904\u7406\u4e0d\u652f\u6301\u7684\u5b57\u7b26<\/strong><\/p>\n<\/p>\n<p><p>\u5728\u7f16\u7801\u6216\u89e3\u7801\u8fc7\u7a0b\u4e2d\uff0c\u53ef\u80fd\u4f1a\u9047\u5230\u65e0\u6cd5\u5904\u7406\u7684\u5b57\u7b26\u3002\u8fd9\u65f6\u53ef\u4ee5\u6307\u5b9a\u9519\u8bef\u5904\u7406\u7b56\u7565\uff0c\u5982 <code>ignore<\/code> \u5ffd\u7565\u9519\u8bef\uff0c\u6216 <code>replace<\/code> \u7528\u66ff\u4ee3\u5b57\u7b26\u66ff\u6362\u9519\u8bef\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u5ffd\u7565\u9519\u8bef<\/p>\n<p>decoded_string = byte_data.decode(&#39;utf-8&#39;, errors=&#39;ignore&#39;)<\/p>\n<h2><strong>\u7528\u66ff\u4ee3\u5b57\u7b26\u66ff\u6362\u9519\u8bef<\/strong><\/h2>\n<p>decoded_string = byte_data.decode(&#39;utf-8&#39;, errors=&#39;replace&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e09\u3001\u68c0\u67e5\u6587\u4ef6\u8bfb\u53d6\u6a21\u5f0f<\/p>\n<\/p>\n<p><p>\u5728\u8bfb\u53d6\u6587\u4ef6\u65f6\uff0cPython\u63d0\u4f9b\u4e86\u591a\u79cd\u6587\u4ef6\u6a21\u5f0f\uff0c\u5982\u6587\u672c\u6a21\u5f0f\uff08&#39;r&#39;\uff09\u548c\u4e8c\u8fdb\u5236\u6a21\u5f0f\uff08&#39;rb&#39;\uff09\u3002\u9009\u62e9\u5408\u9002\u7684\u6587\u4ef6\u8bfb\u53d6\u6a21\u5f0f\u53ef\u4ee5\u907f\u514d\u7531\u4e8e\u6a21\u5f0f\u4e0d\u5339\u914d\u9020\u6210\u7684\u4e71\u7801\u95ee\u9898\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u6587\u672c\u6a21\u5f0f\u548c\u4e8c\u8fdb\u5236\u6a21\u5f0f<\/strong><\/p>\n<\/p>\n<p><p>\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0cPython\u4f7f\u7528\u6587\u672c\u6a21\u5f0f\u8bfb\u53d6\u6587\u4ef6\u3002\u5728\u8fd9\u79cd\u6a21\u5f0f\u4e0b\uff0cPython\u4f1a\u81ea\u52a8\u5c06\u6587\u4ef6\u5185\u5bb9\u89e3\u7801\u4e3a\u5b57\u7b26\u4e32\u3002\u5982\u679c\u6587\u4ef6\u5305\u542b\u975e\u6587\u672c\u5185\u5bb9\uff0c\u53ef\u80fd\u4f1a\u5bfc\u81f4\u4e71\u7801\u3002\u8fd9\u65f6\u53ef\u4ee5\u4f7f\u7528\u4e8c\u8fdb\u5236\u6a21\u5f0f\u8bfb\u53d6\u6587\u4ef6\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u6587\u672c\u6a21\u5f0f\u8bfb\u53d6<\/p>\n<p>with open(&#39;example.txt&#39;, &#39;r&#39;, encoding=&#39;utf-8&#39;) as f:<\/p>\n<p>    content = f.read()<\/p>\n<h2><strong>\u4e8c\u8fdb\u5236\u6a21\u5f0f\u8bfb\u53d6<\/strong><\/h2>\n<p>with open(&#39;example.txt&#39;, &#39;rb&#39;) as f:<\/p>\n<p>    byte_data = f.read()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5904\u7406\u4e8c\u8fdb\u5236\u6570\u636e<\/strong><\/p>\n<\/p>\n<p><p>\u5728\u8bfb\u53d6\u4e8c\u8fdb\u5236\u6570\u636e\u540e\uff0c\u53ef\u4ee5\u6839\u636e\u9700\u8981\u5c06\u5176\u89e3\u7801\u4e3a\u5b57\u7b26\u4e32\u6216\u8fdb\u884c\u5176\u4ed6\u5904\u7406\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u89e3\u7801\u4e3a\u5b57\u7b26\u4e32<\/p>\n<p>decoded_string = byte_data.decode(&#39;utf-8&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u56db\u3001\u5229\u7528chardet\u5e93\u68c0\u6d4b\u7f16\u7801<\/p>\n<\/p>\n<p><p>\u6709\u65f6\u5019\uff0c\u6211\u4eec\u624b\u5934\u7684\u6587\u4ef6\u7f16\u7801\u662f\u4e0d\u786e\u5b9a\u7684\uff0c\u8fd9\u65f6\u5019\u53ef\u4ee5\u4f7f\u7528chardet\u5e93\u6765\u68c0\u6d4b\u6587\u4ef6\u7684\u7f16\u7801\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u5b89\u88c5chardet\u5e93<\/strong><\/p>\n<\/p>\n<p><p>\u5728\u4f7f\u7528chardet\u5e93\u4e4b\u524d\uff0c\u9700\u8981\u901a\u8fc7pip\u5b89\u88c5\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install chardet<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u4f7f\u7528chardet\u68c0\u6d4b\u6587\u4ef6\u7f16\u7801<\/strong><\/p>\n<\/p>\n<p><p>\u4f7f\u7528chardet\u5e93\u53ef\u4ee5\u68c0\u6d4b\u6587\u4ef6\u7684\u7f16\u7801\uff0c\u4ece\u800c\u907f\u514d\u624b\u52a8\u731c\u6d4b\u7f16\u7801\u683c\u5f0f\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import chardet<\/p>\n<p>with open(&#39;example.txt&#39;, &#39;rb&#39;) as f:<\/p>\n<p>    raw_data = f.read()<\/p>\n<p>    result = chardet.detect(raw_data)<\/p>\n<p>    encoding = result[&#39;encoding&#39;]<\/p>\n<p>with open(&#39;example.txt&#39;, &#39;r&#39;, encoding=encoding) as f:<\/p>\n<p>    content = f.read()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u901a\u8fc7\u4ee5\u4e0a\u65b9\u6cd5\uff0c\u53ef\u4ee5\u6709\u6548\u89e3\u51b3Python\u4e2d\u7684\u4e71\u7801\u95ee\u9898\u3002\u5728\u65e5\u5e38\u5f00\u53d1\u4e2d\uff0c\u786e\u4fdd\u6587\u4ef6\u7f16\u7801\u4e00\u81f4\u3001\u4f7f\u7528\u6b63\u786e\u7684\u7f16\u7801\u89e3\u7801\u65b9\u6cd5\u3001\u9009\u62e9\u5408\u9002\u7684\u6587\u4ef6\u8bfb\u53d6\u6a21\u5f0f\u4ee5\u53ca\u5229\u7528\u5de5\u5177\u68c0\u6d4b\u7f16\u7801\u90fd\u662f\u975e\u5e38\u91cd\u8981\u7684\u6b65\u9aa4\u3002\u540c\u65f6\uff0c\u826f\u597d\u7684\u7f16\u7801\u4e60\u60ef\u548c\u89c4\u8303\u4e5f\u53ef\u4ee5\u5e2e\u52a9\u907f\u514d\u4e71\u7801\u95ee\u9898\u7684\u51fa\u73b0\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u907f\u514d\u5728Python\u4e2d\u51fa\u73b0\u4e71\u7801\u95ee\u9898\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u907f\u514d\u4e71\u7801\u95ee\u9898\u7684\u5173\u952e\u662f\u786e\u4fdd\u4f7f\u7528\u6b63\u786e\u7684\u7f16\u7801\u683c\u5f0f\u3002\u5efa\u8bae\u5728\u8bfb\u53d6\u548c\u5199\u5165\u6587\u4ef6\u65f6\uff0c\u660e\u786e\u6307\u5b9a\u7f16\u7801\u683c\u5f0f\uff0c\u4f8b\u5982\u4f7f\u7528UTF-8\u3002\u53ef\u4ee5\u901a\u8fc7\u5728\u6253\u5f00\u6587\u4ef6\u65f6\u6dfb\u52a0<code>encoding=&#39;utf-8&#39;<\/code>\u53c2\u6570\u6765\u786e\u4fdd\u5185\u5bb9\u7684\u6b63\u786e\u89e3\u7801\u548c\u7f16\u7801\u3002\u6b64\u5916\uff0c\u8fd8\u9700\u6ce8\u610f\u5728\u5904\u7406\u5b57\u7b26\u4e32\u65f6\uff0c\u786e\u4fdd\u6240\u6709\u6570\u636e\u6e90\u548c\u8f93\u51fa\u90fd\u4fdd\u6301\u4e00\u81f4\u7684\u7f16\u7801\u683c\u5f0f\u3002<\/p>\n<p><strong>\u5728Python\u4e2d\u5982\u4f55\u68c0\u6d4b\u6587\u4ef6\u7684\u7f16\u7801\uff1f<\/strong><br \/>\u4e3a\u4e86\u68c0\u6d4b\u6587\u4ef6\u7684\u7f16\u7801\uff0c\u53ef\u4ee5\u4f7f\u7528<code>chardet<\/code>\u5e93\u3002\u8be5\u5e93\u901a\u8fc7\u5206\u6790\u6587\u4ef6\u5185\u5bb9\u6765\u63a8\u6d4b\u5176\u7f16\u7801\u683c\u5f0f\u3002\u4f7f\u7528\u65b9\u6cd5\u7b80\u5355\uff0c\u53ea\u9700\u5bfc\u5165\u5e93\u5e76\u8c03\u7528<code>detect<\/code>\u51fd\u6570\u3002\u4f8b\u5982\uff1a  <\/p>\n<pre><code class=\"language-python\">import chardet\nwith open(&#39;yourfile.txt&#39;, &#39;rb&#39;) as f:\n    result = chardet.detect(f.read())\n    print(result[&#39;encoding&#39;])\n<\/code><\/pre>\n<p>\u8fd9\u6837\u53ef\u4ee5\u5e2e\u52a9\u4f60\u4e86\u89e3\u6587\u4ef6\u7684\u7f16\u7801\uff0c\u4ece\u800c\u91c7\u53d6\u76f8\u5e94\u7684\u63aa\u65bd\u8fdb\u884c\u5904\u7406\u3002<\/p>\n<p><strong>\u5982\u679c\u6211\u5728Python\u4e2d\u9047\u5230\u4e71\u7801\uff0c\u8be5\u5982\u4f55\u5904\u7406\uff1f<\/strong><br \/>\u9047\u5230\u4e71\u7801\u65f6\uff0c\u53ef\u4ee5\u5c1d\u8bd5\u4f7f\u7528<code>encode<\/code>\u548c<code>decode<\/code>\u65b9\u6cd5\u8fdb\u884c\u5b57\u7b26\u4e32\u8f6c\u6362\u3002\u4f8b\u5982\uff0c\u5982\u679c\u4f60\u77e5\u9053\u5b57\u7b26\u4e32\u7684\u539f\u59cb\u7f16\u7801\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u65b9\u5f0f\u8fdb\u884c\u4fee\u590d\uff1a  <\/p>\n<pre><code class=\"language-python\"># \u5047\u8bbe\u539f\u59cb\u5b57\u7b26\u4e32\u662fgbk\u7f16\u7801\noriginal_string = byte_string.decode(&#39;gbk&#39;)\n# \u8f6c\u6362\u4e3autf-8\u7f16\u7801\nutf8_string = original_string.encode(&#39;utf-8&#39;)\n<\/code><\/pre>\n<p>\u8fd9\u6837\u7684\u5904\u7406\u53ef\u4ee5\u6709\u6548\u5730\u89e3\u51b3\u56e0\u7f16\u7801\u4e0d\u5339\u914d\u800c\u5bfc\u81f4\u7684\u4e71\u7801\u95ee\u9898\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\u5904\u7406\u4e71\u7801\u95ee\u9898\u7684\u65b9\u6cd5\u5305\u62ec\uff1a\u786e\u4fdd\u6587\u4ef6\u7f16\u7801\u4e00\u81f4\u3001\u4f7f\u7528\u6b63\u786e\u7684\u7f16\u7801\u89e3\u7801\u65b9\u6cd5\u3001\u68c0\u67e5\u6587\u4ef6\u8bfb\u53d6\u6a21\u5f0f\u3001\u5229\u7528cha [&hellip;]","protected":false},"author":3,"featured_media":999901,"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\/999890"}],"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=999890"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/999890\/revisions"}],"predecessor-version":[{"id":999904,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/999890\/revisions\/999904"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/999901"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=999890"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=999890"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=999890"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}