{"id":964846,"date":"2024-12-27T04:32:21","date_gmt":"2024-12-26T20:32:21","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/964846.html"},"modified":"2024-12-27T04:32:23","modified_gmt":"2024-12-26T20:32:23","slug":"python%e5%a6%82%e4%bd%95%e5%ae%9e%e7%8e%b0%e5%be%aa%e7%8e%af%e6%8f%90%e9%97%ae","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/964846.html","title":{"rendered":"python\u5982\u4f55\u5b9e\u73b0\u5faa\u73af\u63d0\u95ee"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24181437\/958a20d1-1ac1-457d-a39a-38831466b569.webp\" alt=\"python\u5982\u4f55\u5b9e\u73b0\u5faa\u73af\u63d0\u95ee\" \/><\/p>\n<p><p> Python \u5b9e\u73b0\u5faa\u73af\u63d0\u95ee\u7684\u51e0\u79cd\u65b9\u6cd5\u5305\u62ec\uff1a<strong>\u4f7f\u7528while\u5faa\u73af\u3001for\u5faa\u73af\u3001\u4f7f\u7528\u9012\u5f52\u51fd\u6570<\/strong>\u3002\u5176\u4e2d\uff0c\u4f7f\u7528while\u5faa\u73af\u662f\u6700\u5e38\u89c1\u7684\u65b9\u6cd5\u3002\u4f7f\u7528while\u5faa\u73af\u53ef\u4ee5\u4e0d\u65ad\u5730\u91cd\u590d\u63d0\u95ee\uff0c\u76f4\u5230\u6ee1\u8db3\u67d0\u4e2a\u6761\u4ef6\u4e3a\u6b62\u3002\u4e0b\u9762\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528while\u5faa\u73af\u8fdb\u884c\u5faa\u73af\u63d0\u95ee\uff0c\u5e76\u9644\u5e26\u4e00\u4e9b\u4ee3\u7801\u793a\u4f8b\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001WHILE\u5faa\u73af\u5b9e\u73b0\u5faa\u73af\u63d0\u95ee<\/p>\n<\/p>\n<p><p>\u4f7f\u7528while\u5faa\u73af\u53ef\u4ee5\u6301\u7eed\u63d0\u95ee\uff0c\u76f4\u5230\u7528\u6237\u8f93\u5165\u7b26\u5408\u6761\u4ef6\u7684\u7b54\u6848\u3002\u4e0b\u9762\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u793a\u4f8b\uff0c\u6f14\u793a\u5982\u4f55\u4f7f\u7528while\u5faa\u73af\u6765\u5b9e\u73b0\u5faa\u73af\u63d0\u95ee\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">while True:<\/p>\n<p>    answer = input(&quot;\u8bf7\u8f93\u5165\u60a8\u7684\u540d\u5b57\uff1a&quot;)<\/p>\n<p>    if answer.strip():<\/p>\n<p>        print(f&quot;\u6b22\u8fce\u60a8\uff0c{answer}!&quot;)<\/p>\n<p>        break<\/p>\n<p>    else:<\/p>\n<p>        print(&quot;\u8f93\u5165\u4e0d\u80fd\u4e3a\u7a7a\uff0c\u8bf7\u91cd\u65b0\u8f93\u5165\u3002&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u7a0b\u5e8f\u4f1a\u53cd\u590d\u8be2\u95ee\u7528\u6237\u7684\u540d\u5b57\uff0c\u76f4\u5230\u7528\u6237\u8f93\u5165\u975e\u7a7a\u5b57\u7b26\u4e32\u4e3a\u6b62\u3002<strong>\u8fd9\u79cd\u65b9\u6cd5\u7684\u4f18\u70b9\u662f\u7b80\u5355\u6613\u61c2\uff0c\u9002\u7528\u4e8e\u9700\u8981\u7b80\u5355\u5224\u65ad\u7684\u573a\u666f<\/strong>\u3002<\/p>\n<\/p>\n<p><p>\u4e8c\u3001FOR\u5faa\u73af\u5b9e\u73b0\u5faa\u73af\u63d0\u95ee<\/p>\n<\/p>\n<p><p>\u867d\u7136for\u5faa\u73af\u4e0d\u5982while\u5faa\u73af\u5e38\u7528\uff0c\u4f46\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0cfor\u5faa\u73af\u53ef\u4ee5\u7528\u4e8e\u5faa\u73af\u63d0\u95ee\uff0c\u6bd4\u5982\u5728\u9700\u8981\u9650\u5236\u63d0\u95ee\u6b21\u6570\u65f6\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">for _ in range(3):<\/p>\n<p>    answer = input(&quot;\u8bf7\u8f93\u5165\u60a8\u7684\u540d\u5b57\uff1a&quot;)<\/p>\n<p>    if answer.strip():<\/p>\n<p>        print(f&quot;\u6b22\u8fce\u60a8\uff0c{answer}!&quot;)<\/p>\n<p>        break<\/p>\n<p>    else:<\/p>\n<p>        print(&quot;\u8f93\u5165\u4e0d\u80fd\u4e3a\u7a7a\uff0c\u8bf7\u91cd\u65b0\u8f93\u5165\u3002&quot;)<\/p>\n<p>else:<\/p>\n<p>    print(&quot;\u60a8\u5df2\u8d85\u8fc7\u6700\u5927\u8f93\u5165\u6b21\u6570\u3002&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u7a0b\u5e8f\u6700\u591a\u8be2\u95ee\u4e09\u6b21\uff0c\u5982\u679c\u7528\u6237\u5728\u4e09\u6b21\u5c1d\u8bd5\u540e\u4ecd\u672a\u8f93\u5165\u6709\u6548\u7b54\u6848\uff0c\u5219\u7a0b\u5e8f\u5c06\u7ec8\u6b62\u3002<strong>\u8fd9\u79cd\u65b9\u6cd5\u9002\u7528\u4e8e\u9700\u8981\u9650\u5236\u7528\u6237\u8f93\u5165\u6b21\u6570\u7684\u573a\u666f<\/strong>\u3002<\/p>\n<\/p>\n<p><p>\u4e09\u3001\u9012\u5f52\u51fd\u6570\u5b9e\u73b0\u5faa\u73af\u63d0\u95ee<\/p>\n<\/p>\n<p><p>\u9012\u5f52\u51fd\u6570\u4e5f\u662f\u4e00\u79cd\u5b9e\u73b0\u5faa\u73af\u63d0\u95ee\u7684\u65b9\u6cd5\uff0c\u5c24\u5176\u9002\u7528\u4e8e\u9700\u8981\u591a\u6b21\u8c03\u7528\u81ea\u8eab\u7684\u60c5\u51b5\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def ask_name():<\/p>\n<p>    answer = input(&quot;\u8bf7\u8f93\u5165\u60a8\u7684\u540d\u5b57\uff1a&quot;)<\/p>\n<p>    if answer.strip():<\/p>\n<p>        print(f&quot;\u6b22\u8fce\u60a8\uff0c{answer}!&quot;)<\/p>\n<p>    else:<\/p>\n<p>        print(&quot;\u8f93\u5165\u4e0d\u80fd\u4e3a\u7a7a\uff0c\u8bf7\u91cd\u65b0\u8f93\u5165\u3002&quot;)<\/p>\n<p>        ask_name()<\/p>\n<p>ask_name()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u51fd\u6570<code>ask_name<\/code>\u4f1a\u5728\u7528\u6237\u8f93\u5165\u65e0\u6548\u65f6\u518d\u6b21\u8c03\u7528\u81ea\u8eab\u3002<strong>\u9012\u5f52\u65b9\u6cd5\u867d\u7136\u4e0d\u5982while\u5faa\u73af\u5e38\u7528\uff0c\u4f46\u5728\u67d0\u4e9b\u9700\u8981\u590d\u6742\u6761\u4ef6\u5224\u65ad\u7684\u573a\u666f\u4e2d\u53ef\u80fd\u66f4\u4e3a\u7075\u6d3b<\/strong>\u3002<\/p>\n<\/p>\n<p><p>\u56db\u3001\u7efc\u5408\u5e94\u7528<\/p>\n<\/p>\n<p><p>\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u53ef\u80fd\u9700\u8981\u7ed3\u5408\u591a\u79cd\u65b9\u6cd5\u6765\u5b9e\u73b0\u590d\u6742\u7684\u5faa\u73af\u63d0\u95ee\u903b\u8f91\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u7efc\u5408\u793a\u4f8b\uff0c\u7ed3\u5408\u4e86while\u5faa\u73af\u548c\u51fd\u6570\u8c03\u7528\u6765\u5b9e\u73b0\u7528\u6237\u6ce8\u518c\u8fc7\u7a0b\u4e2d\u7684\u5faa\u73af\u63d0\u95ee\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def get_input(prompt, valid_check, error_message):<\/p>\n<p>    while True:<\/p>\n<p>        user_input = input(prompt)<\/p>\n<p>        if valid_check(user_input):<\/p>\n<p>            return user_input<\/p>\n<p>        else:<\/p>\n<p>            print(error_message)<\/p>\n<p>def m<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>n():<\/p>\n<p>    name = get_input(&quot;\u8bf7\u8f93\u5165\u60a8\u7684\u540d\u5b57\uff1a&quot;, lambda x: x.strip() != &quot;&quot;, &quot;\u540d\u5b57\u4e0d\u80fd\u4e3a\u7a7a\uff0c\u8bf7\u91cd\u65b0\u8f93\u5165\u3002&quot;)<\/p>\n<p>    age = get_input(&quot;\u8bf7\u8f93\u5165\u60a8\u7684\u5e74\u9f84\uff1a&quot;, lambda x: x.isdigit() and 0 &lt; int(x) &lt; 120, &quot;\u8bf7\u8f93\u5165\u6709\u6548\u7684\u5e74\u9f84\u3002&quot;)<\/p>\n<p>    email = get_input(&quot;\u8bf7\u8f93\u5165\u60a8\u7684\u90ae\u7bb1\uff1a&quot;, lambda x: &quot;@&quot; in x and &quot;.&quot; in x, &quot;\u8bf7\u8f93\u5165\u6709\u6548\u7684\u90ae\u7bb1\u5730\u5740\u3002&quot;)<\/p>\n<p>    print(f&quot;\u6ce8\u518c\u6210\u529f\uff01\u6b22\u8fce\u60a8\uff0c{name}\u3002&quot;)<\/p>\n<p>main()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u7efc\u5408\u793a\u4f8b\u4e2d\uff0c<code>get_input<\/code>\u51fd\u6570\u88ab\u8bbe\u8ba1\u4e3a\u4e00\u4e2a\u901a\u7528\u7684\u8f93\u5165\u51fd\u6570\uff0c\u80fd\u591f\u6839\u636e\u4e0d\u540c\u7684\u9a8c\u8bc1\u6761\u4ef6\u8fdb\u884c\u5faa\u73af\u63d0\u95ee\u3002\u4e3b\u51fd\u6570<code>main<\/code>\u8c03\u7528<code>get_input<\/code>\u83b7\u53d6\u7528\u6237\u7684\u540d\u5b57\u3001\u5e74\u9f84\u548c\u90ae\u7bb1\uff0c\u5e76\u8fdb\u884c\u76f8\u5e94\u7684\u9a8c\u8bc1\u3002<\/p>\n<\/p>\n<p><p><strong>\u8fd9\u79cd\u65b9\u6cd5\u901a\u8fc7\u5206\u79bb\u8f93\u5165\u903b\u8f91\u548c\u9a8c\u8bc1\u903b\u8f91\uff0c\u4f7f\u5f97\u4ee3\u7801\u66f4\u52a0\u6a21\u5757\u5316\u548c\u6613\u4e8e\u7ef4\u62a4<\/strong>\u3002\u5728\u5b9e\u9645\u5f00\u53d1\u4e2d\uff0c\u53ef\u4ee5\u6839\u636e\u9700\u8981\u8c03\u6574\u9a8c\u8bc1\u6761\u4ef6\u548c\u8f93\u5165\u63d0\u793a\uff0c\u4ee5\u9002\u5e94\u4e0d\u540c\u7684\u5e94\u7528\u573a\u666f\u3002<\/p>\n<\/p>\n<p><p>\u4e94\u3001\u7528\u6237\u4f53\u9a8c\u4f18\u5316\u5efa\u8bae<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u63d0\u4f9b\u660e\u786e\u7684\u8f93\u5165\u63d0\u793a<\/strong>\uff1a\u786e\u4fdd\u7528\u6237\u6e05\u695a\u77e5\u9053\u9700\u8981\u8f93\u5165\u4ec0\u4e48\uff0c\u4f8b\u5982\u901a\u8fc7\u8be6\u7ec6\u7684\u63d0\u793a\u4fe1\u606f\u8bf4\u660e\u8f93\u5165\u683c\u5f0f\u548c\u8981\u6c42\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5408\u7406\u7684\u9519\u8bef\u63d0\u793a<\/strong>\uff1a\u5728\u7528\u6237\u8f93\u5165\u9519\u8bef\u65f6\uff0c\u63d0\u4f9b\u5177\u4f53\u7684\u9519\u8bef\u4fe1\u606f\uff0c\u800c\u4e0d\u662f\u7b80\u5355\u7684\u201c\u8f93\u5165\u9519\u8bef\u201d\u63d0\u793a\uff0c\u4ee5\u5e2e\u52a9\u7528\u6237\u66f4\u5feb\u5730\u7ea0\u6b63\u9519\u8bef\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u8bbe\u7f6e\u5408\u7406\u7684\u8f93\u5165\u9650\u5236<\/strong>\uff1a\u6839\u636e\u5b9e\u9645\u9700\u6c42\u9650\u5236\u7528\u6237\u7684\u8f93\u5165\u6b21\u6570\u6216\u8f93\u5165\u8303\u56f4\uff0c\u4ee5\u9632\u6b62\u7528\u6237\u9677\u5165\u65e0\u9650\u5faa\u73af\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u63d0\u4f9b\u9000\u51fa\u9009\u9879<\/strong>\uff1a\u5728\u957f\u65f6\u95f4\u7684\u5faa\u73af\u63d0\u95ee\u4e2d\uff0c\u5141\u8bb8\u7528\u6237\u901a\u8fc7\u7279\u5b9a\u7684\u8f93\u5165\uff08\u5982\u8f93\u5165\u201cexit\u201d\uff09\u9000\u51fa\u5faa\u73af\uff0c\u4ee5\u63d0\u5347\u7528\u6237\u4f53\u9a8c\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u901a\u8fc7\u5408\u7406\u8bbe\u8ba1\u5faa\u73af\u63d0\u95ee\u7684\u903b\u8f91\uff0c\u53ef\u4ee5\u5927\u5927\u63d0\u5347\u7528\u6237\u7684\u4ea4\u4e92\u4f53\u9a8c\uff0c\u540c\u65f6\u4e5f\u80fd\u6709\u6548\u5730\u5f15\u5bfc\u7528\u6237\u5b8c\u6210\u6240\u9700\u7684\u8f93\u5165\u4efb\u52a1\u3002\u65e0\u8bba\u662f\u901a\u8fc7while\u5faa\u73af\u3001for\u5faa\u73af\u8fd8\u662f\u9012\u5f52\u51fd\u6570\u5b9e\u73b0\uff0c\u90fd\u5e94\u6839\u636e\u5177\u4f53\u7684\u5e94\u7528\u573a\u666f\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u5b9e\u73b0\u4e00\u4e2a\u7b80\u5355\u7684\u5faa\u73af\u63d0\u95ee\u7a0b\u5e8f\uff1f<\/strong><br \/>\u53ef\u4ee5\u4f7f\u7528<code>while<\/code>\u5faa\u73af\u6765\u5b9e\u73b0\u5faa\u73af\u63d0\u95ee\u3002\u901a\u8fc7\u8bbe\u7f6e\u4e00\u4e2a\u6761\u4ef6\uff0c\u4f7f\u5f97\u7528\u6237\u53ef\u4ee5\u5728\u6ee1\u8db3\u6761\u4ef6\u65f6\u7ee7\u7eed\u56de\u7b54\u95ee\u9898\u3002\u4f8b\u5982\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528\u4e00\u4e2a\u5e03\u5c14\u53d8\u91cf\u6765\u63a7\u5236\u5faa\u73af\uff0c\u5f53\u7528\u6237\u8f93\u5165\u7279\u5b9a\u5b57\u7b26\uff08\u5982\u201cexit\u201d\uff09\u65f6\uff0c\u5faa\u73af\u7ec8\u6b62\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u793a\u4f8b\u4ee3\u7801\uff1a<\/p>\n<pre><code class=\"language-python\">while True:\n    answer = input(&quot;\u8bf7\u95ee\u60a8\u4eca\u5929\u8fc7\u5f97\u600e\u4e48\u6837\uff1f(\u8f93\u5165&#39;exit&#39;\u9000\u51fa): &quot;)\n    if answer.lower() == &#39;exit&#39;:\n        break\n    print(f&quot;\u60a8\u8bf4\uff1a{answer}&quot;)\n<\/code><\/pre>\n<p><strong>\u5982\u4f55\u5728\u5faa\u73af\u63d0\u95ee\u4e2d\u5904\u7406\u7528\u6237\u8f93\u5165\u7684\u6709\u6548\u6027\uff1f<\/strong><br \/>\u5728\u5faa\u73af\u63d0\u95ee\u65f6\uff0c\u786e\u4fdd\u7528\u6237\u8f93\u5165\u6709\u6548\u662f\u975e\u5e38\u91cd\u8981\u7684\u3002\u4f60\u53ef\u4ee5\u4f7f\u7528\u6761\u4ef6\u8bed\u53e5\u68c0\u67e5\u8f93\u5165\u662f\u5426\u7b26\u5408\u9884\u671f\u683c\u5f0f\u6216\u8303\u56f4\u3002\u4f8b\u5982\uff0c\u5982\u679c\u4f60\u5e0c\u671b\u7528\u6237\u8f93\u5165\u4e00\u4e2a\u6570\u5b57\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528<code>isdigit()<\/code>\u65b9\u6cd5\u6765\u9a8c\u8bc1\u8f93\u5165\uff1a<\/p>\n<pre><code class=\"language-python\">while True:\n    answer = input(&quot;\u8bf7\u8f93\u5165\u4e00\u4e2a\u6570\u5b57\uff08\u8f93\u5165&#39;exit&#39;\u9000\u51fa\uff09\uff1a&quot;)\n    if answer.lower() == &#39;exit&#39;:\n        break\n    if answer.isdigit():\n        print(f&quot;\u60a8\u8f93\u5165\u7684\u6570\u5b57\u662f\uff1a{answer}&quot;)\n    else:\n        print(&quot;\u8f93\u5165\u65e0\u6548\uff0c\u8bf7\u8f93\u5165\u4e00\u4e2a\u6570\u5b57\u3002&quot;)\n<\/code><\/pre>\n<p><strong>\u5982\u4f55\u5728Python\u4e2d\u5b9e\u73b0\u5faa\u73af\u63d0\u95ee\u5e76\u6536\u96c6\u6240\u6709\u7528\u6237\u56de\u7b54\uff1f<\/strong><br \/>\u5982\u679c\u60f3\u8981\u6536\u96c6\u7528\u6237\u7684\u6240\u6709\u56de\u7b54\uff0c\u53ef\u4ee5\u4f7f\u7528\u4e00\u4e2a\u5217\u8868\u6765\u5b58\u50a8\u6bcf\u6b21\u7684\u8f93\u5165\u3002\u5728\u6bcf\u6b21\u5faa\u73af\u4e2d\uff0c\u5c06\u7528\u6237\u7684\u56de\u7b54\u6dfb\u52a0\u5230\u5217\u8868\u4e2d\uff0c\u5e76\u5728\u5faa\u73af\u7ed3\u675f\u540e\u8f93\u51fa\u6240\u6709\u56de\u7b54\uff1a<\/p>\n<pre><code class=\"language-python\">responses = []\nwhile True:\n    answer = input(&quot;\u60a8\u559c\u6b22\u7f16\u7a0b\u5417\uff1f(\u8f93\u5165&#39;exit&#39;\u9000\u51fa): &quot;)\n    if answer.lower() == &#39;exit&#39;:\n        break\n    responses.append(answer)\n\nprint(&quot;\u60a8\u7684\u56de\u7b54\u8bb0\u5f55\uff1a&quot;, responses)\n<\/code><\/pre>\n<p>\u901a\u8fc7\u8fd9\u4e9b\u65b9\u6cd5\uff0c\u4f60\u53ef\u4ee5\u521b\u5efa\u4e00\u4e2a\u529f\u80fd\u5b8c\u5584\u7684\u5faa\u73af\u63d0\u95ee\u7a0b\u5e8f\uff0c\u6709\u6548\u5730\u6536\u96c6\u548c\u5904\u7406\u7528\u6237\u7684\u8f93\u5165\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Python \u5b9e\u73b0\u5faa\u73af\u63d0\u95ee\u7684\u51e0\u79cd\u65b9\u6cd5\u5305\u62ec\uff1a\u4f7f\u7528while\u5faa\u73af\u3001for\u5faa\u73af\u3001\u4f7f\u7528\u9012\u5f52\u51fd\u6570\u3002\u5176\u4e2d\uff0c\u4f7f\u7528while\u5faa [&hellip;]","protected":false},"author":3,"featured_media":964848,"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\/964846"}],"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=964846"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/964846\/revisions"}],"predecessor-version":[{"id":964850,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/964846\/revisions\/964850"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/964848"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=964846"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=964846"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=964846"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}