{"id":1065490,"date":"2024-12-31T16:18:01","date_gmt":"2024-12-31T08:18:01","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1065490.html"},"modified":"2024-12-31T16:18:04","modified_gmt":"2024-12-31T08:18:04","slug":"python%e7%bc%96%e7%a8%8b%e5%a6%82%e4%bd%95%e4%bf%9d%e7%95%99%e4%b8%80%e4%bd%8d%e5%b0%8f%e6%95%b0","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1065490.html","title":{"rendered":"python\u7f16\u7a0b\u5982\u4f55\u4fdd\u7559\u4e00\u4f4d\u5c0f\u6570"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-docs.pingcode.com\/wp-content\/uploads\/2024\/12\/4acd8d89-8225-4b9d-bc09-7d0f6f43a602.webp?x-oss-process=image\/auto-orient,1\/format,webp\" alt=\"python\u7f16\u7a0b\u5982\u4f55\u4fdd\u7559\u4e00\u4f4d\u5c0f\u6570\" \/><\/p>\n<p><p> <strong>\u5728Python\u7f16\u7a0b\u4e2d\uff0c\u4fdd\u7559\u4e00\u4f4d\u5c0f\u6570\u53ef\u4ee5\u901a\u8fc7\u4f7f\u7528\u5b57\u7b26\u4e32\u683c\u5f0f\u5316\u3001<code>round()<\/code>\u51fd\u6570\u3001<code>Decimal<\/code>\u6a21\u5757\u7b49\u65b9\u6cd5\u5b9e\u73b0\uff0c\u8fd9\u4e9b\u65b9\u6cd5\u5404\u6709\u5176\u9002\u7528\u573a\u666f\u548c\u4f18\u7f3a\u70b9\u3002<\/strong> \u5176\u4e2d\uff0c\u4f7f\u7528\u5b57\u7b26\u4e32\u683c\u5f0f\u5316\u65b9\u6cd5\u66f4\u4e3a\u5e38\u89c1\u548c\u7b80\u4fbf\u3002\u5177\u4f53\u6765\u8bf4\uff0c<code>&quot;{:.1f}&quot;.format(value)<\/code>\u8fd9\u79cd\u683c\u5f0f\u5316\u65b9\u6cd5\u4e0d\u4ec5\u6613\u4e8e\u7406\u89e3\uff0c\u800c\u4e14\u5728\u64cd\u4f5c\u4e0a\u4e5f\u975e\u5e38\u7b80\u4fbf\u3002<\/p>\n<\/p>\n<p><p>\u4f8b\u5982\uff0c\u5047\u8bbe\u6211\u4eec\u6709\u4e00\u4e2a\u6d6e\u70b9\u6570 <code>x = 3.14159<\/code>\uff0c\u8981\u4fdd\u7559\u4e00\u4f4d\u5c0f\u6570\uff0c\u53ef\u4ee5\u4f7f\u7528\u5982\u4e0b\u4ee3\u7801\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">x = 3.14159<\/p>\n<p>formatted_x = &quot;{:.1f}&quot;.format(x)<\/p>\n<p>print(formatted_x)  # \u8f93\u51fa\uff1a3.1<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u79cd\u65b9\u6cd5\u4e2d\uff0c<code>{:.1f}<\/code>\u8868\u793a\u5c06\u6d6e\u70b9\u6570\u683c\u5f0f\u5316\u4e3a\u4e00\u4f4d\u5c0f\u6570\u3002\u683c\u5f0f\u5316\u5b57\u7b26\u4e32\u4e2d\u7684\u5192\u53f7\u540e\u9762\u7d27\u8ddf\u4e00\u4e2a\u70b9\u53f7\uff0c\u540e\u9762\u7684\u4e00\u4f4d\u5c0f\u6570\u5373 <code>1f<\/code> \u8868\u793a\u5c06\u6570\u503c\u683c\u5f0f\u5316\u4e3a\u4e00\u4f4d\u5c0f\u6570\u7684\u6d6e\u70b9\u6570\u3002<\/p>\n<\/p>\n<p><p>\u4e0b\u9762\u6211\u4eec\u5c06\u8be6\u7ec6\u4ecb\u7ecdPython\u4e2d\u51e0\u79cd\u5e38\u89c1\u7684\u65b9\u6cd5\u6765\u4fdd\u7559\u4e00\u4f4d\u5c0f\u6570\uff0c\u5e76\u5206\u6790\u5176\u4f18\u7f3a\u70b9\u548c\u9002\u7528\u573a\u666f\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u4f7f\u7528\u5b57\u7b26\u4e32\u683c\u5f0f\u5316<\/h3>\n<\/p>\n<p><p>\u5b57\u7b26\u4e32\u683c\u5f0f\u5316\u65b9\u6cd5\u662fPython\u4e2d\u6700\u5e38\u89c1\u3001\u6700\u7b80\u4fbf\u7684\u65b9\u6cd5\u4e4b\u4e00\uff0c\u901a\u8fc7\u4f7f\u7528 <code>str.format()<\/code> \u548c f-strings \u90fd\u53ef\u4ee5\u5b9e\u73b0\u3002<\/p>\n<\/p>\n<p><h4>1. \u4f7f\u7528 <code>str.format()<\/code><\/h4>\n<\/p>\n<p><p><code>str.format()<\/code> \u662f\u4e00\u79cd\u8f83\u4e3a\u4f20\u7edf\u7684\u5b57\u7b26\u4e32\u683c\u5f0f\u5316\u65b9\u6cd5\uff0c\u4f7f\u7528\u8fd9\u79cd\u65b9\u6cd5\u53ef\u4ee5\u8f7b\u677e\u5730\u5c06\u6d6e\u70b9\u6570\u683c\u5f0f\u5316\u4e3a\u6307\u5b9a\u7684\u5c0f\u6570\u4f4d\u6570\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">x = 3.14159<\/p>\n<p>formatted_x = &quot;{:.1f}&quot;.format(x)<\/p>\n<p>print(formatted_x)  # \u8f93\u51fa\uff1a3.1<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2. \u4f7f\u7528 f-strings<\/h4>\n<\/p>\n<p><p>f-strings \u662fPython 3.6\u53ca\u4ee5\u4e0a\u7248\u672c\u4e2d\u5f15\u5165\u7684\u4e00\u79cd\u65b0\u7684\u5b57\u7b26\u4e32\u683c\u5f0f\u5316\u65b9\u6cd5\uff0c\u76f8\u8f83\u4e8e <code>str.format()<\/code>\uff0cf-strings \u8bed\u6cd5\u66f4\u52a0\u7b80\u6d01\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">x = 3.14159<\/p>\n<p>formatted_x = f&quot;{x:.1f}&quot;<\/p>\n<p>print(formatted_x)  # \u8f93\u51fa\uff1a3.1<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u4f18\u70b9\uff1a<\/strong> \u5b57\u7b26\u4e32\u683c\u5f0f\u5316\u65b9\u6cd5\u975e\u5e38\u76f4\u89c2\uff0c\u4ee3\u7801\u7b80\u6d01\u6613\u8bfb\u3002<br \/><strong>\u7f3a\u70b9\uff1a<\/strong> \u8fd9\u79cd\u65b9\u6cd5\u751f\u6210\u7684\u662f\u5b57\u7b26\u4e32\uff0c\u5982\u679c\u540e\u7eed\u9700\u8981\u8fdb\u884c\u6570\u5b66\u8fd0\u7b97\uff0c\u8fd8\u9700\u5c06\u5176\u8f6c\u6362\u56de\u6d6e\u70b9\u6570\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u4f7f\u7528 <code>round()<\/code> \u51fd\u6570<\/h3>\n<\/p>\n<p><p><code>round()<\/code> \u51fd\u6570\u662fPython\u5185\u7f6e\u7684\u4e00\u4e2a\u51fd\u6570\uff0c\u53ef\u4ee5\u7528\u4e8e\u5c06\u6d6e\u70b9\u6570\u56db\u820d\u4e94\u5165\u5230\u6307\u5b9a\u7684\u5c0f\u6570\u4f4d\u6570\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">x = 3.14159<\/p>\n<p>rounded_x = round(x, 1)<\/p>\n<p>print(rounded_x)  # \u8f93\u51fa\uff1a3.1<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u4f18\u70b9\uff1a<\/strong> <code>round()<\/code> \u51fd\u6570\u8fd4\u56de\u7684\u662f\u6d6e\u70b9\u6570\uff0c\u9002\u5408\u540e\u7eed\u9700\u8981\u8fdb\u884c\u6570\u5b66\u8fd0\u7b97\u7684\u573a\u666f\u3002<br \/><strong>\u7f3a\u70b9\uff1a<\/strong> <code>round()<\/code> \u51fd\u6570\u8fdb\u884c\u56db\u820d\u4e94\u5165\u64cd\u4f5c\uff0c\u53ef\u80fd\u4f1a\u5bfc\u81f4\u4e00\u4e9b\u7cbe\u5ea6\u95ee\u9898\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001\u4f7f\u7528 <code>Decimal<\/code> \u6a21\u5757<\/h3>\n<\/p>\n<p><p><code>Decimal<\/code> \u6a21\u5757\u63d0\u4f9b\u4e86\u5341\u8fdb\u5236\u6d6e\u70b9\u6570\uff0c\u5177\u6709\u66f4\u9ad8\u7684\u7cbe\u5ea6\u548c\u63a7\u5236\u80fd\u529b\uff0c\u9002\u7528\u4e8e\u5bf9\u6570\u503c\u7cbe\u5ea6\u8981\u6c42\u8f83\u9ad8\u7684\u573a\u666f\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from decimal import Decimal, ROUND_HALF_UP<\/p>\n<p>x = Decimal(&#39;3.14159&#39;)<\/p>\n<p>rounded_x = x.quantize(Decimal(&#39;0.1&#39;), rounding=ROUND_HALF_UP)<\/p>\n<p>print(rounded_x)  # \u8f93\u51fa\uff1a3.1<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u4f18\u70b9\uff1a<\/strong> <code>Decimal<\/code> \u6a21\u5757\u63d0\u4f9b\u9ad8\u7cbe\u5ea6\u63a7\u5236\uff0c\u907f\u514d\u6d6e\u70b9\u6570\u8fd0\u7b97\u4e2d\u7684\u7cbe\u5ea6\u95ee\u9898\u3002<br \/><strong>\u7f3a\u70b9\uff1a<\/strong> \u4ee3\u7801\u8f83\u4e3a\u590d\u6742\uff0c\u4f7f\u7528\u6210\u672c\u8f83\u9ad8\u3002<\/p>\n<\/p>\n<p><h3>\u56db\u3001\u4f7f\u7528\u81ea\u5b9a\u4e49\u51fd\u6570<\/h3>\n<\/p>\n<p><p>\u5728\u4e00\u4e9b\u7279\u5b9a\u573a\u666f\u4e0b\uff0c\u53ef\u4ee5\u7f16\u5199\u81ea\u5b9a\u4e49\u51fd\u6570\u6765\u5b9e\u73b0\u4fdd\u7559\u4e00\u4f4d\u5c0f\u6570\u7684\u9700\u6c42\uff0c\u4ee5\u4fbf\u7edf\u4e00\u7ba1\u7406\u548c\u4f7f\u7528\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def format_one_decimal(value):<\/p>\n<p>    return &quot;{:.1f}&quot;.format(value)<\/p>\n<p>x = 3.14159<\/p>\n<p>formatted_x = format_one_decimal(x)<\/p>\n<p>print(formatted_x)  # \u8f93\u51fa\uff1a3.1<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u4f18\u70b9\uff1a<\/strong> \u81ea\u5b9a\u4e49\u51fd\u6570\u53ef\u4ee5\u5c01\u88c5\u590d\u6742\u7684\u903b\u8f91\uff0c\u4ee3\u7801\u590d\u7528\u6027\u5f3a\u3002<br \/><strong>\u7f3a\u70b9\uff1a<\/strong> \u9700\u8981\u989d\u5916\u7f16\u5199\u548c\u7ef4\u62a4\u4ee3\u7801\u3002<\/p>\n<\/p>\n<p><h3>\u4e94\u3001\u5b9e\u9645\u5e94\u7528\u573a\u666f<\/h3>\n<\/p>\n<p><h4>1. \u6570\u636e\u5904\u7406\u4e0e\u5206\u6790<\/h4>\n<\/p>\n<p><p>\u5728\u6570\u636e\u5904\u7406\u548c\u5206\u6790\u4e2d\uff0c\u4fdd\u7559\u4e00\u4f4d\u5c0f\u6570\u5e38\u7528\u4e8e\u7edf\u8ba1\u6570\u636e\u7684\u5c55\u793a\u548c\u6bd4\u8f83\u3002\u4f8b\u5982\uff0c\u5728\u6570\u636e\u53ef\u89c6\u5316\u65f6\uff0c\u4e3a\u4e86\u907f\u514d\u6570\u503c\u8fc7\u4e8e\u5197\u957f\uff0c\u53ef\u4ee5\u5c06\u6570\u503c\u683c\u5f0f\u5316\u4e3a\u4e00\u4f4d\u5c0f\u6570\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">data = [3.14159, 2.71828, 1.61803]<\/p>\n<p>formatted_data = [f&quot;{num:.1f}&quot; for num in data]<\/p>\n<p>print(formatted_data)  # \u8f93\u51fa\uff1a[&#39;3.1&#39;, &#39;2.7&#39;, &#39;1.6&#39;]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2. \u91d1\u878d\u8ba1\u7b97<\/h4>\n<\/p>\n<p><p>\u5728\u91d1\u878d\u8ba1\u7b97\u4e2d\uff0c\u5bf9\u6570\u503c\u7cbe\u5ea6\u7684\u8981\u6c42\u975e\u5e38\u9ad8\uff0c\u5e38\u5e38\u9700\u8981\u4fdd\u7559\u4e00\u5b9a\u7684\u5c0f\u6570\u4f4d\u6570\uff0c\u4ee5\u786e\u4fdd\u8ba1\u7b97\u7ed3\u679c\u7684\u51c6\u786e\u6027\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from decimal import Decimal, ROUND_HALF_UP<\/p>\n<p>amount = Decimal(&#39;1234.5678&#39;)<\/p>\n<p>formatted_amount = amount.quantize(Decimal(&#39;0.1&#39;), rounding=ROUND_HALF_UP)<\/p>\n<p>print(formatted_amount)  # \u8f93\u51fa\uff1a1234.6<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>3. \u79d1\u5b66\u8ba1\u7b97<\/h4>\n<\/p>\n<p><p>\u5728\u79d1\u5b66\u8ba1\u7b97\u4e2d\uff0c\u4fdd\u7559\u4e00\u4f4d\u5c0f\u6570\u53ef\u4ee5\u7b80\u5316\u6570\u636e\u7684\u8868\u8fbe\uff0c\u4fbf\u4e8e\u7ed3\u679c\u7684\u6bd4\u8f83\u548c\u5206\u6790\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import math<\/p>\n<p>x = math.pi<\/p>\n<p>formatted_x = f&quot;{x:.1f}&quot;<\/p>\n<p>print(formatted_x)  # \u8f93\u51fa\uff1a3.1<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u516d\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u5728Python\u7f16\u7a0b\u4e2d\uff0c\u4fdd\u7559\u4e00\u4f4d\u5c0f\u6570\u7684\u65b9\u6cd5\u591a\u79cd\u591a\u6837\uff0c\u5305\u62ec\u5b57\u7b26\u4e32\u683c\u5f0f\u5316\u3001<code>round()<\/code> \u51fd\u6570\u3001<code>Decimal<\/code> \u6a21\u5757\u7b49\u3002\u6bcf\u79cd\u65b9\u6cd5\u5404\u6709\u4f18\u7f3a\u70b9\uff0c\u9002\u7528\u4e8e\u4e0d\u540c\u7684\u5e94\u7528\u573a\u666f\u3002\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\u4e0d\u4ec5\u80fd\u591f\u4fdd\u8bc1\u4ee3\u7801\u7684\u7b80\u6d01\u6027\uff0c\u8fd8\u80fd\u63d0\u9ad8\u4ee3\u7801\u7684\u53ef\u8bfb\u6027\u548c\u53ef\u7ef4\u62a4\u6027\u3002<\/p>\n<\/p>\n<p><p><strong>\u4f7f\u7528\u5b57\u7b26\u4e32\u683c\u5f0f\u5316\u65b9\u6cd5\u66f4\u4e3a\u5e38\u89c1\u548c\u7b80\u4fbf\uff0c\u9002\u7528\u4e8e\u5927\u591a\u6570\u573a\u666f\uff1b\u800c <code>round()<\/code> \u51fd\u6570\u9002\u7528\u4e8e\u9700\u8981\u4fdd\u7559\u6d6e\u70b9\u6570\u8fdb\u884c\u6570\u5b66\u8fd0\u7b97\u7684\u573a\u666f\uff1b<code>Decimal<\/code> \u6a21\u5757\u5219\u9002\u7528\u4e8e\u5bf9\u6570\u503c\u7cbe\u5ea6\u8981\u6c42\u8f83\u9ad8\u7684\u573a\u666f\u3002<\/strong><\/p>\n<\/p>\n<p><p>\u901a\u8fc7\u672c\u6587\u7684\u8be6\u7ec6\u4ecb\u7ecd\uff0c\u76f8\u4fe1\u8bfb\u8005\u5df2\u7ecf\u5bf9Python\u4e2d\u5982\u4f55\u4fdd\u7559\u4e00\u4f4d\u5c0f\u6570\u6709\u4e86\u5168\u9762\u7684\u4e86\u89e3\u548c\u638c\u63e1\u3002\u5e0c\u671b\u672c\u6587\u80fd\u591f\u5bf9\u8bfb\u8005\u7684\u7f16\u7a0b\u5b9e\u8df5\u6709\u6240\u5e2e\u52a9\uff0c\u63d0\u9ad8\u7f16\u7a0b\u6548\u7387\u548c\u4ee3\u7801\u8d28\u91cf\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u5c06\u6d6e\u70b9\u6570\u56db\u820d\u4e94\u5165\u5230\u4e00\u4f4d\u5c0f\u6570\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u5185\u7f6e\u7684<code>round()<\/code>\u51fd\u6570\u6765\u5b9e\u73b0\u5c06\u6d6e\u70b9\u6570\u56db\u820d\u4e94\u5165\u5230\u6307\u5b9a\u7684\u5c0f\u6570\u4f4d\u6570\u3002\u8981\u4fdd\u7559\u4e00\u4f4d\u5c0f\u6570\uff0c\u53ea\u9700\u4f20\u5165\u4e24\u4e2a\u53c2\u6570\uff1a\u8981\u56db\u820d\u4e94\u5165\u7684\u6570\u5b57\u548c\u5c0f\u6570\u4f4d\u6570\u3002\u4f8b\u5982\uff0c<code>round(3.14159, 1)<\/code>\u5c06\u8fd4\u56de3.1\u3002<\/p>\n<p><strong>\u5728Python\u4e2d\uff0c\u5982\u4f55\u683c\u5f0f\u5316\u6d6e\u70b9\u6570\u4ee5\u4fdd\u7559\u4e00\u4f4d\u5c0f\u6570\uff1f<\/strong><br \/>\u9664\u4e86\u4f7f\u7528<code>round()<\/code>\u51fd\u6570\uff0c\u8fd8\u53ef\u4ee5\u4f7f\u7528\u5b57\u7b26\u4e32\u683c\u5f0f\u5316\u7684\u65b9\u6cd5\u6765\u63a7\u5236\u6d6e\u70b9\u6570\u7684\u663e\u793a\u3002\u4f7f\u7528f-\u5b57\u7b26\u4e32\uff08Python 3.6\u53ca\u4ee5\u4e0a\u7248\u672c\uff09\u53ef\u4ee5\u8f7b\u677e\u5b9e\u73b0\uff0c\u793a\u4f8b\u5982\u4e0b\uff1a<code>f&quot;{number:.1f}&quot;<\/code>\uff0c\u5176\u4e2d<code>number<\/code>\u662f\u4f60\u8981\u683c\u5f0f\u5316\u7684\u6d6e\u70b9\u6570\u3002\u8fd9\u79cd\u65b9\u5f0f\u4e0d\u4ec5\u4fdd\u7559\u4e86\u6307\u5b9a\u7684\u5c0f\u6570\u4f4d\uff0c\u8fd8\u80fd\u8ba9\u8f93\u51fa\u66f4\u7f8e\u89c2\u3002<\/p>\n<p><strong>\u662f\u5426\u6709\u5176\u4ed6\u65b9\u6cd5\u53ef\u4ee5\u5728Python\u4e2d\u4fdd\u7559\u4e00\u4f4d\u5c0f\u6570\uff1f<\/strong><br \/>\u9664\u4e86<code>round()<\/code>\u51fd\u6570\u548c\u5b57\u7b26\u4e32\u683c\u5f0f\u5316\uff0cPython\u7684<code>Decimal<\/code>\u6a21\u5757\u4e5f\u662f\u4e00\u4e2a\u4e0d\u9519\u7684\u9009\u62e9\u3002\u4f7f\u7528<code>Decimal<\/code>\u53ef\u4ee5\u66f4\u7cbe\u786e\u5730\u63a7\u5236\u6d6e\u70b9\u6570\u7684\u8868\u793a\u548c\u8fd0\u7b97\u3002\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u65b9\u5f0f\u5b9e\u73b0\uff1a  <\/p>\n<pre><code class=\"language-python\">from decimal import Decimal, ROUND_HALF_UP\n\nnumber = Decimal(&#39;3.14159&#39;)\nformatted_number = number.quantize(Decimal(&#39;0.1&#39;), rounding=ROUND_HALF_UP)\n<\/code><\/pre>\n<p>\u8fd9\u79cd\u65b9\u6cd5\u9002\u5408\u4e8e\u9700\u8981\u9ad8\u7cbe\u5ea6\u8ba1\u7b97\u7684\u573a\u666f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u7f16\u7a0b\u4e2d\uff0c\u4fdd\u7559\u4e00\u4f4d\u5c0f\u6570\u53ef\u4ee5\u901a\u8fc7\u4f7f\u7528\u5b57\u7b26\u4e32\u683c\u5f0f\u5316\u3001round()\u51fd\u6570\u3001Decimal\u6a21\u5757\u7b49\u65b9\u6cd5\u5b9e\u73b0\uff0c [&hellip;]","protected":false},"author":3,"featured_media":1065499,"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\/1065490"}],"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=1065490"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1065490\/revisions"}],"predecessor-version":[{"id":1065500,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1065490\/revisions\/1065500"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1065499"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1065490"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1065490"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1065490"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}