{"id":1142928,"date":"2025-01-08T22:45:08","date_gmt":"2025-01-08T14:45:08","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1142928.html"},"modified":"2025-01-08T22:45:12","modified_gmt":"2025-01-08T14:45:12","slug":"python%e4%b8%ad%e5%a6%82%e4%bd%95%e8%be%93%e5%85%a5%e5%b0%8f%e6%95%b0%e7%82%b9%e5%90%8e%e4%b8%a4%e4%bd%8d%e5%b0%8f%e6%95%b0","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1142928.html","title":{"rendered":"python\u4e2d\u5982\u4f55\u8f93\u5165\u5c0f\u6570\u70b9\u540e\u4e24\u4f4d\u5c0f\u6570"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24180808\/e030e43c-92a0-465d-9c97-f07466bf2a5b.webp\" alt=\"python\u4e2d\u5982\u4f55\u8f93\u5165\u5c0f\u6570\u70b9\u540e\u4e24\u4f4d\u5c0f\u6570\" \/><\/p>\n<p><p> <strong>\u5728Python\u4e2d\u8f93\u5165\u5c0f\u6570\u70b9\u540e\u4e24\u4f4d\u7684\u5c0f\u6570\uff0c\u53ef\u4ee5\u901a\u8fc7\u591a\u79cd\u65b9\u6cd5\u5b9e\u73b0\uff0c\u4e3b\u8981\u5305\u62ec\uff1a\u4f7f\u7528\u5b57\u7b26\u4e32\u683c\u5f0f\u5316\u65b9\u6cd5\u3001\u5229\u7528 <code>round()<\/code> \u51fd\u6570\u3001\u4ee5\u53ca\u501f\u52a9\u7b2c\u4e09\u65b9\u5e93\u5982 <code>decimal<\/code> \u7b49\u3002<\/strong> \u5176\u4e2d\uff0c\u4f7f\u7528\u5b57\u7b26\u4e32\u683c\u5f0f\u5316\u65b9\u6cd5\u662f\u4e00\u79cd\u7b80\u5355\u4e14\u5e38\u89c1\u7684\u65b9\u5f0f\u3002\u901a\u8fc7\u8fd9\u79cd\u65b9\u5f0f\uff0c\u53ef\u4ee5\u786e\u4fdd\u8f93\u5165\u7684\u5c0f\u6570\u7cbe\u5ea6\u8fbe\u5230\u4e24\u4f4d\uff0c\u5e76\u4e14\u683c\u5f0f\u7f8e\u89c2\u3002<\/p>\n<\/p>\n<p><p>\u4ee5\u4e0b\u662f\u5177\u4f53\u7684\u5b9e\u73b0\u65b9\u5f0f\u53ca\u8be6\u7ec6\u63cf\u8ff0\uff1a<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u4f7f\u7528\u5b57\u7b26\u4e32\u683c\u5f0f\u5316\u65b9\u6cd5<\/h3>\n<\/p>\n<p><p>\u5b57\u7b26\u4e32\u683c\u5f0f\u5316\u662f\u5904\u7406\u5c0f\u6570\u70b9\u540e\u4e24\u4f4d\u7684\u5e38\u7528\u65b9\u6cd5\u4e4b\u4e00\u3002Python \u63d0\u4f9b\u4e86\u591a\u79cd\u5b57\u7b26\u4e32\u683c\u5f0f\u5316\u65b9\u5f0f\uff0c\u5176\u4e2d\u5305\u62ec\u65e7\u5f0f\u7684 <code>%<\/code> \u8fd0\u7b97\u7b26\u3001\u65b0\u5f0f\u7684 <code>str.format()<\/code> \u65b9\u6cd5\u4ee5\u53ca\u6700\u65b0\u7684 f-string\uff08\u683c\u5f0f\u5316\u5b57\u7b26\u4e32\u5b57\u9762\u503c\uff09\u3002<\/p>\n<\/p>\n<p><h4>1.1 <code>%<\/code> \u8fd0\u7b97\u7b26<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\">value = 12.34567<\/p>\n<p>formatted_value = &quot;%.2f&quot; % value<\/p>\n<p>print(formatted_value)  # \u8f93\u51fa: 12.35<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>1.2 <code>str.format()<\/code> \u65b9\u6cd5<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\">value = 12.34567<\/p>\n<p>formatted_value = &quot;{:.2f}&quot;.format(value)<\/p>\n<p>print(formatted_value)  # \u8f93\u51fa: 12.35<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>1.3 f-string\uff08\u683c\u5f0f\u5316\u5b57\u7b26\u4e32\u5b57\u9762\u503c\uff09<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\">value = 12.34567<\/p>\n<p>formatted_value = f&quot;{value:.2f}&quot;<\/p>\n<p>print(formatted_value)  # \u8f93\u51fa: 12.35<\/p>\n<p><\/code><\/pre>\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\u7528\u4e8e\u5c06\u6570\u5b57\u56db\u820d\u4e94\u5165\u5230\u6307\u5b9a\u7684\u7cbe\u5ea6\u3002\u867d\u7136\u5b83\u4e3b\u8981\u7528\u4e8e\u56db\u820d\u4e94\u5165\uff0c\u4f46\u7ed3\u5408\u5b57\u7b26\u4e32\u683c\u5f0f\u5316\u65b9\u6cd5\uff0c\u53ef\u4ee5\u786e\u4fdd\u8f93\u51fa\u7684\u5c0f\u6570\u70b9\u540e\u4e24\u4f4d\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">value = 12.34567<\/p>\n<p>rounded_value = round(value, 2)<\/p>\n<p>print(rounded_value)  # \u8f93\u51fa: 12.35<\/p>\n<p><\/code><\/pre>\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\u66f4\u9ad8\u7cbe\u5ea6\u7684\u6d6e\u70b9\u8fd0\u7b97\uff0c\u53ef\u4ee5\u66f4\u7cbe\u786e\u5730\u63a7\u5236\u5c0f\u6570\u70b9\u540e\u7684\u4f4d\u6570\u3002\u9002\u7528\u4e8e\u9700\u8981\u9ad8\u7cbe\u5ea6\u8ba1\u7b97\u7684\u573a\u666f\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from decimal import Decimal, ROUND_HALF_UP<\/p>\n<p>value = Decimal(&#39;12.34567&#39;)<\/p>\n<p>formatted_value = value.quantize(Decimal(&#39;0.01&#39;), rounding=ROUND_HALF_UP)<\/p>\n<p>print(formatted_value)  # \u8f93\u51fa: 12.35<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u56db\u3001\u7ed3\u5408\u7528\u6237\u8f93\u5165<\/h3>\n<\/p>\n<p><p>\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u7528\u6237\u8f93\u5165\u7684\u5c0f\u6570\u53ef\u80fd\u9700\u8981\u8fdb\u884c\u4e0a\u8ff0\u5904\u7406\u3002\u53ef\u4ee5\u4f7f\u7528 <code>input()<\/code> \u51fd\u6570\u6765\u83b7\u53d6\u7528\u6237\u8f93\u5165\uff0c\u5e76\u7ed3\u5408\u4e0a\u8ff0\u65b9\u6cd5\u8fdb\u884c\u683c\u5f0f\u5316\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">user_input = input(&quot;\u8bf7\u8f93\u5165\u4e00\u4e2a\u5c0f\u6570: &quot;)<\/p>\n<p>value = float(user_input)<\/p>\n<p>formatted_value = f&quot;{value:.2f}&quot;<\/p>\n<p>print(f&quot;\u683c\u5f0f\u5316\u540e\u7684\u5c0f\u6570: {formatted_value}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u8be6\u7ec6\u63cf\u8ff0\uff1a\u4f7f\u7528\u5b57\u7b26\u4e32\u683c\u5f0f\u5316\u65b9\u6cd5<\/h3>\n<\/p>\n<p><p>\u5b57\u7b26\u4e32\u683c\u5f0f\u5316\u65b9\u6cd5\u662f\u4e00\u79cd\u7b80\u5355\u4e14\u76f4\u89c2\u7684\u65b9\u5f0f\uff0c\u80fd\u591f\u786e\u4fdd\u8f93\u5165\u7684\u5c0f\u6570\u7cbe\u5ea6\u8fbe\u5230\u4e24\u4f4d\uff0c\u5e76\u4e14\u683c\u5f0f\u7f8e\u89c2\u3002\u4ee5 f-string \u4e3a\u4f8b\uff0c\u5b83\u662f Python 3.6 \u5f15\u5165\u7684\u4e00\u79cd\u65b0\u7684\u5b57\u7b26\u4e32\u683c\u5f0f\u5316\u65b9\u6cd5\uff0c\u5177\u6709\u7b80\u6d01\u3001\u9ad8\u6548\u3001\u6613\u8bfb\u7b49\u4f18\u70b9\u3002<\/p>\n<\/p>\n<p><h4>\u5177\u4f53\u5b9e\u73b0\u6b65\u9aa4\u5982\u4e0b\uff1a<\/h4>\n<\/p>\n<ol>\n<li><strong>\u83b7\u53d6\u7528\u6237\u8f93\u5165<\/strong>\uff1a\u4f7f\u7528 <code>input()<\/code> \u51fd\u6570\u83b7\u53d6\u7528\u6237\u8f93\u5165\u7684\u5b57\u7b26\u4e32\uff0c\u5e76\u5c06\u5176\u8f6c\u6362\u4e3a\u6d6e\u70b9\u6570\u3002<\/li>\n<\/ol>\n<p><pre><code class=\"language-python\">user_input = input(&quot;\u8bf7\u8f93\u5165\u4e00\u4e2a\u5c0f\u6570: &quot;)<\/p>\n<p>value = float(user_input)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li><strong>\u683c\u5f0f\u5316\u5c0f\u6570<\/strong>\uff1a\u4f7f\u7528 f-string \u683c\u5f0f\u5316\u5b57\u7b26\u4e32\uff0c\u5c06\u6d6e\u70b9\u6570\u683c\u5f0f\u5316\u4e3a\u5c0f\u6570\u70b9\u540e\u4e24\u4f4d\u3002<\/li>\n<\/ol>\n<p><pre><code class=\"language-python\">formatted_value = f&quot;{value:.2f}&quot;<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"3\">\n<li><strong>\u8f93\u51fa\u7ed3\u679c<\/strong>\uff1a\u6253\u5370\u683c\u5f0f\u5316\u540e\u7684\u7ed3\u679c\u3002<\/li>\n<\/ol>\n<p><pre><code class=\"language-python\">print(f&quot;\u683c\u5f0f\u5316\u540e\u7684\u5c0f\u6570: {formatted_value}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>\u793a\u4f8b\u4ee3\u7801\uff1a<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\">user_input = input(&quot;\u8bf7\u8f93\u5165\u4e00\u4e2a\u5c0f\u6570: &quot;)<\/p>\n<p>value = float(user_input)<\/p>\n<p>formatted_value = f&quot;{value:.2f}&quot;<\/p>\n<p>print(f&quot;\u683c\u5f0f\u5316\u540e\u7684\u5c0f\u6570: {formatted_value}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u901a\u8fc7\u4e0a\u8ff0\u6b65\u9aa4\uff0c\u5373\u53ef\u5b9e\u73b0\u8f93\u5165\u5e76\u683c\u5f0f\u5316\u5c0f\u6570\u70b9\u540e\u4e24\u4f4d\u7684\u5c0f\u6570\u3002\u8fd9\u79cd\u65b9\u6cd5\u4e0d\u4ec5\u7b80\u5355\u6613\u884c\uff0c\u800c\u4e14\u786e\u4fdd\u4e86\u8f93\u51fa\u7ed3\u679c\u7684\u7f8e\u89c2\u548c\u7cbe\u5ea6\u3002<\/p>\n<\/p>\n<p><h3>\u4e94\u3001\u5176\u4ed6\u76f8\u5173\u5185\u5bb9<\/h3>\n<\/p>\n<p><p>\u9664\u4e86\u4e0a\u8ff0\u65b9\u6cd5\uff0c\u8fd8\u6709\u4e00\u4e9b\u5176\u4ed6\u6280\u5de7\u548c\u6ce8\u610f\u4e8b\u9879\u53ef\u4ee5\u5e2e\u52a9\u66f4\u597d\u5730\u5904\u7406\u548c\u8f93\u5165\u5c0f\u6570\u70b9\u540e\u4e24\u4f4d\u7684\u5c0f\u6570\u3002<\/p>\n<\/p>\n<p><h4>5.1 \u5c0f\u6570\u70b9\u7cbe\u5ea6\u63a7\u5236<\/h4>\n<\/p>\n<p><p>\u5728\u4e00\u4e9b\u573a\u666f\u4e2d\uff0c\u53ef\u80fd\u9700\u8981\u5bf9\u5c0f\u6570\u70b9\u540e\u7684\u4f4d\u6570\u8fdb\u884c\u66f4\u7cbe\u786e\u7684\u63a7\u5236\u3002\u4f8b\u5982\uff0c\u91d1\u878d\u8ba1\u7b97\u4e2d\u9700\u8981\u786e\u4fdd\u8ba1\u7b97\u7ed3\u679c\u7684\u51c6\u786e\u6027\uff0c\u53ef\u4ee5\u4f7f\u7528 <code>decimal<\/code> \u6a21\u5757\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from decimal import Decimal, ROUND_HALF_UP<\/p>\n<p>value = Decimal(&#39;12.34567&#39;)<\/p>\n<p>formatted_value = value.quantize(Decimal(&#39;0.01&#39;), rounding=ROUND_HALF_UP)<\/p>\n<p>print(formatted_value)  # \u8f93\u51fa: 12.35<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>5.2 \u79d1\u5b66\u8ba1\u6570\u6cd5<\/h4>\n<\/p>\n<p><p>\u5728\u5904\u7406\u975e\u5e38\u5927\u7684\u6570\u6216\u975e\u5e38\u5c0f\u7684\u6570\u65f6\uff0c\u53ef\u80fd\u9700\u8981\u4f7f\u7528\u79d1\u5b66\u8ba1\u6570\u6cd5\u8868\u793a\u3002Python \u63d0\u4f9b\u4e86\u79d1\u5b66\u8ba1\u6570\u6cd5\u7684\u683c\u5f0f\u5316\u652f\u6301\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">value = 12345678.12345<\/p>\n<p>formatted_value = f&quot;{value:.2e}&quot;<\/p>\n<p>print(formatted_value)  # \u8f93\u51fa: 1.23e+07<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>5.3 \u56fd\u9645\u5316\u548c\u672c\u5730\u5316<\/h4>\n<\/p>\n<p><p>\u5728\u5904\u7406\u4e0d\u540c\u56fd\u5bb6\u548c\u5730\u533a\u7684\u6570\u5b57\u683c\u5f0f\u65f6\uff0c\u9700\u8981\u8003\u8651\u56fd\u9645\u5316\u548c\u672c\u5730\u5316\u3002\u4f8b\u5982\uff0c\u6b27\u6d32\u56fd\u5bb6\u4f7f\u7528\u9017\u53f7\u4f5c\u4e3a\u5c0f\u6570\u70b9\u5206\u9694\u7b26\uff0c\u800c\u7f8e\u56fd\u4f7f\u7528\u70b9\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import locale<\/p>\n<p>locale.setlocale(locale.LC_ALL, &#39;de_DE&#39;)<\/p>\n<p>value = 12345.67<\/p>\n<p>formatted_value = locale.format_string(&quot;%.2f&quot;, value)<\/p>\n<p>print(formatted_value)  # \u8f93\u51fa: 12.345,67<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u516d\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u5728Python\u4e2d\u8f93\u5165\u5e76\u5904\u7406\u5c0f\u6570\u70b9\u540e\u4e24\u4f4d\u7684\u5c0f\u6570\u6709\u591a\u79cd\u65b9\u6cd5\uff0c\u5305\u62ec\u4f7f\u7528\u5b57\u7b26\u4e32\u683c\u5f0f\u5316\u65b9\u6cd5\u3001<code>round()<\/code> \u51fd\u6570\u3001<code>decimal<\/code> \u6a21\u5757\u7b49\u3002\u6bcf\u79cd\u65b9\u6cd5\u6709\u5176\u4f18\u7f3a\u70b9\uff0c\u5177\u4f53\u9009\u62e9\u5e94\u6839\u636e\u5b9e\u9645\u9700\u6c42\u548c\u573a\u666f\u800c\u5b9a\u3002\u901a\u8fc7\u5408\u7406\u9009\u62e9\u548c\u4f7f\u7528\u8fd9\u4e9b\u65b9\u6cd5\uff0c\u53ef\u4ee5\u786e\u4fdd\u8f93\u5165\u7684\u5c0f\u6570\u7cbe\u5ea6\u548c\u683c\u5f0f\u7f8e\u89c2\uff0c\u6ee1\u8db3\u4e0d\u540c\u5e94\u7528\u573a\u666f\u7684\u9700\u6c42\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u683c\u5f0f\u5316\u6d6e\u70b9\u6570\u4ee5\u663e\u793a\u4e24\u4f4d\u5c0f\u6570\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u5185\u7f6e\u7684\u683c\u5f0f\u5316\u65b9\u6cd5\u6765\u663e\u793a\u6d6e\u70b9\u6570\u7684\u5c0f\u6570\u70b9\u540e\u4e24\u4f4d\u3002\u6700\u5e38\u7528\u7684\u65b9\u6cd5\u662f\u4f7f\u7528<code>format()<\/code>\u51fd\u6570\u6216f-string\u3002\u4f8b\u5982\uff0c\u4f7f\u7528<code>format()<\/code>\u51fd\u6570\u53ef\u4ee5\u8fd9\u6837\u5199\uff1a<code>&quot;{:.2f}&quot;.format(\u6d6e\u70b9\u6570)<\/code>\uff0c\u800c\u4f7f\u7528f-string\u5219\u53ef\u4ee5\u8fd9\u6837\uff1a<code>f&quot;{\u6d6e\u70b9\u6570:.2f}&quot;<\/code>\u3002\u8fd9\u4e24\u79cd\u65b9\u6cd5\u90fd\u80fd\u786e\u4fdd\u6d6e\u70b9\u6570\u4ee5\u4e24\u4f4d\u5c0f\u6570\u7684\u5f62\u5f0f\u8f93\u51fa\u3002<\/p>\n<p><strong>Python\u4e2d\u662f\u5426\u652f\u6301\u56db\u820d\u4e94\u5165\u64cd\u4f5c\uff1f<\/strong><br \/>\u662f\u7684\uff0cPython\u4e2d\u652f\u6301\u56db\u820d\u4e94\u5165\u64cd\u4f5c\u3002\u53ef\u4ee5\u4f7f\u7528\u5185\u7f6e\u7684<code>round()<\/code>\u51fd\u6570\u6765\u5b9e\u73b0\u3002\u4f8b\u5982\uff0c<code>round(\u6d6e\u70b9\u6570, 2)<\/code>\u5c06\u6d6e\u70b9\u6570\u56db\u820d\u4e94\u5165\u5230\u5c0f\u6570\u70b9\u540e\u4e24\u4f4d\u3002\u8fd9\u4e2a\u51fd\u6570\u7279\u522b\u6709\u7528\u5728\u5904\u7406\u8d22\u52a1\u6570\u636e\u6216\u4efb\u4f55\u9700\u8981\u7cbe\u786e\u5c0f\u6570\u7684\u573a\u5408\u3002<\/p>\n<p><strong>\u5728Python\u4e2d\u5982\u4f55\u5904\u7406\u7528\u6237\u8f93\u5165\u7684\u5c0f\u6570\uff1f<\/strong><br \/>\u5f53\u9700\u8981\u4ece\u7528\u6237\u83b7\u53d6\u5c0f\u6570\u8f93\u5165\u65f6\uff0c\u53ef\u4ee5\u4f7f\u7528<code>input()<\/code>\u51fd\u6570\u3002\u7528\u6237\u8f93\u5165\u7684\u503c\u4f1a\u4ee5\u5b57\u7b26\u4e32\u5f62\u5f0f\u8fd4\u56de\uff0c\u56e0\u6b64\u9700\u8981\u5c06\u5176\u8f6c\u6362\u4e3a\u6d6e\u70b9\u6570\u3002\u53ef\u4ee5\u4f7f\u7528<code>float()<\/code>\u51fd\u6570\u8fdb\u884c\u8f6c\u6362\uff0c\u4f8b\u5982\uff1a<code>num = float(input(&quot;\u8bf7\u8f93\u5165\u4e00\u4e2a\u5c0f\u6570\uff1a&quot;))<\/code>\u3002\u6b64\u540e\uff0c\u53ef\u4ee5\u4f7f\u7528\u524d\u9762\u63d0\u5230\u7684\u683c\u5f0f\u5316\u65b9\u6cd5\u6765\u786e\u4fdd\u8f93\u51fa\u7ed3\u679c\u4e3a\u5c0f\u6570\u70b9\u540e\u4e24\u4f4d\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\u8f93\u5165\u5c0f\u6570\u70b9\u540e\u4e24\u4f4d\u7684\u5c0f\u6570\uff0c\u53ef\u4ee5\u901a\u8fc7\u591a\u79cd\u65b9\u6cd5\u5b9e\u73b0\uff0c\u4e3b\u8981\u5305\u62ec\uff1a\u4f7f\u7528\u5b57\u7b26\u4e32\u683c\u5f0f\u5316\u65b9\u6cd5\u3001\u5229\u7528 round [&hellip;]","protected":false},"author":3,"featured_media":1142936,"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\/1142928"}],"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=1142928"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1142928\/revisions"}],"predecessor-version":[{"id":1142938,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1142928\/revisions\/1142938"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1142936"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1142928"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1142928"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1142928"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}