{"id":1026912,"date":"2024-12-31T10:46:40","date_gmt":"2024-12-31T02:46:40","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1026912.html"},"modified":"2024-12-31T10:46:43","modified_gmt":"2024-12-31T02:46:43","slug":"python%e4%b8%ad%e5%a6%82%e4%bd%95%e6%98%be%e7%a4%ba%e5%b0%8f%e6%95%b0%e4%bd%8d%e6%95%b0","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1026912.html","title":{"rendered":"python\u4e2d\u5982\u4f55\u663e\u793a\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\/fb5ac659-f677-4d75-a57f-b6f2485f42f2.webp?x-oss-process=image\/auto-orient,1\/format,webp\" alt=\"python\u4e2d\u5982\u4f55\u663e\u793a\u5c0f\u6570\u4f4d\u6570\" \/><\/p>\n<p><p> \u5728Python\u4e2d\uff0c\u663e\u793a\u5c0f\u6570\u4f4d\u6570\u7684\u65b9\u6cd5\u6709\u5f88\u591a\u79cd\uff0c<strong>\u4e3b\u8981\u901a\u8fc7\u683c\u5f0f\u5316\u5b57\u7b26\u4e32\u3001\u4f7f\u7528\u5185\u7f6e\u51fd\u6570round()\u3001\u4ee5\u53ca\u4f7f\u7528\u5e93\u51fd\u6570\u5982Decimal\u6a21\u5757<\/strong>\u3002\u5176\u4e2d\uff0c\u683c\u5f0f\u5316\u5b57\u7b26\u4e32\u662f\u6700\u5e38\u7528\u7684\u65b9\u6cd5\u4e4b\u4e00\uff0c\u5b83\u63d0\u4f9b\u4e86\u7075\u6d3b\u4e14\u7b80\u6d01\u7684\u65b9\u5f0f\u6765\u63a7\u5236\u5c0f\u6570\u4f4d\u6570\u7684\u663e\u793a\u3002<strong>\u683c\u5f0f\u5316\u5b57\u7b26\u4e32\u3001round()\u51fd\u6570\u3001Decimal\u6a21\u5757<\/strong>\uff0c\u8fd9\u4e09\u79cd\u65b9\u6cd5\u90fd\u53ef\u4ee5\u7cbe\u786e\u63a7\u5236\u5c0f\u6570\u4f4d\u6570\u7684\u663e\u793a\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u683c\u5f0f\u5316\u5b57\u7b26\u4e32<\/h3>\n<\/p>\n<p><p>Python\u7684\u5b57\u7b26\u4e32\u683c\u5f0f\u5316\u529f\u80fd\u975e\u5e38\u5f3a\u5927\uff0c\u53ef\u4ee5\u901a\u8fc7\u4e0d\u540c\u7684\u683c\u5f0f\u5316\u65b9\u6cd5\u6765\u63a7\u5236\u5c0f\u6570\u7684\u663e\u793a\u3002\u6700\u5e38\u7528\u7684\u683c\u5f0f\u5316\u65b9\u6cd5\u6709\u4ee5\u4e0b\u51e0\u79cd\uff1a<\/p>\n<\/p>\n<p><h4>1.1\u3001\u4f7f\u7528\u65e7\u5f0f\u7684\u767e\u5206\u53f7\uff08%\uff09\u683c\u5f0f\u5316<\/h4>\n<\/p>\n<p><p>\u767e\u5206\u53f7\u683c\u5f0f\u5316\u662fPython\u4e2d\u8f83\u65e9\u7684\u4e00\u79cd\u683c\u5f0f\u5316\u65b9\u6cd5\uff0c\u5b83\u901a\u8fc7\u5728\u5b57\u7b26\u4e32\u4e2d\u4f7f\u7528<code>%<\/code>\u7b26\u53f7\u6765\u6307\u5b9a\u683c\u5f0f\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">value = 3.141592653589793<\/p>\n<p>formatted_value = &quot;%.2f&quot; % value<\/p>\n<p>print(formatted_value)  # \u8f93\u51fa: 3.14<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c<code>%.2f<\/code>\u8868\u793a\u5c06\u6570\u5b57\u683c\u5f0f\u5316\u4e3a\u5c0f\u6570\u70b9\u540e\u4fdd\u7559\u4e24\u4f4d\u5c0f\u6570\u7684\u6d6e\u70b9\u6570\u3002<\/p>\n<\/p>\n<p><h4>1.2\u3001\u4f7f\u7528str.format()\u65b9\u6cd5<\/h4>\n<\/p>\n<p><p><code>str.format()<\/code>\u65b9\u6cd5\u662fPython 2.7\u548c3.x\u4e2d\u5f15\u5165\u7684\u4e00\u79cd\u65b0\u7684\u5b57\u7b26\u4e32\u683c\u5f0f\u5316\u65b9\u6cd5\uff0c\u5b83\u63d0\u4f9b\u4e86\u66f4\u5f3a\u7684\u7075\u6d3b\u6027\u548c\u53ef\u8bfb\u6027\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">value = 3.141592653589793<\/p>\n<p>formatted_value = &quot;{:.2f}&quot;.format(value)<\/p>\n<p>print(formatted_value)  # \u8f93\u51fa: 3.14<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c<code>{:.2f}<\/code>\u5177\u6709\u4e0e<code>%.2f<\/code>\u7c7b\u4f3c\u7684\u529f\u80fd\uff0c\u8868\u793a\u5c06\u6570\u5b57\u683c\u5f0f\u5316\u4e3a\u5c0f\u6570\u70b9\u540e\u4fdd\u7559\u4e24\u4f4d\u5c0f\u6570\u7684\u6d6e\u70b9\u6570\u3002<\/p>\n<\/p>\n<p><h4>1.3\u3001\u4f7f\u7528f-strings\uff08\u683c\u5f0f\u5316\u5b57\u7b26\u4e32\u5b57\u9762\u91cf\uff09<\/h4>\n<\/p>\n<p><p>f-strings\u662fPython 3.6\u4e2d\u5f15\u5165\u7684\u4e00\u79cd\u683c\u5f0f\u5316\u5b57\u7b26\u4e32\u7684\u65b9\u5f0f\uff0c\u5b83\u901a\u8fc7\u5728\u5b57\u7b26\u4e32\u524d\u52a0\u4e0a<code>f<\/code>\u6216<code>F<\/code>\u6765\u5b9e\u73b0\u683c\u5f0f\u5316\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">value = 3.141592653589793<\/p>\n<p>formatted_value = f&quot;{value:.2f}&quot;<\/p>\n<p>print(formatted_value)  # \u8f93\u51fa: 3.14<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c<code>f&quot;{value:.2f}&quot;<\/code>\u8868\u793a\u5c06\u6570\u5b57\u683c\u5f0f\u5316\u4e3a\u5c0f\u6570\u70b9\u540e\u4fdd\u7559\u4e24\u4f4d\u5c0f\u6570\u7684\u6d6e\u70b9\u6570\u3002f-strings\u4e0d\u4ec5\u66f4\u7b80\u6d01\uff0c\u8fd8\u80fd\u5728\u5b57\u7b26\u4e32\u4e2d\u76f4\u63a5\u5d4c\u5165\u8868\u8fbe\u5f0f\uff0c\u975e\u5e38\u65b9\u4fbf\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u4f7f\u7528round()\u51fd\u6570<\/h3>\n<\/p>\n<p><p><code>round()<\/code>\u51fd\u6570\u662fPython\u7684\u5185\u7f6e\u51fd\u6570\uff0c\u53ef\u4ee5\u7528\u6765\u5bf9\u6d6e\u70b9\u6570\u8fdb\u884c\u56db\u820d\u4e94\u5165\uff0c\u5e76\u6307\u5b9a\u4fdd\u7559\u7684\u5c0f\u6570\u4f4d\u6570\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">value = 3.141592653589793<\/p>\n<p>rounded_value = round(value, 2)<\/p>\n<p>print(rounded_value)  # \u8f93\u51fa: 3.14<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c<code>round(value, 2)<\/code>\u8868\u793a\u5c06\u6570\u5b57<code>value<\/code>\u56db\u820d\u4e94\u5165\u5230\u5c0f\u6570\u70b9\u540e\u4e24\u4f4d\u3002\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c<code>round()<\/code>\u51fd\u6570\u8fd4\u56de\u7684\u7ed3\u679c\u4ecd\u7136\u662f\u4e00\u4e2a\u6d6e\u70b9\u6570\uff0c\u800c\u4e0d\u662f\u5b57\u7b26\u4e32\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001\u4f7f\u7528Decimal\u6a21\u5757<\/h3>\n<\/p>\n<p><p><code>decimal<\/code>\u6a21\u5757\u662fPython\u6807\u51c6\u5e93\u4e2d\u7684\u4e00\u4e2a\u6a21\u5757\uff0c\u7528\u4e8e\u63d0\u4f9b\u5341\u8fdb\u5236\u6d6e\u70b9\u6570\u7684\u7cbe\u786e\u8fd0\u7b97\u3002\u76f8\u6bd4\u4e8e\u5185\u7f6e\u7684\u6d6e\u70b9\u6570\u7c7b\u578b\uff0c<code>decimal<\/code>\u6a21\u5757\u80fd\u591f\u907f\u514d\u6d6e\u70b9\u6570\u7cbe\u5ea6\u95ee\u9898\uff0c\u5e76\u63d0\u4f9b\u66f4\u5f3a\u7684\u63a7\u5236\u80fd\u529b\u3002<\/p>\n<\/p>\n<p><h4>3.1\u3001\u521b\u5efaDecimal\u5bf9\u8c61<\/h4>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u9700\u8981\u4ece<code>decimal<\/code>\u6a21\u5757\u4e2d\u5bfc\u5165<code>Decimal<\/code>\u7c7b\uff0c\u7136\u540e\u521b\u5efa\u4e00\u4e2a<code>Decimal<\/code>\u5bf9\u8c61\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from decimal import Decimal<\/p>\n<p>value = Decimal(&quot;3.141592653589793&quot;)<\/p>\n<p>print(value)  # \u8f93\u51fa: 3.141592653589793<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u901a\u8fc7\u5c06\u5b57\u7b26\u4e32\u4f20\u9012\u7ed9<code>Decimal<\/code>\u6784\u9020\u51fd\u6570\uff0c\u53ef\u4ee5\u521b\u5efa\u4e00\u4e2a\u5177\u6709\u9ad8\u7cbe\u5ea6\u7684\u5c0f\u6570\u5bf9\u8c61\u3002<\/p>\n<\/p>\n<p><h4>3.2\u3001\u4f7f\u7528quantize()\u65b9\u6cd5<\/h4>\n<\/p>\n<p><p><code>Decimal<\/code>\u7c7b\u7684<code>quantize()<\/code>\u65b9\u6cd5\u53ef\u4ee5\u7528\u6765\u6307\u5b9a\u5c0f\u6570\u7684\u7cbe\u5ea6\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from decimal import Decimal, ROUND_HALF_UP<\/p>\n<p>value = Decimal(&quot;3.141592653589793&quot;)<\/p>\n<p>quantized_value = value.quantize(Decimal(&quot;1.00&quot;), rounding=ROUND_HALF_UP)<\/p>\n<p>print(quantized_value)  # \u8f93\u51fa: 3.14<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c<code>Decimal(&quot;1.00&quot;)<\/code>\u8868\u793a\u5c06\u6570\u5b57\u683c\u5f0f\u5316\u4e3a\u5c0f\u6570\u70b9\u540e\u4fdd\u7559\u4e24\u4f4d\u5c0f\u6570\u7684\u6d6e\u70b9\u6570\uff0c<code>ROUND_HALF_UP<\/code>\u8868\u793a\u91c7\u7528\u56db\u820d\u4e94\u5165\u7684\u65b9\u5f0f\u3002<\/p>\n<\/p>\n<p><h3>\u56db\u3001\u4f7f\u7528\u7b2c\u4e09\u65b9\u5e93<\/h3>\n<\/p>\n<p><p>\u9664\u4e86Python\u6807\u51c6\u5e93\u4e2d\u7684\u529f\u80fd\u5916\uff0c\u8fd8\u53ef\u4ee5\u501f\u52a9\u4e00\u4e9b\u7b2c\u4e09\u65b9\u5e93\u6765\u63a7\u5236\u5c0f\u6570\u4f4d\u6570\u7684\u663e\u793a\u3002\u4f8b\u5982\uff0c<code>numpy<\/code>\u5e93\u4e2d\u7684<code>around()<\/code>\u51fd\u6570\u53ef\u4ee5\u5b9e\u73b0\u7c7b\u4f3c\u4e8e<code>round()<\/code>\u7684\u529f\u80fd\u3002<\/p>\n<\/p>\n<p><h4>4.1\u3001\u4f7f\u7528numpy\u5e93\u7684around()\u51fd\u6570<\/h4>\n<\/p>\n<p><p><code>numpy<\/code>\u662f\u4e00\u4e2a\u5e38\u7528\u7684\u79d1\u5b66\u8ba1\u7b97\u5e93\uff0c\u5176\u4e2d\u7684<code>around()<\/code>\u51fd\u6570\u53ef\u4ee5\u7528\u6765\u5bf9\u6570\u7ec4\u6216\u6807\u91cf\u8fdb\u884c\u56db\u820d\u4e94\u5165\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import numpy as np<\/p>\n<p>value = 3.141592653589793<\/p>\n<p>rounded_value = np.around(value, 2)<\/p>\n<p>print(rounded_value)  # \u8f93\u51fa: 3.14<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c<code>np.around(value, 2)<\/code>\u8868\u793a\u5c06\u6570\u5b57<code>value<\/code>\u56db\u820d\u4e94\u5165\u5230\u5c0f\u6570\u70b9\u540e\u4e24\u4f4d\u3002<\/p>\n<\/p>\n<p><h3>\u4e94\u3001\u7ed3\u8bba<\/h3>\n<\/p>\n<p><p>\u901a\u8fc7\u4ee5\u4e0a\u51e0\u79cd\u65b9\u6cd5\uff0c\u53ef\u4ee5\u7075\u6d3b\u5730\u63a7\u5236\u5c0f\u6570\u4f4d\u6570\u7684\u663e\u793a\u3002<strong>\u683c\u5f0f\u5316\u5b57\u7b26\u4e32\u3001round()\u51fd\u6570\u3001Decimal\u6a21\u5757<\/strong>\u662f\u4e09\u79cd\u4e3b\u8981\u7684\u65b9\u6cd5\uff0c\u5404\u6709\u4f18\u7f3a\u70b9\u3002<strong>\u683c\u5f0f\u5316\u5b57\u7b26\u4e32<\/strong>\u63d0\u4f9b\u4e86\u7b80\u6d01\u4e14\u7075\u6d3b\u7684\u65b9\u5f0f\uff0c<strong>round()\u51fd\u6570<\/strong>\u9002\u5408\u7b80\u5355\u7684\u56db\u820d\u4e94\u5165\u64cd\u4f5c\uff0c\u800c<strong>Decimal\u6a21\u5757<\/strong>\u5219\u9002\u5408\u9700\u8981\u9ad8\u7cbe\u5ea6\u63a7\u5236\u7684\u573a\u666f\u3002\u6839\u636e\u5b9e\u9645\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\uff0c\u53ef\u4ee5\u5e2e\u52a9\u6211\u4eec\u66f4\u597d\u5730\u63a7\u5236\u5c0f\u6570\u7684\u663e\u793a\uff0c\u5e76\u786e\u4fdd\u8ba1\u7b97\u7ed3\u679c\u7684\u7cbe\u5ea6\u548c\u53ef\u8bfb\u6027\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\u683c\u5f0f\u5316\u65b9\u6cd5\u6765\u8bbe\u7f6e\u6d6e\u70b9\u6570\u7684\u5c0f\u6570\u4f4d\u6570\u3002\u6700\u5e38\u7528\u7684\u65b9\u6cd5\u5305\u62ec\u4f7f\u7528\u5b57\u7b26\u4e32\u683c\u5f0f\u5316\u548c<code>round()<\/code>\u51fd\u6570\u3002\u5b57\u7b26\u4e32\u683c\u5f0f\u5316\u53ef\u4ee5\u901a\u8fc7<code>format()<\/code>\u51fd\u6570\u6216f-string\uff08Python 3.6\u53ca\u4ee5\u4e0a\u7248\u672c\uff09\u6765\u5b9e\u73b0\u3002\u4f8b\u5982\uff0c<code>&quot;{:.2f}&quot;.format(3.14159)<\/code>\u6216<code>f&quot;{3.14159:.2f}&quot;<\/code>\u90fd\u53ef\u4ee5\u5c06\u6570\u5b57\u683c\u5f0f\u5316\u4e3a\u4e24\u4f4d\u5c0f\u6570\u3002<code>round()<\/code>\u51fd\u6570\u5219\u76f4\u63a5\u8fd4\u56de\u6307\u5b9a\u5c0f\u6570\u4f4d\u6570\u7684\u6d6e\u70b9\u6570\uff0c\u5982<code>round(3.14159, 2)<\/code>\u3002<\/p>\n<p><strong>Python\u4e2d\u662f\u5426\u6709\u5185\u7f6e\u51fd\u6570\u53ef\u4ee5\u9650\u5236\u5c0f\u6570\u4f4d\u6570\uff1f<\/strong><br \/>\u662f\u7684\uff0cPython\u63d0\u4f9b\u4e86<code>round()<\/code>\u51fd\u6570\uff0c\u53ef\u4ee5\u7528\u6765\u9650\u5236\u5c0f\u6570\u4f4d\u6570\u3002\u8fd9\u4e2a\u51fd\u6570\u63a5\u53d7\u4e24\u4e2a\u53c2\u6570\uff0c\u7b2c\u4e00\u4e2a\u662f\u8981\u5904\u7406\u7684\u6570\u5b57\uff0c\u7b2c\u4e8c\u4e2a\u662f\u5e0c\u671b\u4fdd\u7559\u7684\u5c0f\u6570\u4f4d\u6570\u3002\u4f7f\u7528<code>round(5.6789, 2)<\/code>\u4f1a\u8fd4\u56de<code>5.68<\/code>\u3002\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c<code>round()<\/code>\u7684\u8fd4\u56de\u503c\u662f\u6d6e\u70b9\u6570\uff0c\u56e0\u6b64\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\u53ef\u80fd\u4f1a\u51fa\u73b0\u6d6e\u70b9\u6570\u8868\u793a\u7684\u7cbe\u5ea6\u95ee\u9898\u3002<\/p>\n<p><strong>\u5728Python\u4e2d\u5982\u4f55\u4ee5\u7279\u5b9a\u683c\u5f0f\u8f93\u51fa\u6d6e\u70b9\u6570\uff1f<\/strong><br \/>\u5982\u679c\u9700\u8981\u4ee5\u7279\u5b9a\u683c\u5f0f\u8f93\u51fa\u6d6e\u70b9\u6570\uff0c\u53ef\u4ee5\u4f7f\u7528<code>format()<\/code>\u65b9\u6cd5\u6216f-string\u3002\u8fd9\u4e9b\u65b9\u6cd5\u5141\u8bb8\u5728\u8f93\u51fa\u65f6\u81ea\u5b9a\u4e49\u5c0f\u6570\u4f4d\u6570\u548c\u6570\u503c\u7684\u6574\u4f53\u683c\u5f0f\u3002\u4f8b\u5982\uff0c\u4f7f\u7528<code>format()<\/code>\u65b9\u6cd5\u53ef\u4ee5\u5199\u6210<code>&quot;{:.3f}&quot;.format(123.45678)<\/code>\uff0c\u8fd9\u5c06\u8f93\u51fa<code>123.457<\/code>\u3002f-string\u5219\u53ef\u4ee5\u5199\u4f5c<code>f&quot;{123.45678:.3f}&quot;<\/code>\uff0c\u540c\u6837\u53ef\u4ee5\u8fbe\u5230\u76f8\u540c\u6548\u679c\u3002\u8fd9\u6837\u53ef\u4ee5\u8f7b\u677e\u5b9e\u73b0\u6240\u9700\u7684\u6570\u503c\u8868\u793a\u65b9\u5f0f\uff0c\u63d0\u5347\u8f93\u51fa\u7684\u53ef\u8bfb\u6027\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\uff0c\u663e\u793a\u5c0f\u6570\u4f4d\u6570\u7684\u65b9\u6cd5\u6709\u5f88\u591a\u79cd\uff0c\u4e3b\u8981\u901a\u8fc7\u683c\u5f0f\u5316\u5b57\u7b26\u4e32\u3001\u4f7f\u7528\u5185\u7f6e\u51fd\u6570round()\u3001\u4ee5\u53ca\u4f7f\u7528\u5e93\u51fd\u6570 [&hellip;]","protected":false},"author":3,"featured_media":1026921,"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\/1026912"}],"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=1026912"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1026912\/revisions"}],"predecessor-version":[{"id":1026924,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1026912\/revisions\/1026924"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1026921"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1026912"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1026912"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1026912"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}