{"id":1087522,"date":"2025-01-08T13:35:52","date_gmt":"2025-01-08T05:35:52","guid":{"rendered":""},"modified":"2025-01-08T13:35:55","modified_gmt":"2025-01-08T05:35:55","slug":"python%e4%b8%adinput%e7%a9%ba%e5%80%bc%e5%a6%82%e4%bd%95%e8%a7%a3%e5%86%b3-3","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1087522.html","title":{"rendered":"python\u4e2dinput\u7a7a\u503c\u5982\u4f55\u89e3\u51b3"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24200418\/cd46707b-e67b-4c8b-97c4-f42eca19c3ee.webp\" alt=\"python\u4e2dinput\u7a7a\u503c\u5982\u4f55\u89e3\u51b3\" \/><\/p>\n<p><p> \u5728Python\u4e2d\u5904\u7406input\u7a7a\u503c\uff0c\u53ef\u4ee5\u4f7f\u7528<strong>try-except\u5757\u3001while\u5faa\u73af\u3001\u6761\u4ef6\u5224\u65ad<\/strong>\u7b49\u65b9\u6cd5\u6765\u786e\u4fdd\u7528\u6237\u8f93\u5165\u6709\u6548\u503c\u3002<strong>try-except\u5757<\/strong>\u53ef\u4ee5\u6355\u83b7\u5f02\u5e38\uff0c<strong>while\u5faa\u73af<\/strong>\u548c<strong>\u6761\u4ef6\u5224\u65ad<\/strong>\u53ef\u4ee5\u53cd\u590d\u63d0\u793a\u7528\u6237\u8f93\u5165\u76f4\u5230\u83b7\u5f97\u6709\u6548\u503c\u3002\u4e0b\u9762\u8be6\u7ec6\u4ecb\u7ecd\u5176\u4e2d\u4e00\u79cd\u65b9\u6cd5\uff1a<\/p>\n<\/p>\n<p><p>\u8981\u907f\u514d\u7528\u6237\u8f93\u5165\u7a7a\u503c\uff0c\u53ef\u4ee5\u4f7f\u7528\u4e00\u4e2a\u5faa\u73af\u53cd\u590d\u8981\u6c42\u8f93\u5165\uff0c\u76f4\u5230\u83b7\u5f97\u975e\u7a7a\u503c\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">while True:<\/p>\n<p>    user_input = input(&quot;\u8bf7\u8f93\u5165\u4e00\u4e2a\u503c: &quot;)<\/p>\n<p>    if user_input.strip():  # \u68c0\u67e5\u8f93\u5165\u662f\u5426\u4e3a\u7a7a<\/p>\n<p>        break<\/p>\n<p>    else:<\/p>\n<p>        print(&quot;\u8f93\u5165\u4e0d\u80fd\u4e3a\u7a7a\uff0c\u8bf7\u518d\u6b21\u8f93\u5165\u3002&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u6837\u505a\u53ef\u4ee5\u786e\u4fdd\u7528\u6237\u4e0d\u4f1a\u8f93\u5165\u7a7a\u503c\uff0c\u7a0b\u5e8f\u4f1a\u4e00\u76f4\u63d0\u793a\u8f93\u5165\uff0c\u76f4\u5230\u83b7\u5f97\u6709\u6548\u8f93\u5165\u4e3a\u6b62\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001TRY-EXCEPT\u5757<\/h3>\n<\/p>\n<p><p>\u4f7f\u7528try-except\u5757\u53ef\u4ee5\u6355\u83b7\u5f02\u5e38\u5e76\u5904\u7406\u8f93\u5165\u9519\u8bef\u3002\u4f8b\u5982\uff0c\u5982\u679c\u6211\u4eec\u5e0c\u671b\u7528\u6237\u8f93\u5165\u4e00\u4e2a\u6570\u5b57\uff0c\u53ef\u4ee5\u8fd9\u6837\u505a\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">while True:<\/p>\n<p>    try:<\/p>\n<p>        user_input = int(input(&quot;\u8bf7\u8f93\u5165\u4e00\u4e2a\u6570\u5b57: &quot;))<\/p>\n<p>        break<\/p>\n<p>    except ValueError:<\/p>\n<p>        print(&quot;\u8f93\u5165\u65e0\u6548\uff0c\u8bf7\u8f93\u5165\u4e00\u4e2a\u6570\u5b57\u3002&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u4e0d\u4ec5\u53ef\u4ee5\u68c0\u6d4b\u7a7a\u503c\uff0c\u8fd8\u53ef\u4ee5\u68c0\u6d4b\u65e0\u6548\u7684\u8f93\u5165\u7c7b\u578b\uff0c\u5e76\u63d0\u793a\u7528\u6237\u91cd\u65b0\u8f93\u5165\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001WHILE\u5faa\u73af\u4e0e\u6761\u4ef6\u5224\u65ad<\/h3>\n<\/p>\n<p><p>\u5728\u4f7f\u7528while\u5faa\u73af\u548c\u6761\u4ef6\u5224\u65ad\u65f6\uff0c\u6211\u4eec\u53ef\u4ee5\u8bbe\u7f6e\u4e00\u4e2a\u6807\u5fd7\u53d8\u91cf\uff0c\u5f53\u8f93\u5165\u6709\u6548\u65f6\u6539\u53d8\u5176\u503c\uff0c\u4ece\u800c\u8df3\u51fa\u5faa\u73af\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">valid_input = False<\/p>\n<p>while not valid_input:<\/p>\n<p>    user_input = input(&quot;\u8bf7\u8f93\u5165\u4e00\u4e2a\u503c: &quot;)<\/p>\n<p>    if user_input.strip():  # \u68c0\u67e5\u8f93\u5165\u662f\u5426\u4e3a\u7a7a<\/p>\n<p>        valid_input = True<\/p>\n<p>    else:<\/p>\n<p>        print(&quot;\u8f93\u5165\u4e0d\u80fd\u4e3a\u7a7a\uff0c\u8bf7\u518d\u6b21\u8f93\u5165\u3002&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u540c\u6837\u53ef\u4ee5\u6709\u6548\u5730\u786e\u4fdd\u7528\u6237\u8f93\u5165\u6709\u6548\u7684\u503c\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001\u6b63\u5219\u8868\u8fbe\u5f0f<\/h3>\n<\/p>\n<p><p>\u5bf9\u4e8e\u66f4\u590d\u6742\u7684\u8f93\u5165\u9a8c\u8bc1\uff0c\u53ef\u4ee5\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u6765\u5339\u914d\u7528\u6237\u8f93\u5165\u3002\u4f8b\u5982\uff0c\u5982\u679c\u6211\u4eec\u9700\u8981\u7528\u6237\u8f93\u5165\u4e00\u4e2a\u6709\u6548\u7684\u90ae\u7bb1\u5730\u5740\uff0c\u53ef\u4ee5\u8fd9\u6837\u505a\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import re<\/p>\n<p>em<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>l_pattern = re.compile(r&quot;[^@]+@[^@]+\\.[^@]+&quot;)<\/p>\n<p>while True:<\/p>\n<p>    user_input = input(&quot;\u8bf7\u8f93\u5165\u90ae\u7bb1\u5730\u5740: &quot;)<\/p>\n<p>    if email_pattern.match(user_input):<\/p>\n<p>        break<\/p>\n<p>    else:<\/p>\n<p>        print(&quot;\u8f93\u5165\u65e0\u6548\uff0c\u8bf7\u8f93\u5165\u6709\u6548\u7684\u90ae\u7bb1\u5730\u5740\u3002&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u53ef\u4ee5\u786e\u4fdd\u7528\u6237\u8f93\u5165\u7b26\u5408\u7279\u5b9a\u7684\u683c\u5f0f\u3002<\/p>\n<\/p>\n<p><h3>\u56db\u3001\u51fd\u6570\u5c01\u88c5<\/h3>\n<\/p>\n<p><p>\u4e3a\u4e86\u63d0\u9ad8\u4ee3\u7801\u7684\u53ef\u8bfb\u6027\u548c\u53ef\u590d\u7528\u6027\uff0c\u53ef\u4ee5\u5c06\u8f93\u5165\u9a8c\u8bc1\u903b\u8f91\u5c01\u88c5\u5230\u4e00\u4e2a\u51fd\u6570\u4e2d\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def get_valid_input(prompt, validation_func):<\/p>\n<p>    while True:<\/p>\n<p>        user_input = input(prompt)<\/p>\n<p>        if validation_func(user_input):<\/p>\n<p>            return user_input<\/p>\n<p>        else:<\/p>\n<p>            print(&quot;\u8f93\u5165\u65e0\u6548\uff0c\u8bf7\u518d\u6b21\u8f93\u5165\u3002&quot;)<\/p>\n<p>def is_non_empty(s):<\/p>\n<p>    return bool(s.strip())<\/p>\n<p>user_input = get_valid_input(&quot;\u8bf7\u8f93\u5165\u4e00\u4e2a\u503c: &quot;, is_non_empty)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u53ef\u4ee5\u8ba9\u6211\u4eec\u66f4\u7075\u6d3b\u5730\u5904\u7406\u4e0d\u540c\u7c7b\u578b\u7684\u8f93\u5165\u9a8c\u8bc1\u3002<\/p>\n<\/p>\n<p><h3>\u4e94\u3001GUI\u5e94\u7528\u4e2d\u7684\u8f93\u5165\u9a8c\u8bc1<\/h3>\n<\/p>\n<p><p>\u5728\u56fe\u5f62\u7528\u6237\u754c\u9762\uff08GUI\uff09\u5e94\u7528\u4e2d\uff0c\u8f93\u5165\u9a8c\u8bc1\u901a\u5e38\u5728\u4e8b\u4ef6\u5904\u7406\u51fd\u6570\u4e2d\u8fdb\u884c\u3002\u4f8b\u5982\uff0c\u5728\u4f7f\u7528Tkinter\u65f6\uff0c\u53ef\u4ee5\u8fd9\u6837\u505a\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import tkinter as tk<\/p>\n<p>from tkinter import messagebox<\/p>\n<p>def validate_input():<\/p>\n<p>    user_input = entry.get()<\/p>\n<p>    if not user_input.strip():<\/p>\n<p>        messagebox.showerror(&quot;\u8f93\u5165\u9519\u8bef&quot;, &quot;\u8f93\u5165\u4e0d\u80fd\u4e3a\u7a7a&quot;)<\/p>\n<p>    else:<\/p>\n<p>        print(&quot;\u7528\u6237\u8f93\u5165:&quot;, user_input)<\/p>\n<p>root = tk.Tk()<\/p>\n<p>entry = tk.Entry(root)<\/p>\n<p>entry.pack()<\/p>\n<p>tk.Button(root, text=&quot;\u63d0\u4ea4&quot;, command=validate_input).pack()<\/p>\n<p>root.mainloop()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u53ef\u4ee5\u5728\u7528\u6237\u63d0\u4ea4\u8868\u5355\u65f6\u8fdb\u884c\u9a8c\u8bc1\uff0c\u5e76\u901a\u8fc7\u5f39\u7a97\u63d0\u793a\u7528\u6237\u8f93\u5165\u9519\u8bef\u3002<\/p>\n<\/p>\n<p><h3>\u516d\u3001web\u5e94\u7528\u4e2d\u7684\u8f93\u5165\u9a8c\u8bc1<\/h3>\n<\/p>\n<p><p>\u5728web\u5e94\u7528\u4e2d\uff0c\u8f93\u5165\u9a8c\u8bc1\u901a\u5e38\u5728\u524d\u7aef\u548c\u540e\u7aef\u540c\u65f6\u8fdb\u884c\u3002\u524d\u7aef\u53ef\u4ee5\u4f7f\u7528JavaScript\u8fdb\u884c\u57fa\u672c\u7684\u8f93\u5165\u9a8c\u8bc1\uff0c\u800c\u540e\u7aef\u53ef\u4ee5\u4f7f\u7528\u670d\u52a1\u5668\u7aef\u8bed\u8a00\uff08\u5982Python\uff09\u8fdb\u884c\u66f4\u4e25\u683c\u7684\u9a8c\u8bc1\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-html\">&lt;form id=&quot;myForm&quot; onsubmit=&quot;return validateForm()&quot;&gt;<\/p>\n<p>    &lt;input type=&quot;text&quot; id=&quot;inputField&quot; name=&quot;inputField&quot;&gt;<\/p>\n<p>    &lt;input type=&quot;submit&quot; value=&quot;\u63d0\u4ea4&quot;&gt;<\/p>\n<p>&lt;\/form&gt;<\/p>\n<p>&lt;script&gt;<\/p>\n<p>function validateForm() {<\/p>\n<p>    var x = document.getElementById(&quot;inputField&quot;).value;<\/p>\n<p>    if (x == &quot;&quot;) {<\/p>\n<p>        alert(&quot;\u8f93\u5165\u4e0d\u80fd\u4e3a\u7a7a&quot;);<\/p>\n<p>        return false;<\/p>\n<p>    }<\/p>\n<p>    return true;<\/p>\n<p>}<\/p>\n<p>&lt;\/script&gt;<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u540e\u7aef\uff0c\u4f7f\u7528Flask\u6846\u67b6\u8fdb\u884c\u9a8c\u8bc1\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from flask import Flask, request, render_template_string<\/p>\n<p>app = Flask(__name__)<\/p>\n<p>@app.route(&#39;\/&#39;, methods=[&#39;GET&#39;, &#39;POST&#39;])<\/p>\n<p>def index():<\/p>\n<p>    if request.method == &#39;POST&#39;:<\/p>\n<p>        user_input = request.form[&#39;inputField&#39;]<\/p>\n<p>        if not user_input.strip():<\/p>\n<p>            return &quot;\u8f93\u5165\u4e0d\u80fd\u4e3a\u7a7a&quot;, 400<\/p>\n<p>        return f&quot;\u7528\u6237\u8f93\u5165: {user_input}&quot;<\/p>\n<p>    return render_template_string(&#39;&#39;&#39;<\/p>\n<p>        &lt;form method=&quot;post&quot;&gt;<\/p>\n<p>            &lt;input type=&quot;text&quot; name=&quot;inputField&quot;&gt;<\/p>\n<p>            &lt;input type=&quot;submit&quot; value=&quot;\u63d0\u4ea4&quot;&gt;<\/p>\n<p>        &lt;\/form&gt;<\/p>\n<p>    &#39;&#39;&#39;)<\/p>\n<p>if __name__ == &#39;__main__&#39;:<\/p>\n<p>    app.run()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u786e\u4fdd\u4e86\u5373\u4f7f\u7528\u6237\u7ed5\u8fc7\u4e86\u524d\u7aef\u9a8c\u8bc1\uff0c\u540e\u7aef\u4ecd\u7136\u80fd\u591f\u8fdb\u884c\u6709\u6548\u7684\u8f93\u5165\u9a8c\u8bc1\u3002<\/p>\n<\/p>\n<p><h3>\u4e03\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u6709\u6548\u7684\u8f93\u5165\u9a8c\u8bc1\u662f\u786e\u4fdd\u7a0b\u5e8f\u5065\u58ee\u6027\u7684\u91cd\u8981\u624b\u6bb5\u3002\u5728Python\u4e2d\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528try-except\u5757\u3001while\u5faa\u73af\u4e0e\u6761\u4ef6\u5224\u65ad\u3001\u6b63\u5219\u8868\u8fbe\u5f0f\u3001\u51fd\u6570\u5c01\u88c5\u3001\u4ee5\u53ca\u5728GUI\u548cweb\u5e94\u7528\u4e2d\u8fdb\u884c\u8f93\u5165\u9a8c\u8bc1\u3002\u65e0\u8bba\u662f\u54ea\u79cd\u65b9\u6cd5\uff0c\u76ee\u6807\u90fd\u662f\u786e\u4fdd\u7528\u6237\u8f93\u5165\u7684\u6709\u6548\u6027\uff0c\u63d0\u9ad8\u7a0b\u5e8f\u7684\u53ef\u9760\u6027\u548c\u7528\u6237\u4f53\u9a8c\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u5904\u7406\u7528\u6237\u8f93\u5165\u7684\u7a7a\u503c\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u5f53\u4f7f\u7528<code>input()<\/code>\u51fd\u6570\u83b7\u53d6\u7528\u6237\u8f93\u5165\u65f6\uff0c\u5982\u679c\u7528\u6237\u76f4\u63a5\u6309\u4e0b\u56de\u8f66\u952e\uff0c\u8f93\u5165\u7684\u503c\u5c06\u4f1a\u662f\u4e00\u4e2a\u7a7a\u5b57\u7b26\u4e32\u3002\u4e3a\u4e86\u5904\u7406\u8fd9\u79cd\u60c5\u51b5\uff0c\u53ef\u4ee5\u4f7f\u7528<code>if<\/code>\u8bed\u53e5\u6765\u68c0\u6d4b\u8f93\u5165\u662f\u5426\u4e3a\u7a7a\uff0c\u5e76\u7ed9\u51fa\u76f8\u5e94\u7684\u63d0\u793a\u6216\u91cd\u8bd5\u673a\u5236\u3002\u4f8b\u5982\uff0c\u53ef\u4ee5\u4f7f\u7528\u4e00\u4e2a\u5faa\u73af\u6765\u53cd\u590d\u8bf7\u6c42\u7528\u6237\u8f93\u5165\uff0c\u76f4\u5230\u8f93\u5165\u6709\u6548\u4e3a\u6b62\u3002<\/p>\n<p><strong>\u5982\u4f55\u9a8c\u8bc1\u7528\u6237\u8f93\u5165\u662f\u5426\u4e3a\u7a7a\u5e76\u63d0\u793a\u7528\u6237\uff1f<\/strong><br \/>\u53ef\u4ee5\u901a\u8fc7\u7b80\u5355\u7684\u6761\u4ef6\u8bed\u53e5\u6765\u68c0\u67e5\u7528\u6237\u8f93\u5165\u7684\u503c\u3002\u5982\u679c\u7528\u6237\u8f93\u5165\u7684\u5b57\u7b26\u4e32\u4e3a\u7a7a\uff0c\u53ef\u4ee5\u4f7f\u7528<code>print()<\/code>\u51fd\u6570\u7ed9\u51fa\u63d0\u793a\uff0c\u63d0\u9192\u7528\u6237\u8f93\u5165\u6709\u6548\u7684\u4fe1\u606f\u3002\u4f8b\u5982\uff0c\u60a8\u53ef\u4ee5\u5728\u4ee3\u7801\u4e2d\u52a0\u5165\u5982\u4e0b\u903b\u8f91\uff1a<code>if not user_input: print(&quot;\u8f93\u5165\u4e0d\u80fd\u4e3a\u7a7a\uff0c\u8bf7\u91cd\u65b0\u8f93\u5165\u3002&quot;)<\/code>\u3002<\/p>\n<p><strong>\u6709\u6ca1\u6709\u65b9\u6cd5\u53ef\u4ee5\u4e3a\u7528\u6237\u8f93\u5165\u63d0\u4f9b\u9ed8\u8ba4\u503c\uff1f<\/strong><br \/>\u786e\u5b9e\u53ef\u4ee5\u901a\u8fc7\u5728<code>input()<\/code>\u51fd\u6570\u4e2d\u63d0\u4f9b\u4e00\u4e2a\u9ed8\u8ba4\u503c\u6765\u7b80\u5316\u8f93\u5165\u8fc7\u7a0b\u3002\u53ef\u4ee5\u5728\u63d0\u793a\u4fe1\u606f\u4e2d\u544a\u77e5\u7528\u6237\u53ef\u4ee5\u6309\u56de\u8f66\u952e\u63a5\u53d7\u9ed8\u8ba4\u503c\u3002\u793a\u4f8b\u4ee3\u7801\u5982\u4e0b\uff1a<code>user_input = input(&quot;\u8bf7\u8f93\u5165\u60a8\u7684\u540d\u5b57\uff08\u9ed8\u8ba4\u4e3a&#39;\u65e0\u540d\u6c0f&#39;\uff09\uff1a&quot;) or &#39;\u65e0\u540d\u6c0f&#39;<\/code>\u3002\u8fd9\u6837\uff0c\u5982\u679c\u7528\u6237\u4e0d\u8f93\u5165\u4efb\u4f55\u5185\u5bb9\uff0c<code>user_input<\/code>\u5c06\u4f1a\u88ab\u8d4b\u503c\u4e3a&#39;\u65e0\u540d\u6c0f&#39;\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\u5904\u7406input\u7a7a\u503c\uff0c\u53ef\u4ee5\u4f7f\u7528try-except\u5757\u3001while\u5faa\u73af\u3001\u6761\u4ef6\u5224\u65ad\u7b49\u65b9\u6cd5\u6765\u786e\u4fdd\u7528\u6237\u8f93 [&hellip;]","protected":false},"author":3,"featured_media":1087532,"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\/1087522"}],"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=1087522"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1087522\/revisions"}],"predecessor-version":[{"id":1087534,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1087522\/revisions\/1087534"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1087532"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1087522"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1087522"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1087522"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}