{"id":1101872,"date":"2025-01-08T15:54:07","date_gmt":"2025-01-08T07:54:07","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1101872.html"},"modified":"2025-01-08T15:54:10","modified_gmt":"2025-01-08T07:54:10","slug":"python%e4%b8%ad%e5%a6%82%e4%bd%95%e5%a4%84%e7%90%86%e8%be%93%e5%87%ba%e4%b9%b1%e7%a0%81%e7%9a%84%e6%83%85%e5%86%b5-2","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1101872.html","title":{"rendered":"python\u4e2d\u5982\u4f55\u5904\u7406\u8f93\u51fa\u4e71\u7801\u7684\u60c5\u51b5"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25064438\/76efbaed-2e4d-40b4-8c7c-75b69ce0c54c.webp\" alt=\"python\u4e2d\u5982\u4f55\u5904\u7406\u8f93\u51fa\u4e71\u7801\u7684\u60c5\u51b5\" \/><\/p>\n<p><p> <strong>\u5728Python\u4e2d\u5904\u7406\u8f93\u51fa\u4e71\u7801\u7684\u60c5\u51b5\u6709\u51e0\u79cd\u5e38\u89c1\u65b9\u6cd5\uff1a\u8bbe\u7f6e\u7f16\u7801\u3001\u4f7f\u7528\u6b63\u786e\u7684\u7ec8\u7aef\u3001\u4f7f\u7528\u5916\u90e8\u5e93\u3002\u5728Python\u4e2d\uff0c\u901a\u5e38\u53ef\u4ee5\u901a\u8fc7\u5728\u4ee3\u7801\u4e2d\u663e\u5f0f\u8bbe\u7f6e\u7f16\u7801\u3001\u786e\u4fdd\u4f7f\u7528\u652f\u6301\u6b63\u786e\u7f16\u7801\u7684\u7ec8\u7aef\u3001\u6216\u501f\u52a9\u5916\u90e8\u5e93\u6765\u5904\u7406\u8f93\u51fa\u4e71\u7801\u7684\u60c5\u51b5\u3002<\/strong> \u4e0b\u9762\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5176\u4e2d\u4e00\u79cd\u65b9\u6cd5\uff1a\u8bbe\u7f6e\u7f16\u7801\u3002<\/p>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u6211\u4eec\u9700\u8981\u4e86\u89e3\u4e3a\u4ec0\u4e48\u4f1a\u51fa\u73b0\u8f93\u51fa\u4e71\u7801\u7684\u60c5\u51b5\u3002\u8f93\u51fa\u4e71\u7801\u901a\u5e38\u662f\u7531\u4e8e\u7f16\u7801\u4e0d\u5339\u914d\u5f15\u8d77\u7684\u3002\u5f53\u6211\u4eec\u5728Python\u4e2d\u8f93\u51fa\u5b57\u7b26\u4e32\u65f6\uff0cPython\u4f1a\u6309\u7167\u9ed8\u8ba4\u7f16\u7801\u5c06\u5b57\u7b26\u4e32\u8f6c\u6362\u6210\u5b57\u8282\u6d41\u5e76\u8f93\u51fa\u3002\u5982\u679c\u9ed8\u8ba4\u7f16\u7801\u4e0e\u6211\u4eec\u5b9e\u9645\u4f7f\u7528\u7684\u7f16\u7801\u4e0d\u540c\uff0c\u5c31\u4f1a\u51fa\u73b0\u4e71\u7801\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u8bbe\u7f6e\u7f16\u7801<\/h3>\n<\/p>\n<p><p>\u5728Python\u4e2d\uff0c\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u8bbe\u7f6e\u7f16\u7801\u6765\u907f\u514d\u8f93\u51fa\u4e71\u7801\u3002\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u51e0\u79cd\u65b9\u6cd5\uff1a<\/p>\n<\/p>\n<p><h4>1.1 \u4f7f\u7528 <code>sys.stdout<\/code> \u548c <code>sys.stdin<\/code> \u8bbe\u7f6e\u7f16\u7801<\/h4>\n<\/p>\n<p><p>\u6211\u4eec\u53ef\u4ee5\u5728\u4ee3\u7801\u5f00\u59cb\u5904\u8bbe\u7f6e\u6807\u51c6\u8f93\u5165\u8f93\u51fa\u6d41\u7684\u7f16\u7801\uff0c\u4ee5\u786e\u4fdd\u6240\u6709\u7684\u8f93\u51fa\u90fd\u4f7f\u7528\u76f8\u540c\u7684\u7f16\u7801\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import sys<\/p>\n<p>import io<\/p>\n<h2><strong>\u8bbe\u7f6e\u6807\u51c6\u8f93\u51fa\u6d41\u7f16\u7801\u4e3autf-8<\/strong><\/h2>\n<p>sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding=&#39;utf-8&#39;)<\/p>\n<h2><strong>\u8bbe\u7f6e\u6807\u51c6\u8f93\u5165\u6d41\u7f16\u7801\u4e3autf-8<\/strong><\/h2>\n<p>sys.stdin = io.TextIOWrapper(sys.stdin.buffer, encoding=&#39;utf-8&#39;)<\/p>\n<p>print(&quot;\u4f60\u597d\uff0c\u4e16\u754c\uff01&quot;)  # \u8fd9\u884c\u4ee3\u7801\u5c06\u4f1a\u6b63\u786e\u8f93\u51fa\u4e2d\u6587<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u901a\u8fc7\u8fd9\u79cd\u65b9\u5f0f\uff0c\u6211\u4eec\u53ef\u4ee5\u786e\u4fdd\u6240\u6709\u7684\u8f93\u5165\u8f93\u51fa\u90fd\u4f7f\u7528utf-8\u7f16\u7801\uff0c\u4ece\u800c\u907f\u514d\u8f93\u51fa\u4e71\u7801\u7684\u95ee\u9898\u3002<\/p>\n<\/p>\n<p><h4>1.2 \u4f7f\u7528 <code>open<\/code> \u51fd\u6570\u65f6\u6307\u5b9a\u7f16\u7801<\/h4>\n<\/p>\n<p><p>\u5728\u8bfb\u5199\u6587\u4ef6\u65f6\uff0c\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u5728<code>open<\/code>\u51fd\u6570\u4e2d\u6307\u5b9a\u7f16\u7801\u6765\u907f\u514d\u4e71\u7801\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u4ee5utf-8\u7f16\u7801\u6253\u5f00\u6587\u4ef6\u8fdb\u884c\u5199\u64cd\u4f5c<\/p>\n<p>with open(&#39;output.txt&#39;, &#39;w&#39;, encoding=&#39;utf-8&#39;) as f:<\/p>\n<p>    f.write(&quot;\u4f60\u597d\uff0c\u4e16\u754c\uff01&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u6837\uff0c\u6211\u4eec\u5c31\u53ef\u4ee5\u786e\u4fdd\u5199\u5165\u6587\u4ef6\u7684\u6570\u636e\u662f\u4ee5utf-8\u7f16\u7801\u4fdd\u5b58\u7684\uff0c\u8bfb\u53d6\u65f6\u4e5f\u4e0d\u4f1a\u51fa\u73b0\u4e71\u7801\u3002<\/p>\n<\/p>\n<p><h4>1.3 \u4f7f\u7528 <code>encode<\/code> \u548c <code>decode<\/code> \u65b9\u6cd5<\/h4>\n<\/p>\n<p><p>\u5728\u5904\u7406\u5b57\u7b26\u4e32\u65f6\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528<code>encode<\/code>\u548c<code>decode<\/code>\u65b9\u6cd5\u624b\u52a8\u6307\u5b9a\u7f16\u7801\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u5c06\u5b57\u7b26\u4e32\u7f16\u7801\u4e3autf-8\u5b57\u8282\u6d41<\/p>\n<p>encoded_str = &quot;\u4f60\u597d\uff0c\u4e16\u754c\uff01&quot;.encode(&#39;utf-8&#39;)<\/p>\n<p>print(encoded_str)  # \u8f93\u51fa\u5b57\u8282\u6d41<\/p>\n<h2><strong>\u5c06\u5b57\u8282\u6d41\u89e3\u7801\u4e3autf-8\u5b57\u7b26\u4e32<\/strong><\/h2>\n<p>decoded_str = encoded_str.decode(&#39;utf-8&#39;)<\/p>\n<p>print(decoded_str)  # \u8f93\u51fa\u4e2d\u6587\u5b57\u7b26\u4e32<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u901a\u8fc7\u8fd9\u79cd\u65b9\u5f0f\uff0c\u6211\u4eec\u53ef\u4ee5\u7075\u6d3b\u5730\u5bf9\u5b57\u7b26\u4e32\u8fdb\u884c\u7f16\u7801\u8f6c\u6362\uff0c\u4ece\u800c\u907f\u514d\u4e71\u7801\u95ee\u9898\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u4f7f\u7528\u6b63\u786e\u7684\u7ec8\u7aef<\/h3>\n<\/p>\n<p><p>\u6709\u65f6\u5019\uff0c\u8f93\u51fa\u4e71\u7801\u662f\u7531\u4e8e\u7ec8\u7aef\u4e0d\u652f\u6301\u7279\u5b9a\u7f16\u7801\u5bfc\u81f4\u7684\u3002\u786e\u4fdd\u4f60\u4f7f\u7528\u7684\u7ec8\u7aef\u652f\u6301\u6240\u9700\u7684\u7f16\u7801\u662f\u975e\u5e38\u91cd\u8981\u7684\u3002\u5e38\u89c1\u7684\u7ec8\u7aef\u5982Windows\u547d\u4ee4\u63d0\u793a\u7b26\uff08cmd\uff09\u9ed8\u8ba4\u4f7f\u7528\u7684\u7f16\u7801\u662f<code>cp936<\/code>\uff08GBK\uff09\uff0c\u800c\u4e0d\u662f<code>utf-8<\/code>\uff0c\u8fd9\u53ef\u80fd\u5bfc\u81f4\u4e71\u7801\u3002<\/p>\n<\/p>\n<p><h4>2.1 \u5728Windows\u7ec8\u7aef\u4e2d\u8bbe\u7f6e\u7f16\u7801<\/h4>\n<\/p>\n<p><p>\u4f60\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u5728Windows\u7ec8\u7aef\u4e2d\u8bbe\u7f6e\u7f16\u7801\u4e3autf-8\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-sh\">chcp 65001<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u5c06\u4f1a\u5c06\u7ec8\u7aef\u7684\u4ee3\u7801\u9875\u8bbe\u7f6e\u4e3autf-8\uff0c\u4ece\u800c\u907f\u514d\u4e71\u7801\u3002<\/p>\n<\/p>\n<p><h4>2.2 \u4f7f\u7528\u652f\u6301utf-8\u7684\u7ec8\u7aef<\/h4>\n<\/p>\n<p><p>\u5982\u679c\u4f60\u5728Windows\u4e0a\u5f00\u53d1\uff0c\u53ef\u4ee5\u8003\u8651\u4f7f\u7528\u652f\u6301utf-8\u7f16\u7801\u7684\u7ec8\u7aef\uff0c\u6bd4\u5982Windows Terminal\u6216PowerShell\u3002\u5b83\u4eec\u9ed8\u8ba4\u652f\u6301utf-8\u7f16\u7801\uff0c\u80fd\u591f\u66f4\u597d\u5730\u5904\u7406\u975eASCII\u5b57\u7b26\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001\u4f7f\u7528\u5916\u90e8\u5e93<\/h3>\n<\/p>\n<p><p>\u6709\u65f6\u5019\uff0c\u5904\u7406\u7f16\u7801\u95ee\u9898\u9700\u8981\u501f\u52a9\u4e00\u4e9b\u5916\u90e8\u5e93\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u5e38\u7528\u7684\u5e93\uff1a<\/p>\n<\/p>\n<p><h4>3.1 <code>chardet<\/code> \u5e93<\/h4>\n<\/p>\n<p><p><code>chardet<\/code> \u662f\u4e00\u4e2a\u5b57\u7b26\u7f16\u7801\u68c0\u6d4b\u5e93\uff0c\u53ef\u4ee5\u5e2e\u52a9\u6211\u4eec\u68c0\u6d4b\u6587\u672c\u7684\u7f16\u7801\u5e76\u8fdb\u884c\u76f8\u5e94\u7684\u5904\u7406\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import chardet<\/p>\n<h2><strong>\u8bfb\u53d6\u6587\u4ef6\u5185\u5bb9<\/strong><\/h2>\n<p>with open(&#39;somefile.txt&#39;, &#39;rb&#39;) as f:<\/p>\n<p>    data = f.read()<\/p>\n<h2><strong>\u68c0\u6d4b\u7f16\u7801<\/strong><\/h2>\n<p>result = chardet.detect(data)<\/p>\n<p>encoding = result[&#39;encoding&#39;]<\/p>\n<h2><strong>\u89e3\u7801\u6587\u672c<\/strong><\/h2>\n<p>decoded_text = data.decode(encoding)<\/p>\n<p>print(decoded_text)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u901a\u8fc7\u8fd9\u79cd\u65b9\u5f0f\uff0c\u6211\u4eec\u53ef\u4ee5\u81ea\u52a8\u68c0\u6d4b\u5e76\u5904\u7406\u4e0d\u540c\u7f16\u7801\u7684\u6587\u672c\uff0c\u907f\u514d\u4e71\u7801\u3002<\/p>\n<\/p>\n<p><h4>3.2 <code>codecs<\/code> \u5e93<\/h4>\n<\/p>\n<p><p><code>codecs<\/code> \u5e93\u63d0\u4f9b\u4e86\u5bf9\u591a\u79cd\u7f16\u7801\u7684\u652f\u6301\uff0c\u53ef\u4ee5\u5e2e\u52a9\u6211\u4eec\u66f4\u597d\u5730\u5904\u7406\u7f16\u7801\u95ee\u9898\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import codecs<\/p>\n<h2><strong>\u4ee5utf-8\u7f16\u7801\u6253\u5f00\u6587\u4ef6\u8fdb\u884c\u8bfb\u64cd\u4f5c<\/strong><\/h2>\n<p>with codecs.open(&#39;somefile.txt&#39;, &#39;r&#39;, &#39;utf-8&#39;) as f:<\/p>\n<p>    content = f.read()<\/p>\n<p>    print(content)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u901a\u8fc7\u4f7f\u7528<code>codecs<\/code>\u5e93\uff0c\u6211\u4eec\u53ef\u4ee5\u65b9\u4fbf\u5730\u5904\u7406\u4e0d\u540c\u7f16\u7801\u7684\u6587\u4ef6\uff0c\u907f\u514d\u4e71\u7801\u3002<\/p>\n<\/p>\n<p><h3>\u56db\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u5728Python\u4e2d\u5904\u7406\u8f93\u51fa\u4e71\u7801\u7684\u60c5\u51b5\uff0c\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u8bbe\u7f6e\u7f16\u7801\u3001\u4f7f\u7528\u6b63\u786e\u7684\u7ec8\u7aef\u3001\u4f7f\u7528\u5916\u90e8\u5e93\u7b49\u65b9\u6cd5\u6765\u89e3\u51b3\u3002\u5177\u4f53\u65b9\u6cd5\u5305\u62ec\u4f7f\u7528<code>sys.stdout<\/code>\u548c<code>sys.stdin<\/code>\u8bbe\u7f6e\u7f16\u7801\u3001\u5728<code>open<\/code>\u51fd\u6570\u4e2d\u6307\u5b9a\u7f16\u7801\u3001\u4f7f\u7528<code>encode<\/code>\u548c<code>decode<\/code>\u65b9\u6cd5\u624b\u52a8\u6307\u5b9a\u7f16\u7801\u7b49\u3002\u6b64\u5916\uff0c\u786e\u4fdd\u4f7f\u7528\u652f\u6301\u6240\u9700\u7f16\u7801\u7684\u7ec8\u7aef\uff0c\u4ee5\u53ca\u501f\u52a9<code>chardet<\/code>\u548c<code>codecs<\/code>\u7b49\u5916\u90e8\u5e93\u4e5f\u662f\u6709\u6548\u7684\u89e3\u51b3\u65b9\u6848\u3002<\/p>\n<\/p>\n<p><p>\u4e86\u89e3\u5e76\u6b63\u786e\u5904\u7406\u7f16\u7801\u95ee\u9898\uff0c\u53ef\u4ee5\u5e2e\u52a9\u6211\u4eec\u5728\u5f00\u53d1\u8fc7\u7a0b\u4e2d\u907f\u514d\u8f93\u51fa\u4e71\u7801\uff0c\u786e\u4fdd\u7a0b\u5e8f\u80fd\u591f\u6b63\u786e\u5904\u7406\u548c\u663e\u793a\u5404\u79cd\u5b57\u7b26\u3002\u5e0c\u671b\u901a\u8fc7\u672c\u6587\u7684\u4ecb\u7ecd\uff0c\u80fd\u591f\u5e2e\u52a9\u4f60\u66f4\u597d\u5730\u89e3\u51b3Python\u4e2d\u8f93\u51fa\u4e71\u7801\u7684\u95ee\u9898\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5728Python\u4e2d\uff0c\u5982\u4f55\u907f\u514d\u8f93\u51fa\u4e71\u7801\u7684\u95ee\u9898\uff1f<\/strong><br \/>\u8981\u907f\u514d\u8f93\u51fa\u4e71\u7801\uff0c\u9996\u5148\u9700\u8981\u786e\u4fdd\u4f7f\u7528\u6b63\u786e\u7684\u7f16\u7801\u65b9\u5f0f\u3002\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u4f7f\u7528UTF-8\u7f16\u7801\u53ef\u4ee5\u89e3\u51b3\u5927\u90e8\u5206\u4e71\u7801\u95ee\u9898\u3002\u5728\u8f93\u51fa\u6587\u672c\u65f6\uff0c\u53ef\u4ee5\u901a\u8fc7\u8bbe\u7f6e\u73af\u5883\u53d8\u91cf\u6216\u5728\u4ee3\u7801\u4e2d\u663e\u5f0f\u6307\u5b9a\u7f16\u7801\u6765\u786e\u4fdd\u8f93\u51fa\u7684\u6b63\u786e\u6027\u3002\u6b64\u5916\uff0c\u786e\u4fdd\u6587\u4ef6\u7684\u8bfb\u53d6\u548c\u5199\u5165\u64cd\u4f5c\u90fd\u4f7f\u7528\u4e00\u81f4\u7684\u7f16\u7801\u683c\u5f0f\u4e5f\u5f88\u91cd\u8981\u3002<\/p>\n<p><strong>\u5982\u4f55\u5728Python\u4e2d\u68c0\u6d4b\u548c\u4fee\u590d\u4e71\u7801\uff1f<\/strong><br \/>\u68c0\u6d4b\u4e71\u7801\u901a\u5e38\u9700\u8981\u4f7f\u7528\u6587\u672c\u5206\u6790\u5de5\u5177\u6216\u5e93\uff0c\u6bd4\u5982<code>chardet<\/code>\uff0c\u8be5\u5e93\u53ef\u4ee5\u5e2e\u52a9\u4f60\u8bc6\u522b\u6587\u4ef6\u6216\u5b57\u7b26\u4e32\u7684\u7f16\u7801\u683c\u5f0f\u3002\u5982\u679c\u53d1\u73b0\u4e71\u7801\uff0c\u53ef\u4ee5\u5c1d\u8bd5\u4f7f\u7528\u4e0d\u540c\u7684\u7f16\u7801\u8fdb\u884c\u89e3\u7801\u3002\u4f8b\u5982\uff0c\u5982\u679c\u5b57\u7b26\u4e32\u5728UTF-8\u7f16\u7801\u4e0b\u51fa\u73b0\u4e71\u7801\uff0c\u5c1d\u8bd5\u4f7f\u7528ISO-8859-1\u7b49\u5176\u4ed6\u7f16\u7801\u8fdb\u884c\u89e3\u7801\uff0c\u627e\u5230\u6b63\u786e\u7684\u7f16\u7801\u540e\u518d\u8fdb\u884c\u8f93\u51fa\u3002<\/p>\n<p><strong>\u5728Python\u4e2d\uff0c\u5982\u4f55\u5904\u7406\u4ece\u5916\u90e8\u6587\u4ef6\u8bfb\u53d6\u5bfc\u81f4\u7684\u4e71\u7801\uff1f<\/strong><br \/>\u8bfb\u53d6\u5916\u90e8\u6587\u4ef6\u65f6\uff0c\u786e\u4fdd\u6307\u5b9a\u6b63\u786e\u7684\u7f16\u7801\u683c\u5f0f\u3002\u4f8b\u5982\uff0c\u5f53\u4f7f\u7528<code>open()<\/code>\u51fd\u6570\u65f6\uff0c\u53ef\u4ee5\u901a\u8fc7<code>encoding<\/code>\u53c2\u6570\u6765\u6307\u5b9a\u7f16\u7801\uff0c\u5982<code>open(&#39;file.txt&#39;, &#39;r&#39;, encoding=&#39;utf-8&#39;)<\/code>\u3002\u5982\u679c\u6587\u4ef6\u4e2d\u5b58\u5728\u4e0d\u4e00\u81f4\u7684\u7f16\u7801\uff0c\u53ef\u80fd\u9700\u8981\u5148\u4f7f\u7528\u5de5\u5177\u6216\u5e93\u6765\u68c0\u6d4b\u5e76\u8f6c\u6362\u6587\u4ef6\u7f16\u7801\uff0c\u7136\u540e\u518d\u8fdb\u884c\u8bfb\u53d6\uff0c\u4ee5\u907f\u514d\u51fa\u73b0\u4e71\u7801\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\u5904\u7406\u8f93\u51fa\u4e71\u7801\u7684\u60c5\u51b5\u6709\u51e0\u79cd\u5e38\u89c1\u65b9\u6cd5\uff1a\u8bbe\u7f6e\u7f16\u7801\u3001\u4f7f\u7528\u6b63\u786e\u7684\u7ec8\u7aef\u3001\u4f7f\u7528\u5916\u90e8\u5e93\u3002\u5728Python\u4e2d\uff0c\u901a\u5e38 [&hellip;]","protected":false},"author":3,"featured_media":1101885,"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\/1101872"}],"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=1101872"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1101872\/revisions"}],"predecessor-version":[{"id":1101888,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1101872\/revisions\/1101888"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1101885"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1101872"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1101872"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1101872"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}