{"id":1049698,"date":"2024-12-31T14:01:31","date_gmt":"2024-12-31T06:01:31","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1049698.html"},"modified":"2024-12-31T14:01:33","modified_gmt":"2024-12-31T06:01:33","slug":"python%e8%af%ad%e8%a8%80%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\/1049698.html","title":{"rendered":"python\u8bed\u8a00\u5982\u4f55\u56db\u820d\u4e94\u5165"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-docs.pingcode.com\/wp-content\/uploads\/2024\/12\/4084a593-ea41-4b65-b5d7-11d4f0cb8c93.webp?x-oss-process=image\/auto-orient,1\/format,webp\" alt=\"python\u8bed\u8a00\u5982\u4f55\u56db\u820d\u4e94\u5165\" \/><\/p>\n<p><p> <strong>\u5728Python\u4e2d\uff0c\u56db\u820d\u4e94\u5165\u7684\u65b9\u6cd5\u6709\u8bb8\u591a\u79cd\uff0c\u5e38\u7528\u7684\u6709\u4f7f\u7528\u5185\u7f6e\u51fd\u6570<code>round()<\/code>\u3001<code>math<\/code>\u6a21\u5757\u4e2d\u7684<code>floor()<\/code>\u548c<code>ceil()<\/code>\u51fd\u6570\u3001\u4ee5\u53ca<code>decimal<\/code>\u6a21\u5757\u7b49\u3002<\/strong> \u5176\u4e2d\uff0c\u6700\u5e38\u7528\u4e14\u7b80\u5355\u7684\u65b9\u5f0f\u662f\u4f7f\u7528\u5185\u7f6e\u7684<code>round()<\/code>\u51fd\u6570\u3002\u4e0b\u9762\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u8fd9\u4e9b\u65b9\u6cd5\u53ca\u5176\u4f7f\u7528\u573a\u666f\u3002<\/p>\n<\/p>\n<p><h2>\u4e00\u3001\u4f7f\u7528\u5185\u7f6e\u51fd\u6570<code>round()<\/code><\/h2>\n<\/p>\n<p><p>Python\u63d0\u4f9b\u4e86\u4e00\u4e2a\u975e\u5e38\u65b9\u4fbf\u7684\u5185\u7f6e\u51fd\u6570<code>round()<\/code>\u6765\u8fdb\u884c\u56db\u820d\u4e94\u5165\u64cd\u4f5c\u3002\u8fd9\u4e2a\u51fd\u6570\u80fd\u591f\u5bf9\u6d6e\u70b9\u6570\u8fdb\u884c\u56db\u820d\u4e94\u5165\uff0c\u5e76\u4e14\u53ef\u4ee5\u6307\u5b9a\u4fdd\u7559\u7684\u5c0f\u6570\u4f4d\u6570\u3002\u8bed\u6cd5\u5982\u4e0b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">round(number, ndigits)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5176\u4e2d\uff0c<code>number<\/code>\u662f\u8981\u8fdb\u884c\u56db\u820d\u4e94\u5165\u7684\u6570\u5b57\uff0c<code>ndigits<\/code>\u662f\u8981\u4fdd\u7559\u7684\u5c0f\u6570\u4f4d\u6570\u3002\u5982\u679c\u4e0d\u6307\u5b9a<code>ndigits<\/code>\uff0c\u5219\u9ed8\u8ba4\u56db\u820d\u4e94\u5165\u5230\u6574\u6570\u3002<\/p>\n<\/p>\n<p><p>\u793a\u4f8b\u4ee3\u7801\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">print(round(3.14159))       # \u8f93\u51fa\uff1a3<\/p>\n<p>print(round(3.14159, 2))    # \u8f93\u51fa\uff1a3.14<\/p>\n<p>print(round(3.14159, 3))    # \u8f93\u51fa\uff1a3.142<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c<code>round()<\/code>\u51fd\u6570\u5bf9\u4e8e<code>0.5<\/code>\u7684\u60c5\u51b5\u4f1a\u5411\u6700\u63a5\u8fd1\u7684\u5076\u6570\u65b9\u5411\u8fdb\u884c\u820d\u5165\uff0c\u5373\u6240\u8c13\u7684\u201c\u94f6\u884c\u5bb6\u820d\u5165\u6cd5\u201d\u3002<\/p>\n<\/p>\n<p><h2>\u4e8c\u3001\u4f7f\u7528<code>math<\/code>\u6a21\u5757\u4e2d\u7684<code>floor()<\/code>\u548c<code>ceil()<\/code>\u51fd\u6570<\/h2>\n<\/p>\n<p><p><code>math<\/code>\u6a21\u5757\u4e2d\u7684<code>floor()<\/code>\u548c<code>ceil()<\/code>\u51fd\u6570\u4e5f\u53ef\u4ee5\u7528\u4e8e\u5904\u7406\u56db\u820d\u4e94\u5165\u7684\u9700\u6c42\uff0c\u4e0d\u8fc7\u5b83\u4eec\u5206\u522b\u662f\u5411\u4e0b\u53d6\u6574\u548c\u5411\u4e0a\u53d6\u6574\uff0c\u800c\u4e0d\u662f\u4f20\u7edf\u7684\u56db\u820d\u4e94\u5165\u3002<\/p>\n<\/p>\n<ol>\n<li><code>floor()<\/code>\u51fd\u6570<\/li>\n<\/ol>\n<p><pre><code class=\"language-python\">import math<\/p>\n<p>print(math.floor(3.7))  # \u8f93\u51fa\uff1a3<\/p>\n<p>print(math.floor(-3.7)) # \u8f93\u51fa\uff1a-4<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><code>floor()<\/code>\u51fd\u6570\u4f1a\u8fd4\u56de\u5c0f\u4e8e\u6216\u7b49\u4e8e\u8f93\u5165\u503c\u7684\u6700\u5927\u6574\u6570\u3002<\/p>\n<\/p>\n<ol start=\"2\">\n<li><code>ceil()<\/code>\u51fd\u6570<\/li>\n<\/ol>\n<p><pre><code class=\"language-python\">import math<\/p>\n<p>print(math.ceil(3.3))  # \u8f93\u51fa\uff1a4<\/p>\n<p>print(math.ceil(-3.3)) # \u8f93\u51fa\uff1a-3<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><code>ceil()<\/code>\u51fd\u6570\u4f1a\u8fd4\u56de\u5927\u4e8e\u6216\u7b49\u4e8e\u8f93\u5165\u503c\u7684\u6700\u5c0f\u6574\u6570\u3002<\/p>\n<\/p>\n<p><h2>\u4e09\u3001\u4f7f\u7528<code>decimal<\/code>\u6a21\u5757\u8fdb\u884c\u7cbe\u786e\u56db\u820d\u4e94\u5165<\/h2>\n<\/p>\n<p><p>\u5bf9\u4e8e\u91d1\u878d\u7b49\u5bf9\u7cbe\u5ea6\u8981\u6c42\u8f83\u9ad8\u7684\u9886\u57df\uff0c\u63a8\u8350\u4f7f\u7528<code>decimal<\/code>\u6a21\u5757\u8fdb\u884c\u56db\u820d\u4e94\u5165\u64cd\u4f5c\u3002<code>decimal<\/code>\u6a21\u5757\u80fd\u591f\u63d0\u4f9b\u66f4\u9ad8\u7684\u7cbe\u5ea6\u548c\u66f4\u7ec6\u81f4\u7684\u63a7\u5236\u3002<\/p>\n<\/p>\n<ol>\n<li>\u521b\u5efa<code>Decimal<\/code>\u5bf9\u8c61\u5e76\u8fdb\u884c\u56db\u820d\u4e94\u5165<\/li>\n<\/ol>\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\uff1a3.14<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u91cc\u7684<code>quantize<\/code>\u65b9\u6cd5\u53ef\u4ee5\u6307\u5b9a\u4fdd\u7559\u7684\u5c0f\u6570\u4f4d\u6570\uff0c\u5e76\u4e14\u53ef\u4ee5\u9009\u62e9\u4e0d\u540c\u7684\u820d\u5165\u65b9\u5f0f\uff0c\u6bd4\u5982<code>ROUND_HALF_UP<\/code>\u662f\u4f20\u7edf\u7684\u56db\u820d\u4e94\u5165\u3002<\/p>\n<\/p>\n<ol start=\"2\">\n<li>\u4f7f\u7528<code>getcontext<\/code>\u6765\u8bbe\u7f6e\u5168\u5c40\u7cbe\u5ea6<\/li>\n<\/ol>\n<p><pre><code class=\"language-python\">from decimal import Decimal, getcontext<\/p>\n<p>getcontext().prec = 5  # \u8bbe\u7f6e\u5168\u5c40\u7cbe\u5ea6<\/p>\n<p>number = Decimal(&#39;3.1415926535&#39;)<\/p>\n<p>print(number)  # \u8f93\u51fa\uff1a3.1416<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u901a\u8fc7\u8fd9\u79cd\u65b9\u5f0f\uff0c\u53ef\u4ee5\u5168\u5c40\u5730\u8bbe\u7f6e\u7cbe\u5ea6\uff0c\u4ece\u800c\u7b80\u5316\u4ee3\u7801\u3002<\/p>\n<\/p>\n<p><h2>\u56db\u3001\u4f7f\u7528<code>numpy<\/code>\u5e93\u8fdb\u884c\u56db\u820d\u4e94\u5165<\/h2>\n<\/p>\n<p><p>\u5bf9\u4e8e\u79d1\u5b66\u8ba1\u7b97\u548c\u6570\u636e\u5206\u6790\uff0c<code>numpy<\/code>\u5e93\u63d0\u4f9b\u4e86\u5f3a\u5927\u7684\u6570\u7ec4\u5904\u7406\u529f\u80fd\uff0c\u5176\u4e2d\u4e5f\u5305\u62ec\u56db\u820d\u4e94\u5165\u51fd\u6570\u3002<\/p>\n<\/p>\n<ol>\n<li><code>numpy.round()<\/code>\u51fd\u6570<\/li>\n<\/ol>\n<p><pre><code class=\"language-python\">import numpy as np<\/p>\n<p>array = np.array([3.14159, 2.71828, 1.61803])<\/p>\n<p>rounded_array = np.round(array, 2)<\/p>\n<p>print(rounded_array)  # \u8f93\u51fa\uff1a[3.14 2.72 1.62]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><code>numpy.round()<\/code>\u51fd\u6570\u53ef\u4ee5\u5bf9\u6570\u7ec4\u4e2d\u7684\u6bcf\u4e2a\u5143\u7d20\u8fdb\u884c\u56db\u820d\u4e94\u5165\u64cd\u4f5c\uff0c\u5e76\u4e14\u53ef\u4ee5\u6307\u5b9a\u4fdd\u7559\u7684\u5c0f\u6570\u4f4d\u6570\u3002<\/p>\n<\/p>\n<p><h2>\u4e94\u3001\u901a\u8fc7\u81ea\u5b9a\u4e49\u51fd\u6570\u5b9e\u73b0\u56db\u820d\u4e94\u5165<\/h2>\n<\/p>\n<p><p>\u5982\u679c\u5185\u7f6e\u51fd\u6570\u548c\u6a21\u5757\u4e0d\u80fd\u6ee1\u8db3\u9700\u6c42\uff0c\u8fd8\u53ef\u4ee5\u901a\u8fc7\u81ea\u5b9a\u4e49\u51fd\u6570\u6765\u5b9e\u73b0\u56db\u820d\u4e94\u5165\u3002<\/p>\n<\/p>\n<ol>\n<li>\u57fa\u4e8e<code>int<\/code>\u548c\u52a0\u6cd5\u7684\u7b80\u5355\u5b9e\u73b0<\/li>\n<\/ol>\n<p><pre><code class=\"language-python\">def custom_round(number, ndigits=0):<\/p>\n<p>    factor = 10  ndigits<\/p>\n<p>    return int(number * factor + 0.5) \/ factor<\/p>\n<p>print(custom_round(3.14159, 2))  # \u8f93\u51fa\uff1a3.14<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u901a\u8fc7\u4e58\u4ee510\u7684\u5e42\u6765\u79fb\u52a8\u5c0f\u6570\u70b9\u4f4d\u7f6e\uff0c\u7136\u540e\u518d\u52a0\u4e0a0.5\u8fdb\u884c\u53d6\u6574\uff0c\u6700\u540e\u518d\u9664\u4ee510\u7684\u5e42\u6765\u6062\u590d\u5c0f\u6570\u70b9\u4f4d\u7f6e\u3002<\/p>\n<\/p>\n<ol start=\"2\">\n<li>\u66f4\u52a0\u7075\u6d3b\u7684\u81ea\u5b9a\u4e49\u51fd\u6570<\/li>\n<\/ol>\n<p><pre><code class=\"language-python\">def flexible_round(number, ndigits=0, method=&#39;half_up&#39;):<\/p>\n<p>    factor = 10  ndigits<\/p>\n<p>    if method == &#39;half_up&#39;:<\/p>\n<p>        return int(number * factor + 0.5) \/ factor<\/p>\n<p>    elif method == &#39;half_down&#39;:<\/p>\n<p>        return int(number * factor - 0.5) \/ factor<\/p>\n<p>    elif method == &#39;up&#39;:<\/p>\n<p>        return math.ceil(number * factor) \/ factor<\/p>\n<p>    elif method == &#39;down&#39;:<\/p>\n<p>        return math.floor(number * factor) \/ factor<\/p>\n<p>print(flexible_round(3.14159, 2, &#39;half_up&#39;))  # \u8f93\u51fa\uff1a3.14<\/p>\n<p>print(flexible_round(3.14159, 2, &#39;half_down&#39;))  # \u8f93\u51fa\uff1a3.14<\/p>\n<p>print(flexible_round(3.14159, 2, &#39;up&#39;))  # \u8f93\u51fa\uff1a3.15<\/p>\n<p>print(flexible_round(3.14159, 2, &#39;down&#39;))  # \u8f93\u51fa\uff1a3.14<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u4e2a\u51fd\u6570\u53ef\u4ee5\u6839\u636e\u4e0d\u540c\u7684\u820d\u5165\u65b9\u6cd5\u6765\u8fdb\u884c\u56db\u820d\u4e94\u5165\u64cd\u4f5c\uff0c\u63d0\u4f9b\u4e86\u66f4\u591a\u7684\u7075\u6d3b\u6027\u3002<\/p>\n<\/p>\n<p><h2>\u603b\u7ed3<\/h2>\n<\/p>\n<p><p>\u5728Python\u4e2d\uff0c\u6709\u591a\u79cd\u65b9\u6cd5\u53ef\u4ee5\u5b9e\u73b0\u56db\u820d\u4e94\u5165\u64cd\u4f5c\uff0c\u4ece\u7b80\u5355\u7684\u5185\u7f6e\u51fd\u6570<code>round()<\/code>\u5230\u9ad8\u7cbe\u5ea6\u7684<code>decimal<\/code>\u6a21\u5757\uff0c\u518d\u5230\u79d1\u5b66\u8ba1\u7b97\u7684<code>numpy<\/code>\u5e93\uff0c\u4ee5\u53ca\u81ea\u5b9a\u4e49\u51fd\u6570\u3002\u8fd9\u4e9b\u65b9\u6cd5\u5404\u6709\u4f18\u52a3\uff0c\u53ef\u4ee5\u6839\u636e\u5177\u4f53\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\u3002\u5bf9\u4e8e\u4e00\u822c\u7684\u56db\u820d\u4e94\u5165\u64cd\u4f5c\uff0c<code>round()<\/code>\u51fd\u6570\u5df2\u7ecf\u8db3\u591f\uff1b\u800c\u5bf9\u4e8e\u7cbe\u5ea6\u8981\u6c42\u8f83\u9ad8\u7684\u573a\u666f\uff0c<code>decimal<\/code>\u6a21\u5757\u662f\u66f4\u597d\u7684\u9009\u62e9\u3002\u5982\u679c\u9700\u8981\u5904\u7406\u6570\u7ec4\u6216\u77e9\u9635\u4e2d\u7684\u6570\u636e\uff0c<code>numpy<\/code>\u5e93\u5219\u662f\u9996\u9009\u3002\u901a\u8fc7\u8fd9\u4e9b\u65b9\u6cd5\uff0c\u53ef\u4ee5\u5728Python\u4e2d\u7075\u6d3b\u5730\u8fdb\u884c\u56db\u820d\u4e94\u5165\u64cd\u4f5c\uff0c\u6ee1\u8db3\u5404\u79cd\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\u8fdb\u884c\u56db\u820d\u4e94\u5165\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528\u5185\u7f6e\u7684<code>round()<\/code>\u51fd\u6570\u6765\u8fdb\u884c\u56db\u820d\u4e94\u5165\u3002\u8fd9\u4e2a\u51fd\u6570\u63a5\u53d7\u4e24\u4e2a\u53c2\u6570\uff1a\u7b2c\u4e00\u4e2a\u662f\u8981\u56db\u820d\u4e94\u5165\u7684\u6570\u5b57\uff0c\u7b2c\u4e8c\u4e2a\u662f\u8981\u4fdd\u7559\u7684\u5c0f\u6570\u4f4d\u6570\u3002\u4f8b\u5982\uff0c<code>round(3.14159, 2)<\/code>\u5c06\u8fd4\u56de3.14\u3002\u503c\u5f97\u6ce8\u610f\u7684\u662f\uff0c\u5982\u679c\u5c0f\u6570\u90e8\u5206\u6070\u597d\u662f0.5\uff0c<code>round()<\/code>\u4f1a\u8fd4\u56de\u6700\u63a5\u8fd1\u7684\u5076\u6570\uff0c\u8fd9\u79cd\u7b56\u7565\u79f0\u4e3a\u201c\u94f6\u884c\u5bb6\u820d\u5165\u201d\u3002<\/p>\n<p><strong>\u5728Python\u4e2d\u56db\u820d\u4e94\u5165\u662f\u5426\u652f\u6301\u8d1f\u6570\uff1f<\/strong><br \/>\u5f53\u7136\u53ef\u4ee5\uff01<code>round()<\/code>\u51fd\u6570\u540c\u6837\u9002\u7528\u4e8e\u8d1f\u6570\u3002\u4f8b\u5982\uff0c<code>round(-2.5)<\/code>\u5c06\u8fd4\u56de-2\uff0c\u800c<code>round(-3.5)<\/code>\u5c06\u8fd4\u56de-4\u3002\u8fd9\u663e\u793a\u4e86Python\u5728\u5904\u7406\u56db\u820d\u4e94\u5165\u65f6\u7684\u4e00\u81f4\u6027\uff0c\u65e0\u8bba\u662f\u6b63\u6570\u8fd8\u662f\u8d1f\u6570\u3002<\/p>\n<p><strong>\u5982\u4f55\u4f7f\u7528\u683c\u5f0f\u5316\u5b57\u7b26\u4e32\u8fdb\u884c\u56db\u820d\u4e94\u5165\u663e\u793a\uff1f<\/strong><br \/>\u9664\u4e86\u4f7f\u7528<code>round()<\/code>\u51fd\u6570\uff0c\u60a8\u8fd8\u53ef\u4ee5\u4f7f\u7528\u683c\u5f0f\u5316\u5b57\u7b26\u4e32\u6765\u63a7\u5236\u6570\u5b57\u7684\u663e\u793a\u3002\u4f8b\u5982\uff0c\u4f7f\u7528<code>f&quot;{value:.2f}&quot;<\/code>\u53ef\u4ee5\u5c06\u6570\u5b57\u683c\u5f0f\u5316\u4e3a\u4fdd\u7559\u4e24\u4f4d\u5c0f\u6570\u7684\u5b57\u7b26\u4e32\u3002\u8fd9\u79cd\u65b9\u6cd5\u5728\u5c55\u793a\u6570\u636e\u65f6\u975e\u5e38\u6709\u7528\uff0c\u53ef\u4ee5\u786e\u4fdd\u8f93\u51fa\u4e00\u81f4\u4e14\u7f8e\u89c2\u3002\u4f7f\u7528\u8fd9\u79cd\u65b9\u5f0f\uff0c\u60a8\u53ef\u4ee5\u66f4\u597d\u5730\u63a7\u5236\u6570\u5b57\u7684\u663e\u793a\u683c\u5f0f\uff0c\u800c\u4e0d\u4ec5\u4ec5\u662f\u56db\u820d\u4e94\u5165\u7684\u503c\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\uff0c\u56db\u820d\u4e94\u5165\u7684\u65b9\u6cd5\u6709\u8bb8\u591a\u79cd\uff0c\u5e38\u7528\u7684\u6709\u4f7f\u7528\u5185\u7f6e\u51fd\u6570round()\u3001math\u6a21\u5757\u4e2d\u7684floor()\u548c [&hellip;]","protected":false},"author":3,"featured_media":1049703,"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\/1049698"}],"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=1049698"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1049698\/revisions"}],"predecessor-version":[{"id":1049705,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1049698\/revisions\/1049705"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1049703"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1049698"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1049698"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1049698"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}