{"id":1072951,"date":"2025-01-08T11:20:55","date_gmt":"2025-01-08T03:20:55","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1072951.html"},"modified":"2025-01-08T11:20:57","modified_gmt":"2025-01-08T03:20:57","slug":"python%e5%a6%82%e4%bd%95%e8%be%93%e5%87%ba%e5%8d%83%e4%bd%8d%e6%95%b0-2","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1072951.html","title":{"rendered":"python\u5982\u4f55\u8f93\u51fa\u5343\u4f4d\u6570"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25103016\/7532debb-2c7e-416b-b820-96e4d02dd9da.webp\" alt=\"python\u5982\u4f55\u8f93\u51fa\u5343\u4f4d\u6570\" \/><\/p>\n<p><p> <strong>Python\u8f93\u51fa\u5343\u4f4d\u6570\u7684\u65b9\u6cd5\u6709\u683c\u5f0f\u5316\u5b57\u7b26\u4e32\u3001\u5185\u7f6e\u51fd\u6570format()\u3001f-string\u7b49<\/strong>\u3002\u5176\u4e2d\u4e00\u79cd\u5e38\u89c1\u7684\u65b9\u6cd5\u662f\u4f7f\u7528\u683c\u5f0f\u5316\u5b57\u7b26\u4e32\uff0c\u4f8b\u5982\u4f7f\u7528\u5b57\u7b26\u4e32\u7684format()\u65b9\u6cd5\u3002\u5177\u4f53\u65b9\u6cd5\u5305\u62ec\uff1a<\/p>\n<\/p>\n<ol>\n<li>\u4f7f\u7528<code>format()<\/code>\u51fd\u6570<\/li>\n<li>\u4f7f\u7528f-string<\/li>\n<li>\u4f7f\u7528<code>locale<\/code>\u6a21\u5757<\/li>\n<\/ol>\n<p><p>\u4e0b\u9762\u8be6\u7ec6\u63cf\u8ff0<code>format()<\/code>\u51fd\u6570\u7684\u4f7f\u7528\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<p><p><strong>\u4f7f\u7528<code>format()<\/code>\u51fd\u6570<\/strong>\u662fPython\u4e2d\u6700\u5e38\u7528\u7684\u4e00\u79cd\u683c\u5f0f\u5316\u8f93\u51fa\u65b9\u6cd5\u3002\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7<code>&quot;{:,}&quot;.format(number)<\/code>\u6765\u5b9e\u73b0\u5343\u4f4d\u5206\u9694\u7b26\u7684\u8f93\u51fa\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">number = 1234567890<\/p>\n<p>formatted_number = &quot;{:,}&quot;.format(number)<\/p>\n<p>print(formatted_number)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u6bb5\u4ee3\u7801\u4f1a\u8f93\u51fa<code>1,234,567,890<\/code>\uff0c\u5176\u4e2d\u9017\u53f7\u4f5c\u4e3a\u5343\u4f4d\u5206\u9694\u7b26\u3002\u901a\u8fc7\u8fd9\u79cd\u65b9\u5f0f\uff0c\u53ef\u4ee5\u5f88\u65b9\u4fbf\u5730\u5c06\u4e00\u4e2a\u6574\u6570\u683c\u5f0f\u5316\u4e3a\u5e26\u6709\u5343\u4f4d\u5206\u9694\u7b26\u7684\u5b57\u7b26\u4e32\u3002<\/p>\n<\/p>\n<p><p>\u63a5\u4e0b\u6765\uff0c\u5c06\u8be6\u7ec6\u4ecb\u7ecdPython\u4e2d\u8f93\u51fa\u5343\u4f4d\u6570\u7684\u51e0\u79cd\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<p><h2>\u4e00\u3001\u4f7f\u7528<code>format()<\/code>\u51fd\u6570<\/h2>\n<\/p>\n<p><p><code>format()<\/code>\u51fd\u6570\u662fPython\u4e2d\u7528\u4e8e\u683c\u5f0f\u5316\u5b57\u7b26\u4e32\u7684\u4e00\u79cd\u5f3a\u5927\u7684\u5de5\u5177\u3002\u901a\u8fc7\u4f7f\u7528\u7279\u5b9a\u7684\u683c\u5f0f\u8bf4\u660e\u7b26\uff0c\u53ef\u4ee5\u65b9\u4fbf\u5730\u5c06\u6570\u5b57\u8f6c\u6362\u4e3a\u5e26\u6709\u5343\u4f4d\u5206\u9694\u7b26\u7684\u5b57\u7b26\u4e32\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">number = 1234567890<\/p>\n<p>formatted_number = &quot;{:,}&quot;.format(number)<\/p>\n<p>print(formatted_number)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c<code>&quot;{:,}&quot;.format(number)<\/code>\u4f7f\u7528\u9017\u53f7\uff08`,&#8220;\uff09\u4f5c\u4e3a\u5343\u4f4d\u5206\u9694\u7b26\u6765\u683c\u5f0f\u5316\u6570\u5b57\u3002\u65e0\u8bba\u8f93\u5165\u7684\u6570\u5b57\u5927\u5c0f\u5982\u4f55\uff0c\u5b83\u90fd\u80fd\u81ea\u52a8\u6dfb\u52a0\u9002\u5f53\u7684\u5343\u4f4d\u5206\u9694\u7b26\u3002<\/p>\n<\/p>\n<p><h3>\u5e94\u7528\u5b9e\u4f8b<\/h3>\n<\/p>\n<p><h4>1. \u683c\u5f0f\u5316\u6d6e\u70b9\u6570<\/h4>\n<\/p>\n<p><p>\u9664\u4e86\u6574\u6570\uff0c<code>format()<\/code>\u51fd\u6570\u4e5f\u53ef\u4ee5\u7528\u4e8e\u683c\u5f0f\u5316\u6d6e\u70b9\u6570\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">number = 1234567.89<\/p>\n<p>formatted_number = &quot;{:,.2f}&quot;.format(number)<\/p>\n<p>print(formatted_number)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u6bb5\u4ee3\u7801\u4f1a\u8f93\u51fa<code>1,234,567.89<\/code>\u3002\u8fd9\u91cc\u7684<code>:,.2f<\/code>\u8868\u793a\u5c06\u6570\u5b57\u683c\u5f0f\u5316\u4e3a\u5e26\u6709\u4e24\u4f4d\u5c0f\u6570\u7684\u6d6e\u70b9\u6570\uff0c\u5e76\u4f7f\u7528\u9017\u53f7\u4f5c\u4e3a\u5343\u4f4d\u5206\u9694\u7b26\u3002<\/p>\n<\/p>\n<p><h4>2. \u683c\u5f0f\u5316\u8d1f\u6570<\/h4>\n<\/p>\n<p><p>\u540c\u6837\u5730\uff0c\u8d1f\u6570\u4e5f\u53ef\u4ee5\u4f7f\u7528<code>format()<\/code>\u51fd\u6570\u8fdb\u884c\u683c\u5f0f\u5316\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">number = -1234567.89<\/p>\n<p>formatted_number = &quot;{:,.2f}&quot;.format(number)<\/p>\n<p>print(formatted_number)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8f93\u51fa\u7ed3\u679c\u4e3a<code>-1,234,567.89<\/code>\uff0c\u8d1f\u53f7\u4f1a\u81ea\u52a8\u6dfb\u52a0\u5230\u683c\u5f0f\u5316\u540e\u7684\u5b57\u7b26\u4e32\u4e2d\u3002<\/p>\n<\/p>\n<p><h2>\u4e8c\u3001\u4f7f\u7528f-string<\/h2>\n<\/p>\n<p><p>Python 3.6\u5f15\u5165\u4e86f-string\uff08\u683c\u5f0f\u5316\u5b57\u7b26\u4e32\u5b57\u9762\u503c\uff09\uff0c\u4f7f\u5f97\u5b57\u7b26\u4e32\u683c\u5f0f\u5316\u66f4\u52a0\u7b80\u6d01\u548c\u76f4\u89c2\u3002\u4f7f\u7528f-string\uff0c\u53ef\u4ee5\u5728\u5b57\u7b26\u4e32\u524d\u52a0\u4e0a<code>f<\/code>\uff0c\u7136\u540e\u5728\u82b1\u62ec\u53f7\u5185\u76f4\u63a5\u4e66\u5199\u8868\u8fbe\u5f0f\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">number = 1234567890<\/p>\n<p>formatted_number = f&quot;{number:,}&quot;<\/p>\n<p>print(formatted_number)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u6bb5\u4ee3\u7801\u4f1a\u8f93\u51fa<code>1,234,567,890<\/code>\u3002\u4e0e<code>format()<\/code>\u51fd\u6570\u7c7b\u4f3c\uff0cf-string\u4e5f\u53ef\u4ee5\u4f7f\u7528\u9017\u53f7\u4f5c\u4e3a\u5343\u4f4d\u5206\u9694\u7b26\u3002<\/p>\n<\/p>\n<p><h3>\u5e94\u7528\u5b9e\u4f8b<\/h3>\n<\/p>\n<p><h4>1. \u683c\u5f0f\u5316\u6d6e\u70b9\u6570<\/h4>\n<\/p>\n<p><p>\u4f7f\u7528f-string\u683c\u5f0f\u5316\u6d6e\u70b9\u6570\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">number = 1234567.89<\/p>\n<p>formatted_number = f&quot;{number:,.2f}&quot;<\/p>\n<p>print(formatted_number)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8f93\u51fa\u7ed3\u679c\u4e3a<code>1,234,567.89<\/code>\uff0c\u4e0e<code>format()<\/code>\u51fd\u6570\u7684\u6548\u679c\u76f8\u540c\u3002<\/p>\n<\/p>\n<p><h4>2. \u683c\u5f0f\u5316\u8d1f\u6570<\/h4>\n<\/p>\n<p><p>\u4f7f\u7528f-string\u683c\u5f0f\u5316\u8d1f\u6570\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">number = -1234567.89<\/p>\n<p>formatted_number = f&quot;{number:,.2f}&quot;<\/p>\n<p>print(formatted_number)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8f93\u51fa\u7ed3\u679c\u4e3a<code>-1,234,567.89<\/code>\uff0c\u8d1f\u53f7\u4f1a\u81ea\u52a8\u6dfb\u52a0\u5230\u683c\u5f0f\u5316\u540e\u7684\u5b57\u7b26\u4e32\u4e2d\u3002<\/p>\n<\/p>\n<p><h2>\u4e09\u3001\u4f7f\u7528<code>locale<\/code>\u6a21\u5757<\/h2>\n<\/p>\n<p><p><code>locale<\/code>\u6a21\u5757\u63d0\u4f9b\u4e86\u4e00\u79cd\u57fa\u4e8e\u672c\u5730\u5316\u7684\u683c\u5f0f\u5316\u65b9\u6cd5\uff0c\u53ef\u4ee5\u6839\u636e\u4e0d\u540c\u7684\u533a\u57df\u8bbe\u7f6e\u6765\u683c\u5f0f\u5316\u6570\u5b57\u3002\u4f7f\u7528<code>locale<\/code>\u6a21\u5757\u53ef\u4ee5\u5b9e\u73b0\u66f4\u52a0\u7075\u6d3b\u7684\u5343\u4f4d\u5206\u9694\u7b26\u683c\u5f0f\u5316\u3002<\/p>\n<\/p>\n<p><h3>\u8bbe\u7f6e\u533a\u57df<\/h3>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u9700\u8981\u8bbe\u7f6e\u533a\u57df\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import locale<\/p>\n<p>locale.setlocale(locale.LC_ALL, &#39;&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u6837\u505a\u4f1a\u6839\u636e\u7cfb\u7edf\u7684\u9ed8\u8ba4\u533a\u57df\u8bbe\u7f6e\u6765\u8fdb\u884c\u683c\u5f0f\u5316\u3002\u5982\u679c\u9700\u8981\u7279\u5b9a\u7684\u533a\u57df\u8bbe\u7f6e\uff0c\u53ef\u4ee5\u4f20\u9012\u76f8\u5e94\u7684\u533a\u57df\u4ee3\u7801\uff0c\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">locale.setlocale(locale.LC_ALL, &#39;en_US.UTF-8&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u683c\u5f0f\u5316\u6570\u5b57<\/h3>\n<\/p>\n<p><p>\u4f7f\u7528<code>locale<\/code>\u6a21\u5757\u7684<code>locale.format_string()<\/code>\u51fd\u6570\u6765\u683c\u5f0f\u5316\u6570\u5b57\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">number = 1234567890<\/p>\n<p>formatted_number = locale.format_string(&quot;%d&quot;, number, grouping=True)<\/p>\n<p>print(formatted_number)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u6bb5\u4ee3\u7801\u4f1a\u8f93\u51fa<code>1,234,567,890<\/code>\u3002<code>&quot;%d&quot;<\/code>\u8868\u793a\u6574\u6570\u683c\u5f0f\uff0c<code>grouping=True<\/code>\u542f\u7528\u5343\u4f4d\u5206\u9694\u7b26\u3002<\/p>\n<\/p>\n<p><h3>\u5e94\u7528\u5b9e\u4f8b<\/h3>\n<\/p>\n<p><h4>1. \u683c\u5f0f\u5316\u6d6e\u70b9\u6570<\/h4>\n<\/p>\n<p><p>\u4f7f\u7528<code>locale<\/code>\u6a21\u5757\u683c\u5f0f\u5316\u6d6e\u70b9\u6570\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">number = 1234567.89<\/p>\n<p>formatted_number = locale.format_string(&quot;%.2f&quot;, number, grouping=True)<\/p>\n<p>print(formatted_number)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8f93\u51fa\u7ed3\u679c\u4e3a<code>1,234,567.89<\/code>\uff0c<code>&quot;%.2f&quot;<\/code>\u8868\u793a\u5e26\u6709\u4e24\u4f4d\u5c0f\u6570\u7684\u6d6e\u70b9\u6570\u683c\u5f0f\u3002<\/p>\n<\/p>\n<p><h4>2. \u683c\u5f0f\u5316\u8d1f\u6570<\/h4>\n<\/p>\n<p><p>\u4f7f\u7528<code>locale<\/code>\u6a21\u5757\u683c\u5f0f\u5316\u8d1f\u6570\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">number = -1234567.89<\/p>\n<p>formatted_number = locale.format_string(&quot;%.2f&quot;, number, grouping=True)<\/p>\n<p>print(formatted_number)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8f93\u51fa\u7ed3\u679c\u4e3a<code>-1,234,567.89<\/code>\uff0c\u8d1f\u53f7\u4f1a\u81ea\u52a8\u6dfb\u52a0\u5230\u683c\u5f0f\u5316\u540e\u7684\u5b57\u7b26\u4e32\u4e2d\u3002<\/p>\n<\/p>\n<p><h2>\u56db\u3001\u603b\u7ed3<\/h2>\n<\/p>\n<p><p>\u5728Python\u4e2d\u8f93\u51fa\u5343\u4f4d\u6570\u7684\u65b9\u6cd5\u6709\u5f88\u591a\uff0c\u5e38\u7528\u7684\u65b9\u6cd5\u5305\u62ec\u4f7f\u7528<code>format()<\/code>\u51fd\u6570\u3001f-string\u548c<code>locale<\/code>\u6a21\u5757\u3002<code>format()<\/code>\u51fd\u6570\u548cf-string\u662f\u6700\u5e38\u7528\u7684\u65b9\u6cd5\uff0c\u5b83\u4eec\u7b80\u5355\u6613\u7528\uff0c\u9002\u5408\u5927\u591a\u6570\u573a\u666f\u3002<code>locale<\/code>\u6a21\u5757\u5219\u63d0\u4f9b\u4e86\u66f4\u7075\u6d3b\u7684\u683c\u5f0f\u5316\u9009\u9879\uff0c\u53ef\u4ee5\u6839\u636e\u4e0d\u540c\u7684\u533a\u57df\u8bbe\u7f6e\u6765\u683c\u5f0f\u5316\u6570\u5b57\u3002<\/p>\n<\/p>\n<p><p>\u901a\u8fc7\u4ee5\u4e0a\u51e0\u79cd\u65b9\u6cd5\uff0c\u53ef\u4ee5\u6839\u636e\u9700\u8981\u9009\u62e9\u6700\u9002\u5408\u7684\u65b9\u5f0f\u6765\u683c\u5f0f\u5316\u6570\u5b57\uff0c\u5e76\u8f93\u51fa\u5e26\u6709\u5343\u4f4d\u5206\u9694\u7b26\u7684\u5b57\u7b26\u4e32\u3002\u65e0\u8bba\u662f\u54ea\u79cd\u65b9\u6cd5\uff0c\u90fd\u53ef\u4ee5\u65b9\u4fbf\u5730\u5b9e\u73b0\u5343\u4f4d\u5206\u9694\u7b26\u7684\u8f93\u51fa\uff0c\u4f7f\u6570\u5b57\u66f4\u52a0\u6613\u8bfb\u548c\u7f8e\u89c2\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u683c\u5f0f\u5316\u6570\u5b57\u4ee5\u663e\u793a\u5343\u4f4d\u5206\u9694\u7b26\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u5185\u7f6e\u7684<code>format()<\/code>\u51fd\u6570\u6216\u8005<code>f-string<\/code>\u6765\u683c\u5f0f\u5316\u6570\u5b57\uff0c\u4ee5\u4fbf\u5728\u8f93\u51fa\u65f6\u663e\u793a\u5343\u4f4d\u5206\u9694\u7b26\u3002\u4f7f\u7528<code>format()<\/code>\u51fd\u6570\u65f6\uff0c\u53ef\u4ee5\u8fd9\u6837\u5199\uff1a<code>&quot;{:,}&quot;.format(1234567)<\/code>\uff0c\u8f93\u51fa\u7ed3\u679c\u5c06\u662f<code>1,234,567<\/code>\u3002\u5982\u679c\u4f7f\u7528<code>f-string<\/code>\uff0c\u53ef\u4ee5\u8fd9\u6837\u5199\uff1a<code>f&quot;{1234567:,}&quot;<\/code>\uff0c\u5f97\u5230\u76f8\u540c\u7684\u7ed3\u679c\u3002\u8fd9\u4e24\u79cd\u65b9\u6cd5\u90fd\u975e\u5e38\u7b80\u4fbf\u4e14\u6613\u4e8e\u4f7f\u7528\u3002<\/p>\n<p><strong>\u5728Python\u4e2d\u5982\u4f55\u5904\u7406\u6d6e\u70b9\u6570\u7684\u5343\u4f4d\u5206\u9694\u7b26\uff1f<\/strong><br \/>\u5bf9\u4e8e\u6d6e\u70b9\u6570\uff0c\u60a8\u540c\u6837\u53ef\u4ee5\u4f7f\u7528<code>format()<\/code>\u6216<code>f-string<\/code>\u6765\u5904\u7406\u3002\u5047\u8bbe\u60a8\u6709\u4e00\u4e2a\u6d6e\u70b9\u6570<code>1234567.89<\/code>\uff0c\u53ef\u4ee5\u8fd9\u6837\u683c\u5f0f\u5316\uff1a<code>&quot;{:,.2f}&quot;.format(1234567.89)<\/code>\u6216<code>f&quot;{1234567.89:,.2f}&quot;<\/code>\u3002\u8fd9\u79cd\u65b9\u5f0f\u4e0d\u4ec5\u4f1a\u663e\u793a\u5343\u4f4d\u5206\u9694\u7b26\uff0c\u8fd8\u4f1a\u4fdd\u7559\u4e24\u4f4d\u5c0f\u6570\uff0c\u8f93\u51fa\u7ed3\u679c\u4e3a<code>1,234,567.89<\/code>\u3002<\/p>\n<p><strong>\u662f\u5426\u6709\u5176\u4ed6\u5e93\u53ef\u4ee5\u5e2e\u52a9\u5728Python\u4e2d\u5904\u7406\u5343\u4f4d\u5206\u9694\u7b26\uff1f<\/strong><br \/>\u9664\u4e86\u4f7f\u7528\u5185\u7f6e\u7684\u683c\u5f0f\u5316\u65b9\u6cd5\u5916\uff0cPython\u7684<code>locale<\/code>\u6a21\u5757\u4e5f\u53ef\u4ee5\u5e2e\u52a9\u5904\u7406\u4e0d\u540c\u5730\u533a\u683c\u5f0f\u7684\u6570\u5b57\u3002\u901a\u8fc7\u8bbe\u7f6e<code>locale<\/code>\uff0c\u53ef\u4ee5\u5b9e\u73b0\u5343\u4f4d\u5206\u9694\u7b26\u7684\u683c\u5f0f\u5316\u3002\u4f8b\u5982\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528<code>locale.setlocale(locale.LC_ALL, &#39;en_US.UTF-8&#39;)<\/code>\u6765\u8bbe\u7f6e\u4e3a\u7f8e\u56fd\u683c\u5f0f\uff0c\u7136\u540e\u4f7f\u7528<code>locale.format_string(&quot;%d&quot;, 1234567, grouping=True)<\/code>\u6765\u8f93\u51fa\u5e26\u5343\u4f4d\u5206\u9694\u7b26\u7684\u6570\u5b57\u3002\u8fd9\u79cd\u65b9\u6cd5\u5bf9\u4e8e\u5904\u7406\u591a\u79cd\u8bed\u8a00\u548c\u5730\u533a\u683c\u5f0f\u975e\u5e38\u6709\u6548\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Python\u8f93\u51fa\u5343\u4f4d\u6570\u7684\u65b9\u6cd5\u6709\u683c\u5f0f\u5316\u5b57\u7b26\u4e32\u3001\u5185\u7f6e\u51fd\u6570format()\u3001f-string\u7b49\u3002\u5176\u4e2d\u4e00\u79cd\u5e38\u89c1\u7684\u65b9\u6cd5\u662f [&hellip;]","protected":false},"author":3,"featured_media":1072956,"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\/1072951"}],"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=1072951"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1072951\/revisions"}],"predecessor-version":[{"id":1072958,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1072951\/revisions\/1072958"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1072956"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1072951"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1072951"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1072951"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}