{"id":1123551,"date":"2025-01-08T19:33:19","date_gmt":"2025-01-08T11:33:19","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1123551.html"},"modified":"2025-01-08T19:33:22","modified_gmt":"2025-01-08T11:33:22","slug":"python%e7%bb%93%e6%9e%9c%e5%a6%82%e4%bd%95%e5%9b%9b%e8%88%8d%e4%ba%94%e5%85%a5","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1123551.html","title":{"rendered":"python\u7ed3\u679c\u5982\u4f55\u56db\u820d\u4e94\u5165"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25084952\/797f911b-8c01-4994-b6c8-4d43d7358cf3.webp\" alt=\"python\u7ed3\u679c\u5982\u4f55\u56db\u820d\u4e94\u5165\" \/><\/p>\n<p><p> <strong>Python\u4e2d\u7684\u56db\u820d\u4e94\u5165\uff08rounding\uff09\u64cd\u4f5c\u53ef\u4ee5\u901a\u8fc7\u591a\u4e2a\u65b9\u6cd5\u5b9e\u73b0\uff0c\u5305\u62ec\u5185\u7f6e\u51fd\u6570\u3001\u5e93\u51fd\u6570\u4ee5\u53ca\u81ea\u5b9a\u4e49\u51fd\u6570\u3002\u5e38\u7528\u7684\u65b9\u6cd5\u5305\u62ec\u4f7f\u7528Python\u5185\u7f6e\u7684<code>round()<\/code>\u51fd\u6570\u3001<code>math<\/code>\u5e93\u7684<code>floor()<\/code>\u548c<code>ceil()<\/code>\u51fd\u6570\u3001\u4ee5\u53ca<code>decimal<\/code>\u5e93\u3002<\/strong> \u5176\u4e2d\uff0c<code>round()<\/code>\u51fd\u6570\u662f\u6700\u5e38\u89c1\u548c\u6700\u7b80\u4fbf\u7684\u65b9\u6cd5\u3002 <strong><code>round()<\/code>\u51fd\u6570\u4f1a\u6839\u636e\u6307\u5b9a\u7684\u5c0f\u6570\u4f4d\u6570\u8fdb\u884c\u56db\u820d\u4e94\u5165\uff0c\u9ed8\u8ba4\u60c5\u51b5\u4e0b\u662f\u5bf9\u5c0f\u6570\u70b9\u540e\u96f6\u4f4d\u8fdb\u884c\u56db\u820d\u4e94\u5165\u3002<\/strong><\/p>\n<\/p>\n<p><p>\u4f8b\u5982\uff0c\u4f7f\u7528<code>round(3.14159, 2)<\/code>\u4f1a\u5c06\u6570\u5b573.14159\u56db\u820d\u4e94\u5165\u5230\u5c0f\u6570\u70b9\u540e\u4e24\u4f4d\uff0c\u7ed3\u679c\u4e3a3.14\u3002\u503c\u5f97\u6ce8\u610f\u7684\u662f\uff0cPython\u7684\u56db\u820d\u4e94\u5165\u9075\u5faa\u201c\u94f6\u884c\u5bb6\u820d\u5165\u6cd5\u201d\uff0c\u5373\u5728\u9047\u52305\u65f6\uff0c\u4f1a\u5411\u8ddd\u79bb\u6700\u8fd1\u7684\u5076\u6570\u820d\u5165\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001Python\u5185\u7f6e\u7684<code>round()<\/code>\u51fd\u6570<\/h3>\n<\/p>\n<p><p>Python\u5185\u7f6e\u7684<code>round()<\/code>\u51fd\u6570\u662f\u6700\u5e38\u7528\u7684\u56db\u820d\u4e94\u5165\u51fd\u6570\u3002\u5b83\u7684\u57fa\u672c\u7528\u6cd5\u5982\u4e0b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">round(number, ndigits=None)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ul>\n<li><code>number<\/code>\uff1a\u9700\u8981\u56db\u820d\u4e94\u5165\u7684\u6570\u5b57\u3002<\/li>\n<li><code>ndigits<\/code>\uff1a\u6307\u5b9a\u5c0f\u6570\u70b9\u540e\u7684\u4f4d\u6570\u3002\u5982\u679c\u7701\u7565\uff0c\u5219\u9ed8\u8ba4\u56db\u820d\u4e94\u5165\u5230\u6574\u6570\u3002<\/li>\n<\/ul>\n<p><h4>1.1 \u57fa\u672c\u7528\u6cd5<\/h4>\n<\/p>\n<p><p>\u4ee5\u4e0b\u662f\u4e00\u4e9b\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">print(round(3.14159))       # \u8f93\u51fa: 3<\/p>\n<p>print(round(3.14159, 2))    # \u8f93\u51fa: 3.14<\/p>\n<p>print(round(3.14159, 3))    # \u8f93\u51fa: 3.142<\/p>\n<p>print(round(3.14159, 4))    # \u8f93\u51fa: 3.1416<\/p>\n<p>print(round(3.14159, 0))    # \u8f93\u51fa: 3.0<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4e0a\u8ff0\u4f8b\u5b50\u5c55\u793a\u4e86\u5982\u4f55\u4f7f\u7528<code>round()<\/code>\u51fd\u6570\u5bf9\u4e0d\u540c\u7684\u5c0f\u6570\u4f4d\u6570\u8fdb\u884c\u56db\u820d\u4e94\u5165\u3002<\/p>\n<\/p>\n<p><h4>1.2 \u94f6\u884c\u5bb6\u820d\u5165\u6cd5<\/h4>\n<\/p>\n<p><p>Python\u7684<code>round()<\/code>\u51fd\u6570\u9075\u5faa\u94f6\u884c\u5bb6\u820d\u5165\u6cd5\uff0c\u4e5f\u79f0\u4e3a\u201c\u5076\u6570\u820d\u5165\u201d\u6216\u201c\u5411\u5076\u6570\u820d\u5165\u201d\u3002\u8fd9\u610f\u5473\u7740\u5728\u5c0f\u6570\u70b9\u540e\u7684\u6570\u5b57\u6070\u597d\u662f5\u65f6\uff0c\u4f1a\u5411\u8ddd\u79bb\u6700\u8fd1\u7684\u5076\u6570\u820d\u5165\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">print(round(2.5))    # \u8f93\u51fa: 2<\/p>\n<p>print(round(3.5))    # \u8f93\u51fa: 4<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e8c\u3001\u4f7f\u7528<code>math<\/code>\u5e93\u8fdb\u884c\u56db\u820d\u4e94\u5165<\/h3>\n<\/p>\n<p><p>Python\u7684<code>math<\/code>\u5e93\u63d0\u4f9b\u4e86\u66f4\u591a\u7684\u6570\u5b66\u51fd\u6570\uff0c\u5305\u62ec<code>floor()<\/code>\u548c<code>ceil()<\/code>\u51fd\u6570\u3002\u867d\u7136\u8fd9\u4e9b\u51fd\u6570\u4e0d\u76f4\u63a5\u7528\u4e8e\u56db\u820d\u4e94\u5165\uff0c\u4f46\u53ef\u4ee5\u901a\u8fc7\u7ec4\u5408\u8fd9\u4e9b\u51fd\u6570\u5b9e\u73b0\u81ea\u5b9a\u4e49\u7684\u56db\u820d\u4e94\u5165\u903b\u8f91\u3002<\/p>\n<\/p>\n<p><h4>2.1 <code>math.floor()<\/code>\u548c<code>math.ceil()<\/code><\/h4>\n<\/p>\n<ul>\n<li><code>math.floor(x)<\/code>\uff1a\u8fd4\u56de\u5c0f\u4e8e\u6216\u7b49\u4e8ex\u7684\u6700\u5927\u6574\u6570\u3002<\/li>\n<li><code>math.ceil(x)<\/code>\uff1a\u8fd4\u56de\u5927\u4e8e\u6216\u7b49\u4e8ex\u7684\u6700\u5c0f\u6574\u6570\u3002<\/li>\n<\/ul>\n<p><p>\u4ee5\u4e0b\u662f\u4e00\u4e9b\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import math<\/p>\n<p>print(math.floor(3.7))  # \u8f93\u51fa: 3<\/p>\n<p>print(math.ceil(3.7))   # \u8f93\u51fa: 4<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2.2 \u81ea\u5b9a\u4e49\u56db\u820d\u4e94\u5165\u51fd\u6570<\/h4>\n<\/p>\n<p><p>\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528<code>math.floor()<\/code>\u548c<code>math.ceil()<\/code>\u51fd\u6570\u6765\u521b\u5efa\u81ea\u5b9a\u4e49\u7684\u56db\u820d\u4e94\u5165\u51fd\u6570\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import math<\/p>\n<p>def custom_round(number, ndigits=0):<\/p>\n<p>    factor = 10  ndigits<\/p>\n<p>    if number &gt;= 0:<\/p>\n<p>        return math.floor(number * factor + 0.5) \/ factor<\/p>\n<p>    else:<\/p>\n<p>        return math.ceil(number * factor - 0.5) \/ factor<\/p>\n<p>print(custom_round(3.14159, 2))  # \u8f93\u51fa: 3.14<\/p>\n<p>print(custom_round(3.14159, 3))  # \u8f93\u51fa: 3.142<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e09\u3001\u4f7f\u7528<code>decimal<\/code>\u5e93\u8fdb\u884c\u7cbe\u786e\u7684\u56db\u820d\u4e94\u5165<\/h3>\n<\/p>\n<p><p>Python\u7684<code>decimal<\/code>\u5e93\u63d0\u4f9b\u4e86\u66f4\u9ad8\u7cbe\u5ea6\u7684\u6d6e\u70b9\u6570\u64cd\u4f5c\u3002<code>decimal<\/code>\u5e93\u4e2d\u7684<code>Decimal<\/code>\u7c7b\u53ef\u4ee5\u5b9e\u73b0\u66f4\u7cbe\u786e\u7684\u56db\u820d\u4e94\u5165\u3002<\/p>\n<\/p>\n<p><h4>3.1 \u57fa\u672c\u7528\u6cd5<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\">from decimal import Decimal, ROUND_HALF_UP<\/p>\n<p>number = Decimal(&#39;3.14159&#39;)<\/p>\n<p>rounded_number = number.quantize(Decimal(&#39;0.01&#39;), rounding=ROUND_HALF_UP)<\/p>\n<p>print(rounded_number)  # \u8f93\u51fa: 3.14<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>3.2 <code>decimal<\/code>\u5e93\u7684\u4f18\u52bf<\/h4>\n<\/p>\n<p><p>\u4f7f\u7528<code>decimal<\/code>\u5e93\u7684\u4e3b\u8981\u4f18\u52bf\u662f\u53ef\u4ee5\u63a7\u5236\u56db\u820d\u4e94\u5165\u7684\u7cbe\u5ea6\u548c\u820d\u5165\u6a21\u5f0f\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u5e38\u7528\u7684\u820d\u5165\u6a21\u5f0f\uff1a<\/p>\n<\/p>\n<ul>\n<li><code>ROUND_CEILING<\/code>\uff1a\u5411\u6b63\u65e0\u7a77\u5927\u65b9\u5411\u820d\u5165\u3002<\/li>\n<li><code>ROUND_FLOOR<\/code>\uff1a\u5411\u8d1f\u65e0\u7a77\u5927\u65b9\u5411\u820d\u5165\u3002<\/li>\n<li><code>ROUND_HALF_UP<\/code>\uff1a\u56db\u820d\u4e94\u5165\u3002<\/li>\n<li><code>ROUND_HALF_DOWN<\/code>\uff1a\u4e94\u820d\u516d\u5165\u3002<\/li>\n<\/ul>\n<p><h3>\u56db\u3001\u5904\u7406\u7279\u6b8a\u60c5\u51b5<\/h3>\n<\/p>\n<p><p>\u56db\u820d\u4e94\u5165\u64cd\u4f5c\u5728\u5904\u7406\u67d0\u4e9b\u7279\u6b8a\u60c5\u51b5\u65f6\u9700\u8981\u7279\u522b\u6ce8\u610f\u3002\u4f8b\u5982\uff0c\u5f53\u5904\u7406\u8d27\u5e01\u91d1\u989d\u65f6\uff0c\u7cbe\u5ea6\u548c\u820d\u5165\u65b9\u5f0f\u975e\u5e38\u91cd\u8981\u3002<\/p>\n<\/p>\n<p><h4>4.1 \u8d27\u5e01\u91d1\u989d\u7684\u56db\u820d\u4e94\u5165<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\">from decimal import Decimal, ROUND_HALF_UP<\/p>\n<p>amount = Decimal(&#39;19.99&#39;)<\/p>\n<p>rounded_amount = amount.quantize(Decimal(&#39;0.01&#39;), rounding=ROUND_HALF_UP)<\/p>\n<p>print(rounded_amount)  # \u8f93\u51fa: 19.99<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>4.2 \u79d1\u5b66\u8ba1\u7b97\u4e2d\u7684\u56db\u820d\u4e94\u5165<\/h4>\n<\/p>\n<p><p>\u5728\u79d1\u5b66\u8ba1\u7b97\u4e2d\uff0c\u6709\u65f6\u9700\u8981\u5bf9\u975e\u5e38\u5c0f\u6216\u975e\u5e38\u5927\u7684\u6570\u5b57\u8fdb\u884c\u56db\u820d\u4e94\u5165\u3002\u6b64\u65f6\uff0c\u4f7f\u7528<code>decimal<\/code>\u5e93\u53ef\u4ee5\u63d0\u4f9b\u66f4\u9ad8\u7684\u7cbe\u5ea6\u548c\u7075\u6d3b\u6027\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from decimal import Decimal, getcontext<\/p>\n<p>getcontext().prec = 10  # \u8bbe\u7f6e\u5168\u5c40\u7cbe\u5ea6<\/p>\n<p>number = Decimal(&#39;1.234567890123456789&#39;)<\/p>\n<p>rounded_number = number.quantize(Decimal(&#39;1.23456789&#39;))<\/p>\n<p>print(rounded_number)  # \u8f93\u51fa: 1.23456789<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e94\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>Python\u4e2d\u6709\u591a\u79cd\u65b9\u6cd5\u53ef\u4ee5\u5b9e\u73b0\u56db\u820d\u4e94\u5165\u64cd\u4f5c\uff0c\u5305\u62ec\u5185\u7f6e\u7684<code>round()<\/code>\u51fd\u6570\u3001<code>math<\/code>\u5e93\u4ee5\u53ca<code>decimal<\/code>\u5e93\u3002<strong>\u4f7f\u7528\u5185\u7f6e\u7684<code>round()<\/code>\u51fd\u6570\u662f\u6700\u7b80\u5355\u548c\u6700\u5e38\u7528\u7684\u65b9\u6cd5<\/strong>\uff0c\u4f46\u5728\u9700\u8981\u66f4\u9ad8\u7cbe\u5ea6\u548c\u63a7\u5236\u7684\u60c5\u51b5\u4e0b\uff0c<code>decimal<\/code>\u5e93\u662f\u4e00\u4e2a\u66f4\u597d\u7684\u9009\u62e9\u3002\u4e86\u89e3\u5e76\u638c\u63e1\u8fd9\u4e9b\u65b9\u6cd5\u53ef\u4ee5\u5e2e\u52a9\u6211\u4eec\u5728\u4e0d\u540c\u7684\u573a\u666f\u4e0b\u9009\u62e9\u6700\u5408\u9002\u7684\u56db\u820d\u4e94\u5165\u7b56\u7565\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u5b9e\u73b0\u56db\u820d\u4e94\u5165\u64cd\u4f5c\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u5185\u7f6e\u7684<code>round()<\/code>\u51fd\u6570\u6765\u8fdb\u884c\u56db\u820d\u4e94\u5165\u3002\u8be5\u51fd\u6570\u63a5\u53d7\u4e24\u4e2a\u53c2\u6570\uff0c\u7b2c\u4e00\u4e2a\u662f\u9700\u8981\u56db\u820d\u4e94\u5165\u7684\u6570\u5b57\uff0c\u7b2c\u4e8c\u4e2a\u662f\u4fdd\u7559\u7684\u5c0f\u6570\u4f4d\u6570\u3002\u4f8b\u5982\uff0c<code>round(3.14159, 2)<\/code>\u5c06\u8fd4\u56de<code>3.14<\/code>\uff0c\u800c<code>round(3.5)<\/code>\u5c06\u8fd4\u56de<code>4<\/code>\u3002\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c<code>round()<\/code>\u4f1a\u6839\u636e\u820d\u5165\u89c4\u5219\u5904\u7406\u6570\u5b57\uff0c\u82e5\u672b\u5c3e\u4e3a5\u65f6\uff0c\u4f1a\u5411\u6700\u8fd1\u7684\u5076\u6570\u820d\u5165\u3002<\/p>\n<p><strong>Python\u4e2d\u6709\u54ea\u4e9b\u5e93\u53ef\u4ee5\u5e2e\u52a9\u8fdb\u884c\u66f4\u590d\u6742\u7684\u56db\u820d\u4e94\u5165\uff1f<\/strong><br \/>\u9664\u4e86\u5185\u7f6e\u7684<code>round()<\/code>\u51fd\u6570\uff0cPython\u7684<code>decimal<\/code>\u6a21\u5757\u4e5f\u63d0\u4f9b\u4e86\u66f4\u7cbe\u786e\u7684\u820d\u5165\u63a7\u5236\u3002\u4f7f\u7528<code>Decimal<\/code>\u7c7b\uff0c\u4f60\u53ef\u4ee5\u5b9a\u4e49\u9700\u8981\u7684\u820d\u5165\u65b9\u5f0f\uff0c\u6bd4\u5982<code>ROUND_HALF_UP<\/code>\u3001<code>ROUND_HALF_DOWN<\/code>\u7b49\u3002\u8fd9\u5bf9\u4e8e\u8d22\u52a1\u8ba1\u7b97\u7b49\u9700\u8981\u9ad8\u7cbe\u5ea6\u7684\u573a\u666f\u975e\u5e38\u6709\u7528\u3002\u793a\u4f8b\u4ee3\u7801\u5982\u4e0b\uff1a  <\/p>\n<pre><code class=\"language-python\">from decimal import Decimal, ROUND_HALF_UP\n\nnumber = Decimal(&#39;3.675&#39;)\nrounded_number = number.quantize(Decimal(&#39;0.01&#39;), rounding=ROUND_HALF_UP)\n<\/code><\/pre>\n<p>\u4ee5\u4e0a\u4ee3\u7801\u5c06<code>3.675<\/code>\u56db\u820d\u4e94\u5165\u5230\u5c0f\u6570\u70b9\u540e\u4e24\u4f4d\uff0c\u7ed3\u679c\u4e3a<code>3.68<\/code>\u3002<\/p>\n<p><strong>\u5728Python\u4e2d\u56db\u820d\u4e94\u5165\u65f6\u53ef\u80fd\u4f1a\u9047\u5230\u54ea\u4e9b\u5e38\u89c1\u95ee\u9898\uff1f<\/strong><br \/>\u5728\u8fdb\u884c\u56db\u820d\u4e94\u5165\u65f6\uff0c\u53ef\u80fd\u4f1a\u9047\u5230\u7cbe\u5ea6\u4e22\u5931\u7684\u95ee\u9898\uff0c\u5c24\u5176\u662f\u5728\u5904\u7406\u6d6e\u70b9\u6570\u65f6\u3002\u7531\u4e8e\u6d6e\u70b9\u6570\u5728\u8ba1\u7b97\u673a\u4e2d\u4ee5\u4e8c\u8fdb\u5236\u5f62\u5f0f\u5b58\u50a8\uff0c\u67d0\u4e9b\u5341\u8fdb\u5236\u6570\u53ef\u80fd\u65e0\u6cd5\u7cbe\u786e\u8868\u793a\uff0c\u4ece\u800c\u5bfc\u81f4\u610f\u5916\u7684\u820d\u5165\u7ed3\u679c\u3002\u4f7f\u7528<code>decimal<\/code>\u6a21\u5757\u53ef\u4ee5\u6709\u6548\u89e3\u51b3\u8fd9\u4e00\u95ee\u9898\u3002\u6b64\u5916\uff0c\u7406\u89e3\u4e0d\u540c\u820d\u5165\u65b9\u6cd5\u7684\u5de5\u4f5c\u539f\u7406\u4e5f\u662f\u5341\u5206\u91cd\u8981\u7684\uff0c\u4ee5\u4fbf\u9009\u62e9\u6700\u5408\u9002\u7684\u65b9\u5f0f\u6765\u6ee1\u8db3\u9700\u6c42\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Python\u4e2d\u7684\u56db\u820d\u4e94\u5165\uff08rounding\uff09\u64cd\u4f5c\u53ef\u4ee5\u901a\u8fc7\u591a\u4e2a\u65b9\u6cd5\u5b9e\u73b0\uff0c\u5305\u62ec\u5185\u7f6e\u51fd\u6570\u3001\u5e93\u51fd\u6570\u4ee5\u53ca\u81ea\u5b9a\u4e49\u51fd\u6570\u3002\u5e38\u7528 [&hellip;]","protected":false},"author":3,"featured_media":1123556,"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\/1123551"}],"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=1123551"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1123551\/revisions"}],"predecessor-version":[{"id":1123557,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1123551\/revisions\/1123557"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1123556"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1123551"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1123551"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1123551"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}