{"id":1050315,"date":"2024-12-31T14:06:45","date_gmt":"2024-12-31T06:06:45","guid":{"rendered":""},"modified":"2024-12-31T14:06:48","modified_gmt":"2024-12-31T06:06:48","slug":"python%e4%b8%ad%e5%a6%82%e4%bd%95%e5%86%b3%e5%ae%9a%e5%b0%8f%e6%95%b0%e4%bd%8d%e6%95%b0","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1050315.html","title":{"rendered":"python\u4e2d\u5982\u4f55\u51b3\u5b9a\u5c0f\u6570\u4f4d\u6570"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-docs.pingcode.com\/wp-content\/uploads\/2024\/12\/026ebd77-bd8b-473b-98a8-0044ee3372f7.webp?x-oss-process=image\/auto-orient,1\/format,webp\" alt=\"python\u4e2d\u5982\u4f55\u51b3\u5b9a\u5c0f\u6570\u4f4d\u6570\" \/><\/p>\n<p><p> <strong>\u5728Python\u4e2d\u51b3\u5b9a\u5c0f\u6570\u4f4d\u6570\u7684\u65b9\u6cd5\u6709\u5f88\u591a\uff0c\u5305\u62ec\u4f7f\u7528\u5185\u7f6e\u51fd\u6570round()\u3001\u5b57\u7b26\u4e32\u683c\u5f0f\u5316\u548cDecimal\u6a21\u5757\u7b49\u3002<\/strong>\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u5e38\u7528\u7684\u65b9\u6cd5\u5305\u62ec\u4ee5\u4e0b\u51e0\u79cd\uff1a<\/p>\n<\/p>\n<ol>\n<li><strong>\u4f7f\u7528round()\u51fd\u6570<\/strong>\uff1a\u8fd9\u662f\u6700\u76f4\u63a5\u7684\u65b9\u6cd5\uff0c\u901a\u8fc7\u7ed9\u5b9a\u7684\u5c0f\u6570\u4f4d\u6570\u6765\u5bf9\u6570\u503c\u8fdb\u884c\u56db\u820d\u4e94\u5165\u3002\u4f8b\u5982\uff0c<code>round(3.14159, 2)<\/code>\u4f1a\u8fd4\u56de<code>3.14<\/code>\u3002<\/li>\n<li><strong>\u4f7f\u7528\u5b57\u7b26\u4e32\u683c\u5f0f\u5316<\/strong>\uff1a\u53ef\u4ee5\u901a\u8fc7\u683c\u5f0f\u5316\u5b57\u7b26\u4e32\u6765\u6307\u5b9a\u5c0f\u6570\u4f4d\u6570\u3002\u4f8b\u5982\uff0c\u4f7f\u7528<code>&quot;{:.2f}&quot;.format(3.14159)<\/code>\u4f1a\u8fd4\u56de<code>&quot;3.14&quot;<\/code>\u3002<\/li>\n<li><strong>\u4f7f\u7528Decimal\u6a21\u5757<\/strong>\uff1a\u8fd9\u662f\u4e00\u4e2a\u66f4\u4e3a\u7cbe\u786e\u7684\u65b9\u6cd5\uff0c\u9002\u7528\u4e8e\u9700\u8981\u9ad8\u7cbe\u5ea6\u8ba1\u7b97\u7684\u573a\u5408\u3002\u4f8b\u5982\uff0c\u901a\u8fc7<code>Decimal(&#39;3.14159&#39;).quantize(Decimal(&#39;0.01&#39;))<\/code>\u53ef\u4ee5\u5f97\u5230<code>3.14<\/code>\u3002<\/li>\n<\/ol>\n<p><p>\u5176\u4e2d\uff0c<strong>Decimal\u6a21\u5757\u56e0\u5176\u9ad8\u7cbe\u5ea6\u548c\u7075\u6d3b\u6027\uff0c\u7279\u522b\u9002\u5408\u9700\u8981\u9ad8\u7cbe\u5ea6\u8ba1\u7b97\u7684\u573a\u5408<\/strong>\u3002\u6211\u4eec\u53ef\u4ee5\u8be6\u7ec6\u5c55\u5f00\u4ecb\u7ecd\u5b83\u7684\u4f7f\u7528\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u4f7f\u7528round()\u51fd\u6570<\/h3>\n<\/p>\n<p><p>Python\u5185\u7f6e\u7684<code>round()<\/code>\u51fd\u6570\u662f\u6700\u76f4\u63a5\u7684\u65b9\u5f0f\u4e4b\u4e00\u3002\u5b83\u63a5\u53d7\u4e24\u4e2a\u53c2\u6570\uff0c\u7b2c\u4e00\u4e2a\u662f\u9700\u8981\u56db\u820d\u4e94\u5165\u7684\u6570\u503c\uff0c\u7b2c\u4e8c\u4e2a\u662f\u9700\u8981\u4fdd\u7559\u7684\u5c0f\u6570\u4f4d\u6570\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">num = 3.14159<\/p>\n<p>rounded_num = round(num, 2)<\/p>\n<p>print(rounded_num)  # \u8f93\u51fa 3.14<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c<code>round()<\/code>\u51fd\u6570\u5c06<code>3.14159<\/code>\u56db\u820d\u4e94\u5165\u52302\u4f4d\u5c0f\u6570\uff0c\u7ed3\u679c\u4e3a<code>3.14<\/code>\u3002\u8fd9\u4e2a\u65b9\u6cd5\u7684\u4f18\u70b9\u662f\u7b80\u6d01\u660e\u4e86\uff0c\u975e\u5e38\u9002\u5408\u7b80\u5355\u7684\u6570\u503c\u5904\u7406\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u4f7f\u7528\u5b57\u7b26\u4e32\u683c\u5f0f\u5316<\/h3>\n<\/p>\n<p><p>\u5b57\u7b26\u4e32\u683c\u5f0f\u5316\u662f\u53e6\u4e00\u79cd\u5e38\u7528\u7684\u65b9\u6cd5\uff0c\u53ef\u4ee5\u901a\u8fc7\u683c\u5f0f\u5316\u5b57\u7b26\u4e32\u6765\u6307\u5b9a\u5c0f\u6570\u4f4d\u6570\u3002<\/p>\n<\/p>\n<p><h4>1. \u4f7f\u7528format()\u65b9\u6cd5<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\">num = 3.14159<\/p>\n<p>formatted_num = &quot;{:.2f}&quot;.format(num)<\/p>\n<p>print(formatted_num)  # \u8f93\u51fa 3.14<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c<code>&quot;{:.2f}&quot;.format(num)<\/code>\u5c06<code>num<\/code>\u683c\u5f0f\u5316\u4e3a\u4fdd\u75592\u4f4d\u5c0f\u6570\u7684\u5b57\u7b26\u4e32\u3002<\/p>\n<\/p>\n<p><h4>2. \u4f7f\u7528f-string\uff08Python 3.6+\uff09<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\">num = 3.14159<\/p>\n<p>formatted_num = f&quot;{num:.2f}&quot;<\/p>\n<p>print(formatted_num)  # \u8f93\u51fa 3.14<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>f-string\uff08\u683c\u5f0f\u5316\u5b57\u7b26\u4e32\u5b57\u9762\u91cf\uff09\u662fPython 3.6\u5f15\u5165\u7684\u4e00\u79cd\u65b0\u7684\u5b57\u7b26\u4e32\u683c\u5f0f\u5316\u65b9\u5f0f\uff0c\u66f4\u52a0\u7b80\u6d01\u548c\u76f4\u89c2\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001\u4f7f\u7528Decimal\u6a21\u5757<\/h3>\n<\/p>\n<p><p>\u5bf9\u4e8e\u9700\u8981\u9ad8\u7cbe\u5ea6\u8ba1\u7b97\u7684\u573a\u5408\uff0c\u63a8\u8350\u4f7f\u7528<code>decimal<\/code>\u6a21\u5757\u3002<code>decimal<\/code>\u6a21\u5757\u63d0\u4f9b\u4e86\u4e00\u4e2a<code>Decimal<\/code>\u6570\u636e\u7c7b\u578b\uff0c\u7528\u4e8e\u5341\u8fdb\u5236\u6d6e\u70b9\u8fd0\u7b97\uff0c\u5177\u6709\u66f4\u9ad8\u7684\u7cbe\u5ea6\u548c\u66f4\u7075\u6d3b\u7684\u820d\u5165\u63a7\u5236\u3002<\/p>\n<\/p>\n<p><h4>1. \u5bfc\u5165\u6a21\u5757\u548c\u521b\u5efaDecimal\u5bf9\u8c61<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\">from decimal import Decimal, getcontext<\/p>\n<p>num = Decimal(&#39;3.14159&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2. \u8bbe\u7f6e\u7cbe\u5ea6\u548c\u820d\u5165\u65b9\u5f0f<\/h4>\n<\/p>\n<p><p>\u53ef\u4ee5\u901a\u8fc7<code>getcontext()<\/code>\u65b9\u6cd5\u8bbe\u7f6e\u5168\u5c40\u7684\u7cbe\u5ea6\u548c\u820d\u5165\u65b9\u5f0f\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">getcontext().prec = 4  # \u8bbe\u7f6e\u5168\u5c40\u7cbe\u5ea6\u4e3a4\u4f4d<\/p>\n<p>rounded_num = num.quantize(Decimal(&#39;0.01&#39;))  # \u4fdd\u7559\u4e24\u4f4d\u5c0f\u6570<\/p>\n<p>print(rounded_num)  # \u8f93\u51fa 3.14<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c<code>quantize()<\/code>\u65b9\u6cd5\u7528\u4e8e\u5c06<code>Decimal<\/code>\u5bf9\u8c61\u56db\u820d\u4e94\u5165\u5230\u6307\u5b9a\u7684\u5c0f\u6570\u4f4d\u6570\u3002<\/p>\n<\/p>\n<p><h4>3. \u63a7\u5236\u4e0d\u540c\u7684\u820d\u5165\u65b9\u5f0f<\/h4>\n<\/p>\n<p><p><code>decimal<\/code>\u6a21\u5757\u63d0\u4f9b\u4e86\u591a\u79cd\u820d\u5165\u65b9\u5f0f\uff0c\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from decimal import ROUND_HALF_UP, ROUND_DOWN<\/p>\n<p>rounded_num_up = num.quantize(Decimal(&#39;0.01&#39;), rounding=ROUND_HALF_UP)  # \u56db\u820d\u4e94\u5165<\/p>\n<p>rounded_num_down = num.quantize(Decimal(&#39;0.01&#39;), rounding=ROUND_DOWN)  # \u5411\u4e0b\u53d6\u6574<\/p>\n<p>print(rounded_num_up)   # \u8f93\u51fa 3.14<\/p>\n<p>print(rounded_num_down)  # \u8f93\u51fa 3.14<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u56db\u3001\u5176\u4ed6\u65b9\u6cd5<\/h3>\n<\/p>\n<p><h4>1. \u4f7f\u7528NumPy\u5e93<\/h4>\n<\/p>\n<p><p>\u5728\u6570\u636e\u79d1\u5b66\u548c\u6570\u503c\u8ba1\u7b97\u4e2d\uff0c<code>NumPy<\/code>\u5e93\u662f\u4e00\u4e2a\u975e\u5e38\u5e38\u7528\u7684\u5de5\u5177\u3002\u53ef\u4ee5\u4f7f\u7528<code>numpy.around()<\/code>\u51fd\u6570\u6765\u6307\u5b9a\u5c0f\u6570\u4f4d\u6570\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import numpy as np<\/p>\n<p>num = 3.14159<\/p>\n<p>rounded_num = np.around(num, 2)<\/p>\n<p>print(rounded_num)  # \u8f93\u51fa 3.14<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2. \u4f7f\u7528Pandas\u5e93<\/h4>\n<\/p>\n<p><p>\u5728\u6570\u636e\u5206\u6790\u4e2d\uff0c<code>Pandas<\/code>\u5e93\u63d0\u4f9b\u4e86\u5f3a\u5927\u7684\u6570\u636e\u5904\u7406\u529f\u80fd\u3002\u53ef\u4ee5\u4f7f\u7528<code>round()<\/code>\u65b9\u6cd5\u6765\u6307\u5b9aDataFrame\u6216Series\u5bf9\u8c61\u7684\u5c0f\u6570\u4f4d\u6570\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import pandas as pd<\/p>\n<p>data = {&#39;value&#39;: [3.14159, 2.71828, 1.61803]}<\/p>\n<p>df = pd.DataFrame(data)<\/p>\n<p>df[&#39;rounded_value&#39;] = df[&#39;value&#39;].round(2)<\/p>\n<p>print(df)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c<code>df[&#39;value&#39;].round(2)<\/code>\u5c06DataFrame\u4e2d<code>value<\/code>\u5217\u7684\u6570\u636e\u56db\u820d\u4e94\u5165\u52302\u4f4d\u5c0f\u6570\uff0c\u5e76\u5c06\u7ed3\u679c\u5b58\u50a8\u5728\u65b0\u7684\u5217<code>rounded_value<\/code>\u4e2d\u3002<\/p>\n<\/p>\n<p><h3>\u4e94\u3001\u4e0d\u540c\u573a\u666f\u4e0b\u7684\u65b9\u6cd5\u9009\u62e9<\/h3>\n<\/p>\n<p><h4>1. \u7b80\u5355\u6570\u503c\u5904\u7406<\/h4>\n<\/p>\n<p><p>\u5bf9\u4e8e\u7b80\u5355\u7684\u6570\u503c\u5904\u7406\uff0c<code>round()<\/code>\u51fd\u6570\u548c\u5b57\u7b26\u4e32\u683c\u5f0f\u5316\u5df2\u7ecf\u80fd\u591f\u6ee1\u8db3\u5927\u90e8\u5206\u9700\u6c42\u3002\u5b83\u4eec\u7684\u4f18\u70b9\u662f\u4f7f\u7528\u7b80\u5355\uff0c\u4ee3\u7801\u7b80\u6d01\u3002<\/p>\n<\/p>\n<p><h4>2. \u9ad8\u7cbe\u5ea6\u8ba1\u7b97<\/h4>\n<\/p>\n<p><p>\u5728\u91d1\u878d\u3001\u79d1\u5b66\u8ba1\u7b97\u7b49\u9700\u8981\u9ad8\u7cbe\u5ea6\u7684\u573a\u5408\uff0c\u63a8\u8350\u4f7f\u7528<code>decimal<\/code>\u6a21\u5757\u3002<code>decimal<\/code>\u6a21\u5757\u63d0\u4f9b\u4e86\u66f4\u9ad8\u7684\u7cbe\u5ea6\u548c\u66f4\u7075\u6d3b\u7684\u820d\u5165\u63a7\u5236\uff0c\u80fd\u591f\u907f\u514d\u6d6e\u70b9\u6570\u8ba1\u7b97\u4e2d\u7684\u8bef\u5dee\u95ee\u9898\u3002<\/p>\n<\/p>\n<p><h4>3. \u6570\u636e\u5206\u6790<\/h4>\n<\/p>\n<p><p>\u5728\u6570\u636e\u5206\u6790\u548c\u79d1\u5b66\u8ba1\u7b97\u4e2d\uff0c<code>NumPy<\/code>\u548c<code>Pandas<\/code>\u5e93\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u6570\u636e\u5904\u7406\u529f\u80fd\u3002\u53ef\u4ee5\u6839\u636e\u5177\u4f53\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<p><h3>\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u5728Python\u4e2d\uff0c\u6709\u591a\u79cd\u65b9\u6cd5\u53ef\u4ee5\u51b3\u5b9a\u5c0f\u6570\u4f4d\u6570\uff0c\u5305\u62ec<code>round()<\/code>\u51fd\u6570\u3001\u5b57\u7b26\u4e32\u683c\u5f0f\u5316\u548c<code>decimal<\/code>\u6a21\u5757\u7b49\u3002\u6bcf\u79cd\u65b9\u6cd5\u90fd\u6709\u5176\u9002\u7528\u7684\u573a\u666f\u548c\u4f18\u7f3a\u70b9\u3002\u5bf9\u4e8e\u7b80\u5355\u7684\u6570\u503c\u5904\u7406\uff0c\u53ef\u4ee5\u4f7f\u7528<code>round()<\/code>\u51fd\u6570\u548c\u5b57\u7b26\u4e32\u683c\u5f0f\u5316\uff1b\u5bf9\u4e8e\u9700\u8981\u9ad8\u7cbe\u5ea6\u8ba1\u7b97\u7684\u573a\u5408\uff0c\u63a8\u8350\u4f7f\u7528<code>decimal<\/code>\u6a21\u5757\uff1b\u5728\u6570\u636e\u5206\u6790\u548c\u79d1\u5b66\u8ba1\u7b97\u4e2d\uff0c<code>NumPy<\/code>\u548c<code>Pandas<\/code>\u5e93\u63d0\u4f9b\u4e86\u5f3a\u5927\u7684\u6570\u636e\u5904\u7406\u529f\u80fd\u3002\u6839\u636e\u5177\u4f53\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\uff0c\u53ef\u4ee5\u63d0\u9ad8\u4ee3\u7801\u7684\u53ef\u8bfb\u6027\u548c\u8fd0\u884c\u6548\u7387\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u8bbe\u7f6e\u6d6e\u70b9\u6570\u7684\u5c0f\u6570\u4f4d\u6570\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u5185\u7f6e\u7684<code>round()<\/code>\u51fd\u6570\u6765\u8bbe\u7f6e\u6d6e\u70b9\u6570\u7684\u5c0f\u6570\u4f4d\u6570\u3002\u8be5\u51fd\u6570\u63a5\u53d7\u4e24\u4e2a\u53c2\u6570\uff0c\u7b2c\u4e00\u4e2a\u662f\u9700\u8981\u56db\u820d\u4e94\u5165\u7684\u6d6e\u70b9\u6570\uff0c\u7b2c\u4e8c\u4e2a\u662f\u5e0c\u671b\u4fdd\u7559\u7684\u5c0f\u6570\u4f4d\u6570\u3002\u4f8b\u5982\uff0c<code>round(3.14159, 2)<\/code>\u4f1a\u8fd4\u56de<code>3.14<\/code>\u3002\u6b64\u5916\uff0c\u4f7f\u7528\u5b57\u7b26\u4e32\u683c\u5f0f\u5316\u65b9\u6cd5\uff08\u5982f-strings\u6216<code>format()<\/code>\uff09\u4e5f\u53ef\u4ee5\u6307\u5b9a\u5c0f\u6570\u4f4d\u6570\uff0c\u793a\u4f8b\uff1a<code>f&quot;{value:.2f}&quot;<\/code>\u6216<code>&quot;{:.2f}&quot;.format(value)<\/code>\u3002<\/p>\n<p><strong>Python\u4e2d\u5982\u4f55\u63a7\u5236\u8f93\u51fa\u5c0f\u6570\u7684\u683c\u5f0f\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u683c\u5f0f\u5316\u5b57\u7b26\u4e32\u6765\u63a7\u5236\u5c0f\u6570\u7684\u8f93\u51fa\u683c\u5f0f\u3002\u4f8b\u5982\uff0c\u4f7f\u7528f-string\u65f6\uff0c\u53ef\u4ee5\u901a\u8fc7<code>:.2f<\/code>\u6307\u5b9a\u4fdd\u7559\u4e24\u4f4d\u5c0f\u6570\u3002\u8fd9\u6837\u53ef\u4ee5\u786e\u4fdd\u8f93\u51fa\u7b26\u5408\u7279\u5b9a\u7684\u683c\u5f0f\u8981\u6c42\u3002\u6b64\u5916\uff0c<code>format()<\/code>\u51fd\u6570\u4e5f\u53ef\u4ee5\u5b9e\u73b0\u76f8\u540c\u7684\u6548\u679c\uff0c\u9002\u5408\u9700\u8981\u52a8\u6001\u683c\u5f0f\u5316\u7684\u573a\u666f\u3002<\/p>\n<p><strong>\u5728Python\u4e2d\u5982\u4f55\u5904\u7406\u6d6e\u70b9\u6570\u7cbe\u5ea6\u95ee\u9898\uff1f<\/strong><br \/>\u6d6e\u70b9\u6570\u5728Python\u4e2d\u53ef\u80fd\u4f1a\u51fa\u73b0\u7cbe\u5ea6\u95ee\u9898\uff0c\u5c24\u5176\u662f\u5728\u8fdb\u884c\u5c0f\u6570\u8fd0\u7b97\u65f6\u3002\u4e3a\u4e86\u907f\u514d\u8fd9\u79cd\u60c5\u51b5\uff0c\u53ef\u4ee5\u4f7f\u7528<code>decimal<\/code>\u6a21\u5757\uff0c\u8be5\u6a21\u5757\u63d0\u4f9b\u4e86\u66f4\u9ad8\u7cbe\u5ea6\u7684\u6570\u503c\u8ba1\u7b97\u80fd\u529b\u3002\u901a\u8fc7\u8bbe\u7f6e\u4e0a\u4e0b\u6587\u7cbe\u5ea6\uff0c\u53ef\u4ee5\u786e\u4fdd\u5728\u8fdb\u884c\u6570\u5b66\u8fd0\u7b97\u65f6\u51cf\u5c11\u8bef\u5dee\u3002\u4f8b\u5982\uff0c\u53ef\u4ee5\u521b\u5efa\u4e00\u4e2a<code>Decimal<\/code>\u5bf9\u8c61\uff0c\u5e76\u6307\u5b9a\u9700\u8981\u7684\u7cbe\u5ea6\uff0c\u4ece\u800c\u5f97\u5230\u66f4\u51c6\u786e\u7684\u7ed3\u679c\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\u51b3\u5b9a\u5c0f\u6570\u4f4d\u6570\u7684\u65b9\u6cd5\u6709\u5f88\u591a\uff0c\u5305\u62ec\u4f7f\u7528\u5185\u7f6e\u51fd\u6570round()\u3001\u5b57\u7b26\u4e32\u683c\u5f0f\u5316\u548cDecimal\u6a21\u5757\u7b49\u3002 [&hellip;]","protected":false},"author":3,"featured_media":1050324,"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\/1050315"}],"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=1050315"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1050315\/revisions"}],"predecessor-version":[{"id":1050325,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1050315\/revisions\/1050325"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1050324"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1050315"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1050315"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1050315"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}