{"id":1004347,"date":"2024-12-27T10:25:38","date_gmt":"2024-12-27T02:25:38","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1004347.html"},"modified":"2024-12-27T10:25:43","modified_gmt":"2024-12-27T02:25:43","slug":"python%e5%a6%82%e4%bd%95%e6%8e%a5%e5%8f%97%e8%be%93%e5%85%a5%e6%95%b0%e5%ad%97","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1004347.html","title":{"rendered":"python\u5982\u4f55\u63a5\u53d7\u8f93\u5165\u6570\u5b57"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25081327\/11722343-a0c9-44e6-a968-ff29ad7874fe.webp\" alt=\"python\u5982\u4f55\u63a5\u53d7\u8f93\u5165\u6570\u5b57\" \/><\/p>\n<p><p> <strong>\u5728Python\u4e2d\uff0c\u63a5\u53d7\u8f93\u5165\u6570\u5b57\u7684\u5e38\u7528\u65b9\u6cd5\u662f\u4f7f\u7528<code>input()<\/code>\u51fd\u6570\u3001\u5c06\u8f93\u5165\u8f6c\u6362\u4e3a\u6574\u6570\u6216\u6d6e\u70b9\u6570\u3001\u5904\u7406\u8f93\u5165\u5f02\u5e38\u3002<\/strong> \u5176\u4e2d\uff0c\u4f7f\u7528<code>input()<\/code>\u51fd\u6570\u83b7\u53d6\u7528\u6237\u8f93\u5165\u662f\u6700\u57fa\u672c\u7684\u65b9\u6cd5\uff0c\u56e0\u4e3a<code>input()<\/code>\u51fd\u6570\u4f1a\u5c06\u7528\u6237\u8f93\u5165\u7684\u6570\u636e\u4ee5\u5b57\u7b26\u4e32\u5f62\u5f0f\u8fd4\u56de\u3002\u4e3a\u5c06\u5176\u8f6c\u6362\u4e3a\u6570\u5b57\u7c7b\u578b\uff0c\u5982\u6574\u6570\u6216\u6d6e\u70b9\u6570\uff0c\u9700\u8981\u4f7f\u7528<code>int()<\/code>\u6216<code>float()<\/code>\u51fd\u6570\u3002\u4e0b\u9762\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u8fd9\u4e9b\u65b9\u6cd5\u5e76\u63d0\u4f9b\u4e00\u4e9b\u793a\u4f8b\u4ee3\u7801\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001<code>INPUT()<\/code>\u51fd\u6570\u4e0e\u6570\u5b57\u8f6c\u6362<\/p>\n<\/p>\n<p><p><code>input()<\/code>\u51fd\u6570\u7528\u4e8e\u63a5\u53d7\u7528\u6237\u8f93\u5165\uff0c\u5e76\u5c06\u8f93\u5165\u7684\u6570\u636e\u4f5c\u4e3a\u5b57\u7b26\u4e32\u8fd4\u56de\u3002\u5982\u679c\u7528\u6237\u9700\u8981\u8f93\u5165\u4e00\u4e2a\u6570\u5b57\uff0c\u5219\u9700\u8981\u5c06\u5b57\u7b26\u4e32\u8f6c\u6362\u4e3a\u76f8\u5e94\u7684\u6570\u5b57\u7c7b\u578b\uff08\u6574\u6570\u6216\u6d6e\u70b9\u6570\uff09\u3002\u8fd9\u53ef\u4ee5\u901a\u8fc7\u4f7f\u7528<code>int()<\/code>\u6216<code>float()<\/code>\u51fd\u6570\u6765\u5b9e\u73b0\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u63a5\u53d7\u6574\u6570\u8f93\u5165<\/p>\n<p>user_input = input(&quot;\u8bf7\u8f93\u5165\u4e00\u4e2a\u6574\u6570: &quot;)<\/p>\n<p>try:<\/p>\n<p>    number = int(user_input)<\/p>\n<p>    print(f&quot;\u60a8\u8f93\u5165\u7684\u6574\u6570\u662f: {number}&quot;)<\/p>\n<p>except ValueError:<\/p>\n<p>    print(&quot;\u8f93\u5165\u7684\u4e0d\u662f\u4e00\u4e2a\u6709\u6548\u7684\u6574\u6570\u3002&quot;)<\/p>\n<h2><strong>\u63a5\u53d7\u6d6e\u70b9\u6570\u8f93\u5165<\/strong><\/h2>\n<p>user_input = input(&quot;\u8bf7\u8f93\u5165\u4e00\u4e2a\u6d6e\u70b9\u6570: &quot;)<\/p>\n<p>try:<\/p>\n<p>    number = float(user_input)<\/p>\n<p>    print(f&quot;\u60a8\u8f93\u5165\u7684\u6d6e\u70b9\u6570\u662f: {number}&quot;)<\/p>\n<p>except ValueError:<\/p>\n<p>    print(&quot;\u8f93\u5165\u7684\u4e0d\u662f\u4e00\u4e2a\u6709\u6548\u7684\u6d6e\u70b9\u6570\u3002&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u4e0a\u9762\u7684\u4ee3\u7801\u4e2d\uff0c\u6211\u4eec\u4f7f\u7528<code>try-except<\/code>\u7ed3\u6784\u6765\u6355\u83b7\u53ef\u80fd\u7684\u8f6c\u6362\u9519\u8bef\u3002\u8fd9\u662f\u56e0\u4e3a\u7528\u6237\u8f93\u5165\u7684\u6570\u636e\u53ef\u80fd\u4e0d\u662f\u6709\u6548\u7684\u6570\u5b57\u683c\u5f0f\uff0c\u56e0\u6b64\u9700\u8981\u5904\u7406\u8fd9\u79cd\u60c5\u51b5\u4ee5\u907f\u514d\u7a0b\u5e8f\u5d29\u6e83\u3002<\/p>\n<\/p>\n<p><p>\u4e8c\u3001\u5904\u7406\u8f93\u5165\u5f02\u5e38<\/p>\n<\/p>\n<p><p>\u5728\u63a5\u53d7\u7528\u6237\u8f93\u5165\u65f6\uff0c\u5904\u7406\u5f02\u5e38\u662f\u4e00\u4e2a\u91cd\u8981\u7684\u6b65\u9aa4\u3002\u56e0\u4e3a\u7528\u6237\u8f93\u5165\u7684\u6570\u636e\u53ef\u80fd\u4e0d\u7b26\u5408\u9884\u671f\u683c\u5f0f\uff0c\u5bfc\u81f4\u8f6c\u6362\u5931\u8d25\u3002\u56e0\u6b64\uff0c\u4f7f\u7528<code>try-except<\/code>\u7ed3\u6784\u6765\u6355\u83b7\u5f02\u5e38\u662f\u4e00\u4e2a\u826f\u597d\u7684\u5b9e\u8df5\u3002\u4e0b\u9762\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u5904\u7406\u4e0d\u540c\u7c7b\u578b\u7684\u5f02\u5e38\u3002<\/p>\n<\/p>\n<ol>\n<li><strong>\u6574\u6570\u8f93\u5165\u5f02\u5e38\u5904\u7406<\/strong><\/li>\n<\/ol>\n<p><p>\u5f53\u7528\u6237\u8f93\u5165\u7684\u503c\u65e0\u6cd5\u8f6c\u6362\u4e3a\u6574\u6570\u65f6\uff0c\u4f1a\u5f15\u53d1<code>ValueError<\/code>\u5f02\u5e38\u3002\u901a\u8fc7\u6355\u83b7\u8fd9\u4e2a\u5f02\u5e38\uff0c\u53ef\u4ee5\u8f93\u51fa\u4e00\u4e2a\u53cb\u597d\u7684\u63d0\u793a\u4fe1\u606f\uff0c\u5e76\u8981\u6c42\u7528\u6237\u91cd\u65b0\u8f93\u5165\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">while True:<\/p>\n<p>    user_input = input(&quot;\u8bf7\u8f93\u5165\u4e00\u4e2a\u6574\u6570: &quot;)<\/p>\n<p>    try:<\/p>\n<p>        number = int(user_input)<\/p>\n<p>        print(f&quot;\u60a8\u8f93\u5165\u7684\u6574\u6570\u662f: {number}&quot;)<\/p>\n<p>        break<\/p>\n<p>    except ValueError:<\/p>\n<p>        print(&quot;\u8f93\u5165\u7684\u4e0d\u662f\u4e00\u4e2a\u6709\u6548\u7684\u6574\u6570\uff0c\u8bf7\u91cd\u65b0\u8f93\u5165\u3002&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li><strong>\u6d6e\u70b9\u6570\u8f93\u5165\u5f02\u5e38\u5904\u7406<\/strong><\/li>\n<\/ol>\n<p><p>\u4e0e\u6574\u6570\u8f93\u5165\u7c7b\u4f3c\uff0c\u5f53\u7528\u6237\u8f93\u5165\u7684\u503c\u65e0\u6cd5\u8f6c\u6362\u4e3a\u6d6e\u70b9\u6570\u65f6\uff0c\u4e5f\u4f1a\u5f15\u53d1<code>ValueError<\/code>\u5f02\u5e38\u3002\u56e0\u6b64\uff0c\u53ef\u4ee5\u4f7f\u7528\u76f8\u540c\u7684\u5904\u7406\u65b9\u6cd5\u6765\u6355\u83b7\u5f02\u5e38\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">while True:<\/p>\n<p>    user_input = input(&quot;\u8bf7\u8f93\u5165\u4e00\u4e2a\u6d6e\u70b9\u6570: &quot;)<\/p>\n<p>    try:<\/p>\n<p>        number = float(user_input)<\/p>\n<p>        print(f&quot;\u60a8\u8f93\u5165\u7684\u6d6e\u70b9\u6570\u662f: {number}&quot;)<\/p>\n<p>        break<\/p>\n<p>    except ValueError:<\/p>\n<p>        print(&quot;\u8f93\u5165\u7684\u4e0d\u662f\u4e00\u4e2a\u6709\u6548\u7684\u6d6e\u70b9\u6570\uff0c\u8bf7\u91cd\u65b0\u8f93\u5165\u3002&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4e09\u3001\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\u7684\u8f93\u5165\u9a8c\u8bc1<\/p>\n<\/p>\n<p><p>\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u9664\u4e86\u6355\u83b7\u5f02\u5e38\u4e4b\u5916\uff0c\u8fd8\u53ef\u4ee5\u901a\u8fc7\u5176\u4ed6\u65b9\u6cd5\u5bf9\u7528\u6237\u8f93\u5165\u8fdb\u884c\u9a8c\u8bc1\uff0c\u4ee5\u786e\u4fdd\u8f93\u5165\u7684\u6570\u636e\u7b26\u5408\u7279\u5b9a\u8981\u6c42\u3002\u4f8b\u5982\uff0c\u53ef\u4ee5\u68c0\u67e5\u8f93\u5165\u7684\u8303\u56f4\u3001\u683c\u5f0f\u7b49\u3002<\/p>\n<\/p>\n<ol>\n<li><strong>\u68c0\u67e5\u8f93\u5165\u8303\u56f4<\/strong><\/li>\n<\/ol>\n<p><p>\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u7528\u6237\u8f93\u5165\u7684\u6570\u5b57\u9700\u8981\u5728\u4e00\u4e2a\u7279\u5b9a\u7684\u8303\u56f4\u5185\u3002\u53ef\u4ee5\u901a\u8fc7\u6bd4\u8f83\u8f93\u5165\u7684\u6570\u5b57\u4e0e\u9884\u5b9a\u7684\u8303\u56f4\u6765\u8fdb\u884c\u9a8c\u8bc1\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">min_value = 1<\/p>\n<p>max_value = 100<\/p>\n<p>while True:<\/p>\n<p>    user_input = input(f&quot;\u8bf7\u8f93\u5165\u4e00\u4e2a\u4ecb\u4e8e {min_value} \u548c {max_value} \u4e4b\u95f4\u7684\u6574\u6570: &quot;)<\/p>\n<p>    try:<\/p>\n<p>        number = int(user_input)<\/p>\n<p>        if min_value &lt;= number &lt;= max_value:<\/p>\n<p>            print(f&quot;\u60a8\u8f93\u5165\u7684\u6574\u6570\u662f: {number}&quot;)<\/p>\n<p>            break<\/p>\n<p>        else:<\/p>\n<p>            print(f&quot;\u8f93\u5165\u7684\u6574\u6570\u4e0d\u5728\u8303\u56f4 {min_value} \u548c {max_value} \u4e4b\u95f4\uff0c\u8bf7\u91cd\u65b0\u8f93\u5165\u3002&quot;)<\/p>\n<p>    except ValueError:<\/p>\n<p>        print(&quot;\u8f93\u5165\u7684\u4e0d\u662f\u4e00\u4e2a\u6709\u6548\u7684\u6574\u6570\uff0c\u8bf7\u91cd\u65b0\u8f93\u5165\u3002&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li><strong>\u68c0\u67e5\u8f93\u5165\u683c\u5f0f<\/strong><\/li>\n<\/ol>\n<p><p>\u6709\u65f6\uff0c\u7528\u6237\u8f93\u5165\u7684\u6570\u5b57\u9700\u8981\u7b26\u5408\u7279\u5b9a\u7684\u683c\u5f0f\u3002\u4f8b\u5982\uff0c\u8f93\u5165\u5e94\u8be5\u662f\u4e00\u4e2a\u5c0f\u6570\u70b9\u540e\u4ec5\u4fdd\u7559\u4e24\u4f4d\u7684\u5c0f\u6570\u3002\u53ef\u4ee5\u901a\u8fc7\u6b63\u5219\u8868\u8fbe\u5f0f\u6765\u9a8c\u8bc1\u8f93\u5165\u683c\u5f0f\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import re<\/p>\n<p>pattern = r&quot;^\\d+\\.\\d{2}$&quot;<\/p>\n<p>while True:<\/p>\n<p>    user_input = input(&quot;\u8bf7\u8f93\u5165\u4e00\u4e2a\u4fdd\u7559\u4e24\u4f4d\u5c0f\u6570\u7684\u6d6e\u70b9\u6570: &quot;)<\/p>\n<p>    if re.match(pattern, user_input):<\/p>\n<p>        try:<\/p>\n<p>            number = float(user_input)<\/p>\n<p>            print(f&quot;\u60a8\u8f93\u5165\u7684\u6d6e\u70b9\u6570\u662f: {number}&quot;)<\/p>\n<p>            break<\/p>\n<p>        except ValueError:<\/p>\n<p>            print(&quot;\u8f93\u5165\u7684\u4e0d\u662f\u4e00\u4e2a\u6709\u6548\u7684\u6d6e\u70b9\u6570\uff0c\u8bf7\u91cd\u65b0\u8f93\u5165\u3002&quot;)<\/p>\n<p>    else:<\/p>\n<p>        print(&quot;\u8f93\u5165\u7684\u683c\u5f0f\u4e0d\u6b63\u786e\uff0c\u8bf7\u91cd\u65b0\u8f93\u5165\u3002&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u901a\u8fc7\u7ed3\u5408<code>input()<\/code>\u51fd\u6570\u3001\u5f02\u5e38\u5904\u7406\u548c\u8f93\u5165\u9a8c\u8bc1\uff0c\u53ef\u4ee5\u6709\u6548\u5730\u5904\u7406Python\u7a0b\u5e8f\u4e2d\u7684\u7528\u6237\u8f93\u5165\uff0c\u5e76\u786e\u4fdd\u8f93\u5165\u7684\u6570\u636e\u7b26\u5408\u9884\u671f\u3002\u8fd9\u4e0d\u4ec5\u63d0\u9ad8\u4e86\u7a0b\u5e8f\u7684\u5065\u58ee\u6027\uff0c\u8fd8\u6539\u5584\u4e86\u7528\u6237\u4f53\u9a8c\u3002\u65e0\u8bba\u662f\u7b80\u5355\u7684\u547d\u4ee4\u884c\u5e94\u7528\u8fd8\u662f\u590d\u6742\u7684\u7528\u6237\u754c\u9762\u5e94\u7528\uff0c\u8fd9\u4e9b\u6280\u672f\u90fd\u662f\u5fc5\u4e0d\u53ef\u5c11\u7684\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u8bfb\u53d6\u7528\u6237\u8f93\u5165\u7684\u6570\u5b57\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u5185\u7f6e\u7684<code>input()<\/code>\u51fd\u6570\u6765\u63a5\u6536\u7528\u6237\u7684\u8f93\u5165\u3002\u4e3a\u4e86\u786e\u4fdd\u8f93\u5165\u7684\u662f\u6570\u5b57\uff0c\u53ef\u4ee5\u5c06\u8f93\u5165\u7684\u5b57\u7b26\u4e32\u8f6c\u6362\u4e3a\u6574\u6570\u6216\u6d6e\u70b9\u6570\u3002\u793a\u4f8b\u4ee3\u7801\u5982\u4e0b\uff1a  <\/p>\n<pre><code class=\"language-python\">num = input(&quot;\u8bf7\u8f93\u5165\u4e00\u4e2a\u6570\u5b57: &quot;)  # \u63a5\u53d7\u8f93\u5165\ntry:\n    num = float(num)  # \u8f6c\u6362\u4e3a\u6d6e\u70b9\u6570\n    print(f&quot;\u4f60\u8f93\u5165\u7684\u6570\u5b57\u662f: {num}&quot;)\nexcept ValueError:\n    print(&quot;\u8bf7\u8f93\u5165\u6709\u6548\u7684\u6570\u5b57\uff01&quot;)\n<\/code><\/pre>\n<p><strong>Python\u652f\u6301\u54ea\u4e9b\u6570\u636e\u7c7b\u578b\u7684\u6570\u5b57\u8f93\u5165\uff1f<\/strong><br \/>Python\u652f\u6301\u591a\u79cd\u6570\u5b57\u7c7b\u578b\u7684\u8f93\u5165\uff0c\u5305\u62ec\u6574\u6570\uff08<code>int<\/code>\uff09\u548c\u6d6e\u70b9\u6570\uff08<code>float<\/code>\uff09\u3002\u7528\u6237\u53ef\u4ee5\u6839\u636e\u9700\u8981\u8f93\u5165\u8fd9\u4e9b\u7c7b\u578b\u7684\u6570\u5b57\u3002\u6574\u6570\u662f\u6ca1\u6709\u5c0f\u6570\u70b9\u7684\u6570\u5b57\uff0c\u800c\u6d6e\u70b9\u6570\u5219\u53ef\u4ee5\u5305\u542b\u5c0f\u6570\u90e8\u5206\u3002\u4f8b\u5982\uff0c<code>42<\/code>\u662f\u4e00\u4e2a\u6574\u6570\uff0c\u800c<code>3.14<\/code>\u662f\u4e00\u4e2a\u6d6e\u70b9\u6570\u3002\u5728\u8f93\u5165\u65f6\uff0c\u786e\u4fdd\u6b63\u786e\u4f7f\u7528\u7b26\u53f7\u548c\u683c\u5f0f\u3002<\/p>\n<p><strong>\u5982\u4f55\u5904\u7406\u7528\u6237\u8f93\u5165\u7684\u9519\u8bef\uff0c\u4ee5\u786e\u4fdd\u8f93\u5165\u4e3a\u6570\u5b57\uff1f<\/strong><br \/>\u4e3a\u4e86\u5904\u7406\u7528\u6237\u8f93\u5165\u9519\u8bef\uff0c\u53ef\u4ee5\u4f7f\u7528<code>try<\/code>\u548c<code>except<\/code>\u8bed\u53e5\u6765\u6355\u83b7\u5f02\u5e38\u3002\u5982\u679c\u7528\u6237\u8f93\u5165\u7684\u5185\u5bb9\u65e0\u6cd5\u8f6c\u6362\u4e3a\u6570\u5b57\uff0c\u7a0b\u5e8f\u5c06\u63d0\u793a\u7528\u6237\u91cd\u65b0\u8f93\u5165\u3002\u901a\u8fc7\u8fd9\u79cd\u65b9\u5f0f\uff0c\u53ef\u4ee5\u63d0\u9ad8\u7a0b\u5e8f\u7684\u7a33\u5b9a\u6027\u5e76\u589e\u5f3a\u7528\u6237\u4f53\u9a8c\u3002\u4f8b\u5982\uff0c\u4f7f\u7528<code>try<\/code>\u6765\u5c1d\u8bd5\u8f6c\u6362\u8f93\u5165\uff0c\u5982\u679c\u53d1\u751f<code>ValueError<\/code>\u5f02\u5e38\uff0c\u5219\u5411\u7528\u6237\u663e\u793a\u53cb\u597d\u7684\u9519\u8bef\u4fe1\u606f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\uff0c\u63a5\u53d7\u8f93\u5165\u6570\u5b57\u7684\u5e38\u7528\u65b9\u6cd5\u662f\u4f7f\u7528input()\u51fd\u6570\u3001\u5c06\u8f93\u5165\u8f6c\u6362\u4e3a\u6574\u6570\u6216\u6d6e\u70b9\u6570\u3001\u5904\u7406\u8f93\u5165\u5f02\u5e38\u3002 \u5176 [&hellip;]","protected":false},"author":3,"featured_media":1004362,"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\/1004347"}],"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=1004347"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1004347\/revisions"}],"predecessor-version":[{"id":1004365,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1004347\/revisions\/1004365"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1004362"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1004347"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1004347"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1004347"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}