{"id":1085604,"date":"2025-01-08T13:17:36","date_gmt":"2025-01-08T05:17:36","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1085604.html"},"modified":"2025-01-08T13:17:38","modified_gmt":"2025-01-08T05:17:38","slug":"python%e5%a6%82%e4%bd%95%e8%a7%84%e5%ae%9a%e5%b0%8f%e6%95%b0%e7%82%b9%e5%90%8e%e5%87%a0%e4%bd%8d-2","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1085604.html","title":{"rendered":"python\u5982\u4f55\u89c4\u5b9a\u5c0f\u6570\u70b9\u540e\u51e0\u4f4d"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24195422\/96d3a582-a8d5-4494-80e0-55a106b50110.webp\" alt=\"python\u5982\u4f55\u89c4\u5b9a\u5c0f\u6570\u70b9\u540e\u51e0\u4f4d\" \/><\/p>\n<p><p> <strong>Python\u89c4\u5b9a\u5c0f\u6570\u70b9\u540e\u51e0\u4f4d\u7684\u65b9\u6cd5\u5305\u62ec\uff1a\u4f7f\u7528\u683c\u5f0f\u5316\u5b57\u7b26\u4e32\u3001\u4f7f\u7528round\u51fd\u6570\u3001\u4f7f\u7528decimal\u6a21\u5757\u3002<\/strong> \u5176\u4e2d\uff0c\u4f7f\u7528\u683c\u5f0f\u5316\u5b57\u7b26\u4e32\u662f\u4e00\u79cd\u7b80\u4fbf\u4e14\u7075\u6d3b\u7684\u65b9\u6cd5\uff0c\u53ef\u4ee5\u5728\u6253\u5370\u8f93\u51fa\u65f6\u76f4\u63a5\u63a7\u5236\u5c0f\u6570\u70b9\u540e\u4f4d\u6570\u3002<\/p>\n<\/p>\n<p><p>\u4f8b\u5982\uff0c\u4f7f\u7528\u683c\u5f0f\u5316\u5b57\u7b26\u4e32\u7684\u65b9\u6cd5\u5982\u4e0b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">number = 3.14159<\/p>\n<p>formatted_number = &quot;{:.2f}&quot;.format(number)<\/p>\n<p>print(formatted_number)  # \u8f93\u51fa: 3.14<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4e0b\u9762\u5c06\u8be6\u7ec6\u4ecb\u7ecdPython\u4e2d\u51e0\u79cd\u5e38\u89c1\u7684\u65b9\u6cd5\u6765\u89c4\u5b9a\u5c0f\u6570\u70b9\u540e\u51e0\u4f4d\u3002<\/p>\n<\/p>\n<p><h2>\u4e00\u3001\u683c\u5f0f\u5316\u5b57\u7b26\u4e32<\/h2>\n<\/p>\n<p><p>Python\u7684\u5b57\u7b26\u4e32\u683c\u5f0f\u5316\u529f\u80fd\u975e\u5e38\u5f3a\u5927\uff0c\u7279\u522b\u662f\u5728\u89c4\u5b9a\u5c0f\u6570\u70b9\u540e\u51e0\u4f4d\u65f6\u975e\u5e38\u7b80\u4fbf\u3002\u5e38\u89c1\u7684\u5b57\u7b26\u4e32\u683c\u5f0f\u5316\u65b9\u6cd5\u6709\u4e09\u79cd\uff1a\u767e\u5206\u53f7\u683c\u5f0f\u5316\u3001<code>str.format()<\/code>\u65b9\u6cd5\u548cf-string\uff08\u683c\u5f0f\u5316\u5b57\u7b26\u4e32\u5b57\u9762\u91cf\uff09\u3002<\/p>\n<\/p>\n<p><h3>1\u3001\u767e\u5206\u53f7\u683c\u5f0f\u5316<\/h3>\n<\/p>\n<p><p>\u8fd9\u662fPython\u4e2d\u4e00\u79cd\u8f83\u65e9\u7684\u5b57\u7b26\u4e32\u683c\u5f0f\u5316\u65b9\u6cd5\u3002\u793a\u4f8b\u5982\u4e0b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">number = 3.14159<\/p>\n<p>formatted_number = &quot;%.2f&quot; % number<\/p>\n<p>print(formatted_number)  # \u8f93\u51fa: 3.14<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c<code>%.2f<\/code>\u8868\u793a\u4fdd\u7559\u4e24\u4f4d\u5c0f\u6570\u7684\u6d6e\u70b9\u6570\u3002<\/p>\n<\/p>\n<p><h3>2\u3001str.format()\u65b9\u6cd5<\/h3>\n<\/p>\n<p><p>\u8fd9\u662fPython 2.7\u53ca\u4e4b\u540e\u7248\u672c\u63a8\u8350\u7684\u5b57\u7b26\u4e32\u683c\u5f0f\u5316\u65b9\u6cd5\uff0c\u529f\u80fd\u66f4\u5f3a\u5927\u3002\u793a\u4f8b\u5982\u4e0b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">number = 3.14159<\/p>\n<p>formatted_number = &quot;{:.2f}&quot;.format(number)<\/p>\n<p>print(formatted_number)  # \u8f93\u51fa: 3.14<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u91cc\u7684<code>{:.2f}<\/code>\u8868\u793a\u4fdd\u7559\u4e24\u4f4d\u5c0f\u6570\u7684\u6d6e\u70b9\u6570\u3002<\/p>\n<\/p>\n<p><h3>3\u3001f-string\uff08\u683c\u5f0f\u5316\u5b57\u7b26\u4e32\u5b57\u9762\u91cf\uff09<\/h3>\n<\/p>\n<p><p>\u8fd9\u662fPython 3.6\u5f15\u5165\u7684\u4e00\u79cd\u5b57\u7b26\u4e32\u683c\u5f0f\u5316\u65b9\u5f0f\uff0c\u8bed\u6cd5\u66f4\u52a0\u7b80\u6d01\u76f4\u89c2\u3002\u793a\u4f8b\u5982\u4e0b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">number = 3.14159<\/p>\n<p>formatted_number = f&quot;{number:.2f}&quot;<\/p>\n<p>print(formatted_number)  # \u8f93\u51fa: 3.14<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>f-string\u7684\u8bed\u6cd5\u662f\u5c06\u53d8\u91cf\u653e\u5728\u5927\u62ec\u53f7<code>{}<\/code>\u4e2d\uff0c\u5e76\u5728\u53d8\u91cf\u540d\u540e\u9762\u52a0\u4e0a\u683c\u5f0f\u8bf4\u660e\u3002<\/p>\n<\/p>\n<p><h2>\u4e8c\u3001\u4f7f\u7528round\u51fd\u6570<\/h2>\n<\/p>\n<p><p><code>round()<\/code>\u51fd\u6570\u53ef\u4ee5\u5bf9\u6d6e\u70b9\u6570\u8fdb\u884c\u56db\u820d\u4e94\u5165\uff0c\u5e76\u8fd4\u56de\u6307\u5b9a\u5c0f\u6570\u4f4d\u6570\u7684\u6570\u503c\u3002\u793a\u4f8b\u5982\u4e0b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">number = 3.14159<\/p>\n<p>rounded_number = round(number, 2)<\/p>\n<p>print(rounded_number)  # \u8f93\u51fa: 3.14<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c<code>round(number, 2)<\/code>\u8868\u793a\u5c06<code>number<\/code>\u56db\u820d\u4e94\u5165\u5230\u5c0f\u6570\u70b9\u540e\u4e24\u4f4d\u3002<\/p>\n<\/p>\n<p><p>\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c<code>round()<\/code>\u51fd\u6570\u8fd4\u56de\u7684\u662f\u4e00\u4e2a\u6d6e\u70b9\u6570\uff0c\u800c\u4e0d\u662f\u5b57\u7b26\u4e32\u3002\u5982\u679c\u9700\u8981\u5b57\u7b26\u4e32\u683c\u5f0f\uff0c\u53ef\u4ee5\u7ed3\u5408\u524d\u9762\u4ecb\u7ecd\u7684\u5b57\u7b26\u4e32\u683c\u5f0f\u5316\u65b9\u6cd5\u4f7f\u7528\u3002<\/p>\n<\/p>\n<p><h2>\u4e09\u3001\u4f7f\u7528decimal\u6a21\u5757<\/h2>\n<\/p>\n<p><p><code>decimal<\/code>\u6a21\u5757\u63d0\u4f9b\u4e86\u66f4\u7cbe\u786e\u7684\u6d6e\u70b9\u6570\u8fd0\u7b97\uff0c\u9002\u7528\u4e8e\u5bf9\u7cbe\u5ea6\u8981\u6c42\u8f83\u9ad8\u7684\u573a\u666f\u3002\u793a\u4f8b\u5982\u4e0b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from decimal import Decimal, getcontext<\/p>\n<h2><strong>\u8bbe\u7f6e\u5168\u5c40\u7cbe\u5ea6<\/strong><\/h2>\n<p>getcontext().prec = 6<\/p>\n<p>number = Decimal(&#39;3.14159&#39;)<\/p>\n<p>formatted_number = round(number, 2)<\/p>\n<p>print(formatted_number)  # \u8f93\u51fa: 3.14<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c<code>getcontext().prec<\/code>\u8bbe\u7f6e\u4e86\u5168\u5c40\u7cbe\u5ea6\uff0c<code>Decimal<\/code>\u7c7b\u578b\u53ef\u4ee5\u786e\u4fdd\u66f4\u9ad8\u7cbe\u5ea6\u7684\u8ba1\u7b97\u3002<\/p>\n<\/p>\n<p><h2>\u56db\u3001\u5e94\u7528\u573a\u666f<\/h2>\n<\/p>\n<p><h3>1\u3001\u91d1\u878d\u8ba1\u7b97<\/h3>\n<\/p>\n<p><p>\u5728\u91d1\u878d\u8ba1\u7b97\u4e2d\uff0c\u901a\u5e38\u9700\u8981\u5bf9\u91d1\u989d\u8fdb\u884c\u7cbe\u786e\u8ba1\u7b97\u548c\u663e\u793a\u3002\u4f7f\u7528<code>decimal<\/code>\u6a21\u5757\u53ef\u4ee5\u786e\u4fdd\u8ba1\u7b97\u7684\u7cbe\u5ea6\uff0c\u907f\u514d\u6d6e\u70b9\u6570\u8fd0\u7b97\u4e2d\u7684\u8bef\u5dee\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from decimal import Decimal<\/p>\n<p>price = Decimal(&#39;19.99&#39;)<\/p>\n<p>tax_rate = Decimal(&#39;0.07&#39;)<\/p>\n<p>total = price * (1 + tax_rate)<\/p>\n<p>formatted_total = f&quot;{total:.2f}&quot;<\/p>\n<p>print(formatted_total)  # \u8f93\u51fa: 21.39<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>2\u3001\u6570\u636e\u5206\u6790<\/h3>\n<\/p>\n<p><p>\u5728\u6570\u636e\u5206\u6790\u4e2d\uff0c\u901a\u5e38\u9700\u8981\u5bf9\u6570\u636e\u8fdb\u884c\u5904\u7406\u548c\u5c55\u793a\uff0c\u89c4\u5b9a\u5c0f\u6570\u70b9\u540e\u51e0\u4f4d\u53ef\u4ee5\u4f7f\u6570\u636e\u66f4\u52a0\u7f8e\u89c2\u548c\u6613\u8bfb\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:.2f}&quot; for num in data]<\/p>\n<p>print(formatted_data)  # \u8f93\u51fa: [&#39;3.14&#39;, &#39;2.72&#39;, &#39;1.62&#39;]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>3\u3001\u79d1\u5b66\u8ba1\u7b97<\/h3>\n<\/p>\n<p><p>\u5728\u79d1\u5b66\u8ba1\u7b97\u4e2d\uff0c\u901a\u5e38\u9700\u8981\u5bf9\u7ed3\u679c\u8fdb\u884c\u5c55\u793a\uff0c\u89c4\u5b9a\u5c0f\u6570\u70b9\u540e\u51e0\u4f4d\u53ef\u4ee5\u4f7f\u7ed3\u679c\u66f4\u52a0\u6e05\u6670\u548c\u51c6\u786e\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import math<\/p>\n<p>result = math.sqrt(2)<\/p>\n<p>formatted_result = f&quot;{result:.4f}&quot;<\/p>\n<p>print(formatted_result)  # \u8f93\u51fa: 1.4142<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h2>\u4e94\u3001\u6ce8\u610f\u4e8b\u9879<\/h2>\n<\/p>\n<p><h3>1\u3001\u6d6e\u70b9\u6570\u7cbe\u5ea6\u95ee\u9898<\/h3>\n<\/p>\n<p><p>\u6d6e\u70b9\u6570\u5728\u8ba1\u7b97\u673a\u4e2d\u662f\u4ee5\u4e8c\u8fdb\u5236\u5b58\u50a8\u7684\uff0c\u56e0\u6b64\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\u4f1a\u51fa\u73b0\u7cbe\u5ea6\u95ee\u9898\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">number = 2.675<\/p>\n<p>formatted_number = &quot;{:.2f}&quot;.format(number)<\/p>\n<p>print(formatted_number)  # \u8f93\u51fa: 2.67<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u539f\u672c\u9884\u671f\u8f93\u51fa<code>2.68<\/code>\uff0c\u4f46\u5b9e\u9645\u8f93\u51fa\u4e3a<code>2.67<\/code>\u3002\u8fd9\u662f\u56e0\u4e3a\u6d6e\u70b9\u6570\u7684\u7cbe\u5ea6\u95ee\u9898\u5bfc\u81f4\u7684\u3002\u89e3\u51b3\u65b9\u6cd5\u662f\u4f7f\u7528<code>decimal<\/code>\u6a21\u5757\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from decimal import Decimal<\/p>\n<p>number = Decimal(&#39;2.675&#39;)<\/p>\n<p>formatted_number = f&quot;{number:.2f}&quot;<\/p>\n<p>print(formatted_number)  # \u8f93\u51fa: 2.68<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>2\u3001\u5b57\u7b26\u4e32\u683c\u5f0f\u5316\u7684\u9009\u62e9<\/h3>\n<\/p>\n<p><p>\u5728\u9009\u62e9\u5b57\u7b26\u4e32\u683c\u5f0f\u5316\u65b9\u6cd5\u65f6\uff0c\u5efa\u8bae\u4f18\u5148\u4f7f\u7528f-string\uff08\u683c\u5f0f\u5316\u5b57\u7b26\u4e32\u5b57\u9762\u91cf\uff09\uff0c\u56e0\u4e3a\u5b83\u8bed\u6cd5\u7b80\u6d01\u3001\u53ef\u8bfb\u6027\u9ad8\uff0c\u5e76\u4e14\u662fPython 3.6\u53ca\u4e4b\u540e\u7248\u672c\u63a8\u8350\u7684\u683c\u5f0f\u5316\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<p><p>\u603b\u7ed3\u6765\u8bf4\uff0cPython\u4e2d\u89c4\u5b9a\u5c0f\u6570\u70b9\u540e\u51e0\u4f4d\u7684\u65b9\u6cd5\u591a\u79cd\u591a\u6837\uff0c\u53ef\u4ee5\u6839\u636e\u5177\u4f53\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\u3002\u65e0\u8bba\u662f\u4f7f\u7528\u683c\u5f0f\u5316\u5b57\u7b26\u4e32\u3001<code>round()<\/code>\u51fd\u6570\u8fd8\u662f<code>decimal<\/code>\u6a21\u5757\uff0c\u90fd\u53ef\u4ee5\u65b9\u4fbf\u5730\u5b9e\u73b0\u5bf9\u5c0f\u6570\u70b9\u540e\u4f4d\u6570\u7684\u63a7\u5236\u3002\u5e0c\u671b\u901a\u8fc7\u672c\u6587\u7684\u4ecb\u7ecd\uff0c\u80fd\u5e2e\u52a9\u4f60\u66f4\u597d\u5730\u638c\u63e1\u8fd9\u4e9b\u6280\u5de7\uff0c\u5e76\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\u5f97\u5fc3\u5e94\u624b\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\u70b9\u4f4d\u6570\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u5185\u7f6e\u7684<code>round()<\/code>\u51fd\u6570\u6765\u8bbe\u7f6e\u5c0f\u6570\u70b9\u540e\u7279\u5b9a\u7684\u4f4d\u6570\u3002\u4f8b\u5982\uff0c<code>round(3.14159, 2)<\/code>\u5c06\u8fd4\u56de3.14\uff0c\u8868\u793a\u53ea\u4fdd\u7559\u4e24\u4f4d\u5c0f\u6570\u3002\u6b64\u5916\uff0c\u4f7f\u7528\u683c\u5f0f\u5316\u5b57\u7b26\u4e32\uff08\u5982<code>f-strings<\/code>\u6216<code>format()<\/code>\u65b9\u6cd5\uff09\u4e5f\u53ef\u4ee5\u65b9\u4fbf\u5730\u63a7\u5236\u663e\u793a\u7684\u5c0f\u6570\u4f4d\u6570\u3002<\/p>\n<p><strong>\u4f7f\u7528\u5b57\u7b26\u4e32\u683c\u5f0f\u5316\u6765\u63a7\u5236\u5c0f\u6570\u70b9\u540e\u4f4d\u6570\u7684\u6700\u4f73\u5b9e\u8df5\u662f\u4ec0\u4e48\uff1f<\/strong><br \/>\u4f7f\u7528\u5b57\u7b26\u4e32\u683c\u5f0f\u5316\u662f\u4e00\u79cd\u5e38\u89c1\u7684\u65b9\u6cd5\u6765\u63a7\u5236\u6d6e\u70b9\u6570\u7684\u663e\u793a\u683c\u5f0f\u3002\u4f8b\u5982\uff0c<code>f&quot;{value:.2f}&quot;<\/code>\u4f1a\u5c06<code>value<\/code>\u683c\u5f0f\u5316\u4e3a\u4fdd\u7559\u4e24\u4f4d\u5c0f\u6570\u7684\u5b57\u7b26\u4e32\u3002\u8fd9\u79cd\u65b9\u5f0f\u4e0d\u4ec5\u63d0\u9ad8\u4e86\u4ee3\u7801\u7684\u53ef\u8bfb\u6027\uff0c\u4e5f\u4f7f\u5f97\u8f93\u51fa\u7ed3\u679c\u66f4\u52a0\u7f8e\u89c2\u3002\u901a\u5e38\u5efa\u8bae\u5728\u8f93\u51fa\u7ed3\u679c\u65f6\u4f7f\u7528\u8fd9\u79cd\u683c\u5f0f\uff0c\u800c\u5728\u8ba1\u7b97\u65f6\u4fdd\u6301\u539f\u59cb\u6570\u636e\u7684\u7cbe\u5ea6\u3002<\/p>\n<p><strong>Python\u4e2d\u6709\u6ca1\u6709\u5176\u4ed6\u65b9\u6cd5\u53ef\u4ee5\u9650\u5236\u6d6e\u70b9\u6570\u7684\u5c0f\u6570\u4f4d\u6570\uff1f<\/strong><br \/>\u9664\u4e86\u4f7f\u7528<code>round()<\/code>\u548c\u5b57\u7b26\u4e32\u683c\u5f0f\u5316\uff0cPython\u8fd8\u63d0\u4f9b\u4e86<code>Decimal<\/code>\u6a21\u5757\uff0c\u53ef\u4ee5\u901a\u8fc7\u5b83\u6765\u7cbe\u786e\u63a7\u5236\u6d6e\u70b9\u6570\u7684\u5c0f\u6570\u4f4d\u6570\u3002\u4f7f\u7528<code>Decimal<\/code>\u65f6\uff0c\u53ef\u4ee5\u521b\u5efa\u4e00\u4e2aDecimal\u5bf9\u8c61\u5e76\u6307\u5b9a\u5c0f\u6570\u4f4d\u6570\uff0c\u4f8b\u5982<code>from decimal import Decimal, getcontext; getcontext().prec = 3<\/code>\u3002\u8fd9\u79cd\u65b9\u6cd5\u7279\u522b\u9002\u5408\u9700\u8981\u9ad8\u7cbe\u5ea6\u8ba1\u7b97\u7684\u573a\u666f\uff0c\u5982\u91d1\u878d\u5e94\u7528\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Python\u89c4\u5b9a\u5c0f\u6570\u70b9\u540e\u51e0\u4f4d\u7684\u65b9\u6cd5\u5305\u62ec\uff1a\u4f7f\u7528\u683c\u5f0f\u5316\u5b57\u7b26\u4e32\u3001\u4f7f\u7528round\u51fd\u6570\u3001\u4f7f\u7528decimal\u6a21\u5757\u3002 \u5176\u4e2d\uff0c [&hellip;]","protected":false},"author":3,"featured_media":1085609,"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\/1085604"}],"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=1085604"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1085604\/revisions"}],"predecessor-version":[{"id":1085610,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1085604\/revisions\/1085610"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1085609"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1085604"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1085604"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1085604"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}