{"id":1066954,"date":"2024-12-31T16:30:49","date_gmt":"2024-12-31T08:30:49","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1066954.html"},"modified":"2024-12-31T16:30:53","modified_gmt":"2024-12-31T08:30:53","slug":"python%e4%b8%ad%e5%a6%82%e4%bd%95%e4%bf%9d%e7%95%99%e4%b8%89%e4%bd%8d%e5%b0%8f%e6%95%b0","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1066954.html","title":{"rendered":"python\u4e2d\u5982\u4f55\u4fdd\u7559\u4e09\u4f4d\u5c0f\u6570"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-docs.pingcode.com\/wp-content\/uploads\/2024\/12\/078dc258-3ba5-42a4-a1d1-df2e27375eb7.webp?x-oss-process=image\/auto-orient,1\/format,webp\" alt=\"python\u4e2d\u5982\u4f55\u4fdd\u7559\u4e09\u4f4d\u5c0f\u6570\" \/><\/p>\n<p><p> \u5728Python\u4e2d\u4fdd\u7559\u4e09\u4f4d\u5c0f\u6570\u7684\u65b9\u6cd5\u6709\u591a\u79cd\uff0c\u5e38\u7528\u7684\u65b9\u6cd5\u5305\u62ec\uff1a<strong>\u683c\u5f0f\u5316\u5b57\u7b26\u4e32\u3001\u4f7f\u7528round()\u51fd\u6570\u3001\u4f7f\u7528Decimal\u6a21\u5757<\/strong>\u3002\u5176\u4e2d\uff0c<strong>\u683c\u5f0f\u5316\u5b57\u7b26\u4e32<\/strong>\u65b9\u6cd5\u4e0d\u4ec5\u6613\u7528\u800c\u4e14\u7075\u6d3b\uff0c\u9002\u7528\u4e8e\u7edd\u5927\u591a\u6570\u573a\u666f\u3002\u53ef\u4ee5\u901a\u8fc7\u4f7f\u7528Python\u5185\u7f6e\u7684\u5b57\u7b26\u4e32\u683c\u5f0f\u5316\u51fd\u6570\u6765\u5b9e\u73b0\u3002\u6bd4\u5982\uff1a<code>&quot;{:.3f}&quot;.format(3.1415926)<\/code>\u4f1a\u8f93\u51fa<code>3.142<\/code>\u3002\u63a5\u4e0b\u6765\uff0c\u6211\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u8fd9\u4e9b\u65b9\u6cd5\u53ca\u5176\u5e94\u7528\u573a\u666f\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u683c\u5f0f\u5316\u5b57\u7b26\u4e32<\/h3>\n<\/p>\n<p><p>\u683c\u5f0f\u5316\u5b57\u7b26\u4e32\u662f\u4e00\u79cd\u975e\u5e38\u5e38\u89c1\u4e14\u9ad8\u6548\u7684\u65b9\u6cd5\uff0c\u53ef\u4ee5\u7528\u4e8e\u4fdd\u7559\u5c0f\u6570\u4f4d\u6570\u3002Python\u63d0\u4f9b\u4e86\u51e0\u79cd\u4e0d\u540c\u7684\u683c\u5f0f\u5316\u5b57\u7b26\u4e32\u65b9\u6cd5\uff0c\u5305\u62ec\u65e7\u5f0f\u683c\u5f0f\u5316\uff08%\uff09\u548c\u65b0\u5f0f\u683c\u5f0f\u5316\uff08str.format()\uff09\u4ee5\u53caf-string\u3002<\/p>\n<\/p>\n<p><h4>1. \u65e7\u5f0f\u683c\u5f0f\u5316<\/h4>\n<\/p>\n<p><p>\u65e7\u5f0f\u683c\u5f0f\u5316\u4f7f\u7528\u767e\u5206\u53f7\uff08%\uff09\u6765\u683c\u5f0f\u5316\u5b57\u7b26\u4e32\u3002\u5728\u8fd9\u79cd\u65b9\u6cd5\u4e2d\uff0c<code>%.3f<\/code>\u8868\u793a\u4fdd\u7559\u4e09\u4f4d\u5c0f\u6570\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">number = 3.1415926<\/p>\n<p>formatted_number = &quot;%.3f&quot; % number<\/p>\n<p>print(formatted_number)  # \u8f93\u51fa: 3.142<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u7b80\u5355\u76f4\u89c2\uff0c\u4f46\u5728Python 3.6\u4ee5\u540e\uff0c\u66f4\u591a\u4eba\u503e\u5411\u4e8e\u4f7f\u7528\u65b0\u5f0f\u683c\u5f0f\u5316\u6216f-string\u3002<\/p>\n<\/p>\n<p><h4>2. \u65b0\u5f0f\u683c\u5f0f\u5316<\/h4>\n<\/p>\n<p><p>\u65b0\u5f0f\u683c\u5f0f\u5316\u4f7f\u7528<code>str.format()<\/code>\u65b9\u6cd5\u6765\u683c\u5f0f\u5316\u5b57\u7b26\u4e32\uff0c<code>{:.3f}<\/code>\u8868\u793a\u4fdd\u7559\u4e09\u4f4d\u5c0f\u6570\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">number = 3.1415926<\/p>\n<p>formatted_number = &quot;{:.3f}&quot;.format(number)<\/p>\n<p>print(formatted_number)  # \u8f93\u51fa: 3.142<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u63d0\u4f9b\u4e86\u66f4\u591a\u7684\u7075\u6d3b\u6027\u548c\u53ef\u8bfb\u6027\uff0c\u88ab\u5e7f\u6cdb\u4f7f\u7528\u3002<\/p>\n<\/p>\n<p><h4>3. f-string\uff08\u683c\u5f0f\u5316\u5b57\u7b26\u4e32\u5b57\u9762\u91cf\uff09<\/h4>\n<\/p>\n<p><p>f-string\u662fPython 3.6\u5f15\u5165\u7684\u4e00\u79cd\u683c\u5f0f\u5316\u5b57\u7b26\u4e32\u7684\u65b9\u6cd5\uff0c\u66f4\u52a0\u7b80\u6d01\u548c\u9ad8\u6548\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">number = 3.1415926<\/p>\n<p>formatted_number = f&quot;{number:.3f}&quot;<\/p>\n<p>print(formatted_number)  # \u8f93\u51fa: 3.142<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>f-string\u662f\u76ee\u524d\u6700\u63a8\u8350\u7684\u65b9\u6cd5\uff0c\u56e0\u4e3a\u5b83\u4e0d\u4ec5\u6613\u8bfb\uff0c\u8fd8\u80fd\u63d0\u9ad8\u4ee3\u7801\u7684\u6267\u884c\u6548\u7387\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\u5185\u7f6e\u7684\u4e00\u4e2a\u51fd\u6570\uff0c\u53ef\u4ee5\u7528\u4e8e\u5bf9\u6d6e\u70b9\u6570\u8fdb\u884c\u56db\u820d\u4e94\u5165\u3002\u5b83\u63a5\u53d7\u4e24\u4e2a\u53c2\u6570\uff0c\u7b2c\u4e00\u4e2a\u662f\u6d6e\u70b9\u6570\uff0c\u7b2c\u4e8c\u4e2a\u662f\u4fdd\u7559\u7684\u5c0f\u6570\u4f4d\u6570\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">number = 3.1415926<\/p>\n<p>rounded_number = round(number, 3)<\/p>\n<p>print(rounded_number)  # \u8f93\u51fa: 3.142<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u975e\u5e38\u76f4\u89c2\uff0c\u4f46\u9700\u8981\u6ce8\u610f\u7684\u662f<code>round()<\/code>\u8fd4\u56de\u7684\u662f\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\u63d0\u4f9b\u4e86\u66f4\u9ad8\u7684\u7cbe\u5ea6\u548c\u63a7\u5236\uff0c\u9002\u7528\u4e8e\u9700\u8981\u9ad8\u7cbe\u5ea6\u8ba1\u7b97\u7684\u573a\u5408\u3002<code>Decimal<\/code>\u6a21\u5757\u662fPython\u6807\u51c6\u5e93\u7684\u4e00\u90e8\u5206\uff0c\u9700\u8981\u5148\u5bfc\u5165\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from decimal import Decimal, ROUND_HALF_UP<\/p>\n<p>number = Decimal(&#39;3.1415926&#39;)<\/p>\n<p>rounded_number = number.quantize(Decimal(&#39;0.001&#39;), rounding=ROUND_HALF_UP)<\/p>\n<p>print(rounded_number)  # \u8f93\u51fa: 3.142<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u9002\u7528\u4e8e\u91d1\u878d\u8ba1\u7b97\u6216\u5176\u4ed6\u5bf9\u7cbe\u5ea6\u8981\u6c42\u5f88\u9ad8\u7684\u573a\u5408\u3002<\/p>\n<\/p>\n<p><h3>\u56db\u3001\u5e94\u7528\u573a\u666f<\/h3>\n<\/p>\n<p><h4>1. \u6570\u636e\u5c55\u793a<\/h4>\n<\/p>\n<p><p>\u5728\u6570\u636e\u5c55\u793a\u4e2d\uff0c\u901a\u5e38\u9700\u8981\u5bf9\u6570\u5b57\u8fdb\u884c\u683c\u5f0f\u5316\uff0c\u4ee5\u63d0\u9ad8\u53ef\u8bfb\u6027\u3002\u4f8b\u5982\uff0c\u5728\u62a5\u544a\u751f\u6210\u6216\u7528\u6237\u754c\u9762\u4e2d\u663e\u793a\u4fdd\u7559\u4e09\u4f4d\u5c0f\u6570\u7684\u6570\u5b57\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:.3f}&quot; for num in data]<\/p>\n<p>print(formatted_data)  # \u8f93\u51fa: [&#39;3.142&#39;, &#39;2.718&#39;, &#39;1.618&#39;]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2. \u79d1\u5b66\u8ba1\u7b97<\/h4>\n<\/p>\n<p><p>\u5728\u79d1\u5b66\u8ba1\u7b97\u4e2d\uff0c\u7ed3\u679c\u7684\u7cbe\u5ea6\u975e\u5e38\u91cd\u8981\u3002\u4f7f\u7528<code>Decimal<\/code>\u6a21\u5757\u53ef\u4ee5\u786e\u4fdd\u7ed3\u679c\u7684\u51c6\u786e\u6027\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from decimal import Decimal<\/p>\n<p>value = Decimal(&#39;2.5&#39;)  Decimal(&#39;0.5&#39;)<\/p>\n<p>print(f&quot;Square root of 2.5: {value:.3f}&quot;)  # \u8f93\u51fa: Square root of 2.5: 1.581<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>3. \u91d1\u878d\u8ba1\u7b97<\/h4>\n<\/p>\n<p><p>\u5728\u91d1\u878d\u8ba1\u7b97\u4e2d\uff0c\u4fdd\u7559\u5408\u9002\u7684\u5c0f\u6570\u4f4d\u6570\u53ef\u4ee5\u786e\u4fdd\u7ed3\u679c\u7684\u6b63\u786e\u6027\u3002\u4f8b\u5982\uff0c\u8ba1\u7b97\u5229\u606f\u6216\u6298\u6263\u65f6\uff0c\u9700\u8981\u4fdd\u7559\u4e24\u4f4d\u6216\u4e09\u4f4d\u5c0f\u6570\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from decimal import Decimal, ROUND_HALF_UP<\/p>\n<p>principal = Decimal(&#39;1000.00&#39;)<\/p>\n<p>rate = Decimal(&#39;0.035&#39;)<\/p>\n<p>interest = principal * rate<\/p>\n<p>rounded_interest = interest.quantize(Decimal(&#39;0.01&#39;), rounding=ROUND_HALF_UP)<\/p>\n<p>print(f&quot;Interest: {rounded_interest}&quot;)  # \u8f93\u51fa: Interest: 35.00<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e94\u3001\u7efc\u5408\u793a\u4f8b<\/h3>\n<\/p>\n<p><p>\u4e0b\u9762\u662f\u4e00\u4e2a\u7efc\u5408\u793a\u4f8b\uff0c\u5c55\u793a\u4e86\u5982\u4f55\u5728\u6570\u636e\u5904\u7406\u7684\u4e0d\u540c\u9636\u6bb5\u4f7f\u7528\u4e0a\u8ff0\u65b9\u6cd5\u4fdd\u7559\u4e09\u4f4d\u5c0f\u6570\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from decimal import Decimal, ROUND_HALF_UP<\/p>\n<h2><strong>\u539f\u59cb\u6570\u636e<\/strong><\/h2>\n<p>data = [3.14159, 2.71828, 1.61803, 0.57721]<\/p>\n<h2><strong>\u4f7f\u7528\u683c\u5f0f\u5316\u5b57\u7b26\u4e32\u8fdb\u884c\u5c55\u793a<\/strong><\/h2>\n<p>formatted_data = [f&quot;{num:.3f}&quot; for num in data]<\/p>\n<p>print(&quot;Formatted Data:&quot;, formatted_data)<\/p>\n<h2><strong>\u4f7f\u7528round()\u51fd\u6570\u8fdb\u884c\u8ba1\u7b97<\/strong><\/h2>\n<p>rounded_data = [round(num, 3) for num in data]<\/p>\n<p>print(&quot;Rounded Data:&quot;, rounded_data)<\/p>\n<h2><strong>\u4f7f\u7528Decimal\u6a21\u5757\u8fdb\u884c\u9ad8\u7cbe\u5ea6\u8ba1\u7b97<\/strong><\/h2>\n<p>decimal_data = [Decimal(str(num)).quantize(Decimal(&#39;0.001&#39;), rounding=ROUND_HALF_UP) for num in data]<\/p>\n<p>print(&quot;Decimal Data:&quot;, decimal_data)<\/p>\n<h2><strong>\u8ba1\u7b97\u603b\u548c\u5e76\u4fdd\u7559\u4e09\u4f4d\u5c0f\u6570<\/strong><\/h2>\n<p>total = sum(decimal_data)<\/p>\n<p>formatted_total = f&quot;{total:.3f}&quot;<\/p>\n<p>print(&quot;Total:&quot;, formatted_total)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u516d\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u5728Python\u4e2d\uff0c\u4fdd\u7559\u4e09\u4f4d\u5c0f\u6570\u7684\u65b9\u6cd5\u6709\u591a\u79cd\uff0c<strong>\u683c\u5f0f\u5316\u5b57\u7b26\u4e32\u3001\u4f7f\u7528round()\u51fd\u6570\u3001\u4f7f\u7528Decimal\u6a21\u5757<\/strong>\u662f\u6700\u5e38\u7528\u7684\u4e09\u79cd\u65b9\u6cd5\u3002<strong>\u683c\u5f0f\u5316\u5b57\u7b26\u4e32\u65b9\u6cd5<\/strong>\u4e0d\u4ec5\u6613\u7528\u800c\u4e14\u7075\u6d3b\uff0c\u9002\u7528\u4e8e\u7edd\u5927\u591a\u6570\u573a\u666f\uff1b<strong>round()\u51fd\u6570<\/strong>\u7b80\u5355\u76f4\u89c2\uff0c\u9002\u7528\u4e8e\u4e00\u822c\u7528\u9014\uff1b<strong>Decimal\u6a21\u5757<\/strong>\u63d0\u4f9b\u4e86\u66f4\u9ad8\u7684\u7cbe\u5ea6\u548c\u63a7\u5236\uff0c\u9002\u7528\u4e8e\u9700\u8981\u9ad8\u7cbe\u5ea6\u8ba1\u7b97\u7684\u573a\u5408\u3002\u6839\u636e\u5177\u4f53\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\uff0c\u53ef\u4ee5\u786e\u4fdd\u6570\u636e\u7684\u51c6\u786e\u6027\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\u683c\u5f0f\u5316\u6d6e\u70b9\u6570\u4ee5\u4fdd\u7559\u4e09\u4f4d\u5c0f\u6570\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u683c\u5f0f\u5316\u5b57\u7b26\u4e32\u6765\u4fdd\u7559\u6d6e\u70b9\u6570\u7684\u5c0f\u6570\u4f4d\u6570\u3002\u4f7f\u7528<code>format()<\/code>\u51fd\u6570\u6216f-string\uff08\u683c\u5f0f\u5316\u5b57\u7b26\u4e32\u5b57\u9762\u91cf\uff09\u53ef\u4ee5\u8f7b\u677e\u5b9e\u73b0\u8fd9\u4e00\u70b9\u3002\u4f8b\u5982\uff0c\u4f7f\u7528f-string\u53ef\u4ee5\u5199\u4f5c\uff1a<code>f&quot;{value:.3f}&quot;<\/code>\uff0c\u5176\u4e2d<code>value<\/code>\u662f\u4f60\u8981\u683c\u5f0f\u5316\u7684\u6d6e\u70b9\u6570\u3002\u8fd9\u6837\u53ef\u4ee5\u786e\u4fdd\u8f93\u51fa\u7ed3\u679c\u53ea\u4fdd\u7559\u4e09\u4f4d\u5c0f\u6570\u3002<\/p>\n<p><strong>Python\u6709\u54ea\u4e9b\u65b9\u6cd5\u53ef\u4ee5\u7528\u4e8e\u56db\u820d\u4e94\u5165\u5230\u4e09\u4f4d\u5c0f\u6570\uff1f<\/strong><br \/>\u9664\u4e86\u683c\u5f0f\u5316\u5b57\u7b26\u4e32\uff0cPython\u4e2d\u7684<code>round()<\/code>\u51fd\u6570\u4e5f\u53ef\u4ee5\u7528\u4e8e\u56db\u820d\u4e94\u5165\u3002\u901a\u8fc7\u4f20\u9012\u4e24\u4e2a\u53c2\u6570\uff0c\u6570\u5b57\u548c\u5c0f\u6570\u4f4d\u6570\uff0c\u53ef\u4ee5\u5b9e\u73b0\u8fd9\u4e00\u529f\u80fd\u3002\u793a\u4f8b\u4ee3\u7801\u4e3a\uff1a<code>rounded_value = round(value, 3)<\/code>\u3002\u6b64\u65b9\u6cd5\u4e0d\u4ec5\u7b80\u6d01\uff0c\u800c\u4e14\u80fd\u6709\u6548\u5904\u7406\u591a\u79cd\u573a\u666f\u3002<\/p>\n<p><strong>\u5728Python\u4e2d\u5982\u4f55\u4f7f\u7528Decimal\u6a21\u5757\u8fdb\u884c\u7cbe\u786e\u7684\u5c0f\u6570\u63a7\u5236\uff1f<\/strong><br \/>\u5982\u679c\u9700\u8981\u66f4\u9ad8\u7cbe\u5ea6\u7684\u5c0f\u6570\u63a7\u5236\uff0c\u53ef\u4ee5\u4f7f\u7528<code>decimal<\/code>\u6a21\u5757\u3002\u8be5\u6a21\u5757\u63d0\u4f9b\u4e86\u4e00\u4e2a<code>Decimal<\/code>\u6570\u636e\u7c7b\u578b\uff0c\u80fd\u591f\u907f\u514d\u6d6e\u70b9\u6570\u8fd0\u7b97\u4e2d\u7684\u7cbe\u5ea6\u95ee\u9898\u3002\u4f7f\u7528<code>Decimal<\/code>\u65f6\uff0c\u53ef\u4ee5\u8fd9\u6837\u8bbe\u7f6e\uff1a<code>from decimal import Decimal<\/code>\uff0c\u7136\u540e\u4f7f\u7528<code>Decimal(value).quantize(Decimal(&#39;0.001&#39;))<\/code>\u6765\u4fdd\u7559\u4e09\u4f4d\u5c0f\u6570\u3002\u8fd9\u79cd\u65b9\u6cd5\u7279\u522b\u9002\u5408\u91d1\u878d\u8ba1\u7b97\u7b49\u5bf9\u7cbe\u5ea6\u8981\u6c42\u8f83\u9ad8\u7684\u573a\u666f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\u4fdd\u7559\u4e09\u4f4d\u5c0f\u6570\u7684\u65b9\u6cd5\u6709\u591a\u79cd\uff0c\u5e38\u7528\u7684\u65b9\u6cd5\u5305\u62ec\uff1a\u683c\u5f0f\u5316\u5b57\u7b26\u4e32\u3001\u4f7f\u7528round()\u51fd\u6570\u3001\u4f7f\u7528Decim [&hellip;]","protected":false},"author":3,"featured_media":1066962,"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\/1066954"}],"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=1066954"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1066954\/revisions"}],"predecessor-version":[{"id":1066963,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1066954\/revisions\/1066963"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1066962"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1066954"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1066954"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1066954"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}