{"id":1115340,"date":"2025-01-08T18:05:50","date_gmt":"2025-01-08T10:05:50","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1115340.html"},"modified":"2025-01-08T18:05:53","modified_gmt":"2025-01-08T10:05:53","slug":"%e5%a6%82%e4%bd%95%e7%94%a8python%e6%b1%82%e9%95%bf%e6%96%b9%e5%bd%a2%e7%9a%84%e9%9d%a2%e7%a7%af","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1115340.html","title":{"rendered":"\u5982\u4f55\u7528python\u6c42\u957f\u65b9\u5f62\u7684\u9762\u79ef"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25080133\/34e09550-1377-4336-acb8-7880544e24bc.webp\" alt=\"\u5982\u4f55\u7528python\u6c42\u957f\u65b9\u5f62\u7684\u9762\u79ef\" \/><\/p>\n<p><p> <strong>\u7528Python\u6c42\u957f\u65b9\u5f62\u7684\u9762\u79ef\u975e\u5e38\u7b80\u5355\u3001\u76f4\u63a5\u3002\u4f60\u53ea\u9700\u8981\u77e5\u9053\u957f\u65b9\u5f62\u7684\u957f\u548c\u5bbd\uff0c\u7136\u540e\u5c06\u8fd9\u4e24\u4e2a\u503c\u76f8\u4e58\u5373\u53ef\u3002<\/strong>\u672c\u6587\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528Python\u7f16\u7a0b\u8bed\u8a00\u6765\u8ba1\u7b97\u957f\u65b9\u5f62\u7684\u9762\u79ef\uff0c\u5e76\u63d0\u4f9b\u4e00\u4e9b\u5b9e\u7528\u7684\u793a\u4f8b\u4ee3\u7801\u548c\u89e3\u91ca\u3002\u5177\u4f53\u6b65\u9aa4\u5305\u62ec\u5bfc\u5165\u5fc5\u8981\u7684\u6a21\u5757\u3001\u83b7\u53d6\u7528\u6237\u8f93\u5165\u3001\u8ba1\u7b97\u9762\u79ef\u548c\u8f93\u51fa\u7ed3\u679c\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u57fa\u7840\u6b65\u9aa4\uff1a\u5bfc\u5165\u6a21\u5757\u548c\u83b7\u53d6\u7528\u6237\u8f93\u5165<\/p>\n<\/p>\n<p><p>\u5728\u5f00\u59cb\u8ba1\u7b97\u957f\u65b9\u5f62\u7684\u9762\u79ef\u4e4b\u524d\uff0c\u9700\u8981\u5bfc\u5165Python\u7684\u4e00\u4e9b\u6807\u51c6\u6a21\u5757\uff0c\u6bd4\u5982<code>sys<\/code>\u6a21\u5757\uff0c\u7528\u6765\u5904\u7406\u7528\u6237\u8f93\u5165\u8f93\u51fa\u3002\u63a5\u4e0b\u6765\uff0c\u83b7\u53d6\u7528\u6237\u8f93\u5165\u7684\u957f\u548c\u5bbd\uff0c\u5e76\u8f6c\u6362\u6210\u5408\u9002\u7684\u6570\u636e\u7c7b\u578b\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import sys<\/p>\n<p>def get_user_input():<\/p>\n<p>    try:<\/p>\n<p>        length = float(input(&quot;\u8bf7\u8f93\u5165\u957f\u65b9\u5f62\u7684\u957f\u5ea6: &quot;))<\/p>\n<p>        width = float(input(&quot;\u8bf7\u8f93\u5165\u957f\u65b9\u5f62\u7684\u5bbd\u5ea6: &quot;))<\/p>\n<p>    except ValueError:<\/p>\n<p>        print(&quot;\u8f93\u5165\u65e0\u6548\uff0c\u8bf7\u8f93\u5165\u6570\u5b57\u3002&quot;)<\/p>\n<p>        sys.exit(1)<\/p>\n<p>    return length, width<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u89e3\u91ca\uff1a<\/strong><\/p>\n<\/p>\n<ul>\n<li><strong>\u5bfc\u5165\u6a21\u5757<\/strong>\uff1a\u5bfc\u5165<code>sys<\/code>\u6a21\u5757\u4ee5\u5904\u7406\u53ef\u80fd\u7684\u5f02\u5e38\u60c5\u51b5\u3002<\/li>\n<li><strong>\u83b7\u53d6\u8f93\u5165<\/strong>\uff1a\u4f7f\u7528<code>input()<\/code>\u51fd\u6570\u83b7\u53d6\u7528\u6237\u8f93\u5165\uff0c\u5e76\u4f7f\u7528<code>float()<\/code>\u51fd\u6570\u5c06\u8f93\u5165\u8f6c\u6362\u4e3a\u6d6e\u70b9\u6570\u3002\u5982\u679c\u7528\u6237\u8f93\u5165\u7684\u4e0d\u662f\u6570\u5b57\uff0c\u7a0b\u5e8f\u5c06\u6253\u5370\u9519\u8bef\u4fe1\u606f\u5e76\u9000\u51fa\u3002<\/li>\n<\/ul>\n<p><p>\u4e8c\u3001\u8ba1\u7b97\u9762\u79ef<\/p>\n<\/p>\n<p><p>\u83b7\u53d6\u5230\u957f\u65b9\u5f62\u7684\u957f\u548c\u5bbd\u540e\uff0c\u53ef\u4ee5\u76f4\u63a5\u8ba1\u7b97\u9762\u79ef\u3002\u9762\u79ef\u7684\u8ba1\u7b97\u516c\u5f0f\u662f\uff1a\u9762\u79ef = \u957f \u00d7 \u5bbd\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def calculate_area(length, width):<\/p>\n<p>    return length * width<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u89e3\u91ca\uff1a<\/strong><\/p>\n<\/p>\n<ul>\n<li><strong>\u8ba1\u7b97\u9762\u79ef<\/strong>\uff1a\u5b9a\u4e49\u4e00\u4e2a\u51fd\u6570<code>calculate_area()<\/code>\uff0c\u5b83\u63a5\u6536\u4e24\u4e2a\u53c2\u6570\uff1a\u957f\u548c\u5bbd\uff0c\u7136\u540e\u8fd4\u56de\u5b83\u4eec\u7684\u4e58\u79ef\uff0c\u5373\u957f\u65b9\u5f62\u7684\u9762\u79ef\u3002<\/li>\n<\/ul>\n<p><p>\u4e09\u3001\u8f93\u51fa\u7ed3\u679c<\/p>\n<\/p>\n<p><p>\u8ba1\u7b97\u5b8c\u9762\u79ef\u540e\uff0c\u5c06\u7ed3\u679c\u8f93\u51fa\u7ed9\u7528\u6237\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def m<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>n():<\/p>\n<p>    length, width = get_user_input()<\/p>\n<p>    area = calculate_area(length, width)<\/p>\n<p>    print(f&quot;\u957f\u65b9\u5f62\u7684\u9762\u79ef\u662f: {area}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u89e3\u91ca\uff1a<\/strong><\/p>\n<\/p>\n<ul>\n<li><strong>\u4e3b\u51fd\u6570<\/strong>\uff1a\u5b9a\u4e49\u4e00\u4e2a\u4e3b\u51fd\u6570<code>main()<\/code>\uff0c\u8c03\u7528\u524d\u9762\u5b9a\u4e49\u7684<code>get_user_input()<\/code>\u51fd\u6570\u83b7\u53d6\u7528\u6237\u8f93\u5165\uff0c\u7136\u540e\u8c03\u7528<code>calculate_area()<\/code>\u51fd\u6570\u8ba1\u7b97\u9762\u79ef\uff0c\u6700\u540e\u5c06\u7ed3\u679c\u8f93\u51fa\u3002<\/li>\n<\/ul>\n<p><p>\u56db\u3001\u5b8c\u6574\u4ee3\u7801\u793a\u4f8b<\/p>\n<\/p>\n<p><p>\u5c06\u4e0a\u8ff0\u6b65\u9aa4\u6574\u5408\u5230\u4e00\u8d77\uff0c\u5f97\u5230\u5b8c\u6574\u7684Python\u7a0b\u5e8f\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import sys<\/p>\n<p>def get_user_input():<\/p>\n<p>    try:<\/p>\n<p>        length = float(input(&quot;\u8bf7\u8f93\u5165\u957f\u65b9\u5f62\u7684\u957f\u5ea6: &quot;))<\/p>\n<p>        width = float(input(&quot;\u8bf7\u8f93\u5165\u957f\u65b9\u5f62\u7684\u5bbd\u5ea6: &quot;))<\/p>\n<p>    except ValueError:<\/p>\n<p>        print(&quot;\u8f93\u5165\u65e0\u6548\uff0c\u8bf7\u8f93\u5165\u6570\u5b57\u3002&quot;)<\/p>\n<p>        sys.exit(1)<\/p>\n<p>    return length, width<\/p>\n<p>def calculate_area(length, width):<\/p>\n<p>    return length * width<\/p>\n<p>def main():<\/p>\n<p>    length, width = get_user_input()<\/p>\n<p>    area = calculate_area(length, width)<\/p>\n<p>    print(f&quot;\u957f\u65b9\u5f62\u7684\u9762\u79ef\u662f: {area}&quot;)<\/p>\n<p>if __name__ == &quot;__main__&quot;:<\/p>\n<p>    main()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u89e3\u91ca\uff1a<\/strong><\/p>\n<\/p>\n<ul>\n<li><strong>\u5b8c\u6574\u7a0b\u5e8f<\/strong>\uff1a\u8fd9\u4e2a\u5b8c\u6574\u7684\u7a0b\u5e8f\u9996\u5148\u5bfc\u5165<code>sys<\/code>\u6a21\u5757\uff0c\u5b9a\u4e49\u4e86\u4e09\u4e2a\u51fd\u6570\uff1a<code>get_user_input()<\/code>\u3001<code>calculate_area()<\/code>\u548c<code>main()<\/code>\u3002\u5728<code>main()<\/code>\u51fd\u6570\u4e2d\uff0c\u5148\u83b7\u53d6\u7528\u6237\u8f93\u5165\u7684\u957f\u548c\u5bbd\uff0c\u7136\u540e\u8ba1\u7b97\u9762\u79ef\u5e76\u8f93\u51fa\u7ed3\u679c\u3002\u6700\u540e\uff0c\u901a\u8fc7<code>if __name__ == &quot;__main__&quot;:<\/code>\u8bed\u53e5\u786e\u4fdd\u7a0b\u5e8f\u5728\u4f5c\u4e3a\u811a\u672c\u8fd0\u884c\u65f6\u6267\u884c<code>main()<\/code>\u51fd\u6570\u3002<\/li>\n<\/ul>\n<p><p>\u4e94\u3001\u8fdb\u4e00\u6b65\u4f18\u5316\u548c\u6269\u5c55<\/p>\n<\/p>\n<ol>\n<li><strong>\u8f93\u5165\u9a8c\u8bc1<\/strong>\uff1a\u53ef\u4ee5\u8fdb\u4e00\u6b65\u4f18\u5316\u8f93\u5165\u9a8c\u8bc1\uff0c\u786e\u4fdd\u7528\u6237\u8f93\u5165\u7684\u662f\u6b63\u6570\u3002<\/li>\n<li><strong>\u5355\u5143\u6d4b\u8bd5<\/strong>\uff1a\u4e3a\u6bcf\u4e2a\u51fd\u6570\u7f16\u5199\u5355\u5143\u6d4b\u8bd5\uff0c\u786e\u4fdd\u5176\u6b63\u786e\u6027\u548c\u9c81\u68d2\u6027\u3002<\/li>\n<li><strong>\u56fe\u5f62\u7528\u6237\u754c\u9762\uff08GUI\uff09<\/strong>\uff1a\u4f7f\u7528Tkinter\u6216\u5176\u4ed6GUI\u5e93\u521b\u5efa\u4e00\u4e2a\u7b80\u5355\u7684\u56fe\u5f62\u7528\u6237\u754c\u9762\uff0c\u65b9\u4fbf\u7528\u6237\u8f93\u5165\u548c\u67e5\u770b\u7ed3\u679c\u3002<\/li>\n<li><strong>\u5904\u7406\u5f02\u5e38\u60c5\u51b5<\/strong>\uff1a\u4f8b\u5982\u5904\u7406\u7528\u6237\u8f93\u5165\u975e\u6570\u5b57\u3001\u8d1f\u6570\u6216\u96f6\u7684\u60c5\u51b5\uff0c\u5e76\u7ed9\u51fa\u76f8\u5e94\u7684\u63d0\u793a\u4fe1\u606f\u3002<\/li>\n<\/ol>\n<p><pre><code class=\"language-python\">import sys<\/p>\n<p>def get_user_input():<\/p>\n<p>    try:<\/p>\n<p>        length = float(input(&quot;\u8bf7\u8f93\u5165\u957f\u65b9\u5f62\u7684\u957f\u5ea6: &quot;))<\/p>\n<p>        if length &lt;= 0:<\/p>\n<p>            raise ValueError(&quot;\u957f\u5ea6\u5fc5\u987b\u662f\u6b63\u6570\u3002&quot;)<\/p>\n<p>        width = float(input(&quot;\u8bf7\u8f93\u5165\u957f\u65b9\u5f62\u7684\u5bbd\u5ea6: &quot;))<\/p>\n<p>        if width &lt;= 0:<\/p>\n<p>            raise ValueError(&quot;\u5bbd\u5ea6\u5fc5\u987b\u662f\u6b63\u6570\u3002&quot;)<\/p>\n<p>    except ValueError as e:<\/p>\n<p>        print(f&quot;\u8f93\u5165\u65e0\u6548: {e}&quot;)<\/p>\n<p>        sys.exit(1)<\/p>\n<p>    return length, width<\/p>\n<p>def calculate_area(length, width):<\/p>\n<p>    return length * width<\/p>\n<p>def main():<\/p>\n<p>    length, width = get_user_input()<\/p>\n<p>    area = calculate_area(length, width)<\/p>\n<p>    print(f&quot;\u957f\u65b9\u5f62\u7684\u9762\u79ef\u662f: {area}&quot;)<\/p>\n<p>if __name__ == &quot;__main__&quot;:<\/p>\n<p>    main()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u89e3\u91ca\uff1a<\/strong><\/p>\n<\/p>\n<ul>\n<li><strong>\u8f93\u5165\u9a8c\u8bc1<\/strong>\uff1a\u5728\u83b7\u53d6\u7528\u6237\u8f93\u5165\u540e\uff0c\u68c0\u67e5\u8f93\u5165\u7684\u957f\u5ea6\u548c\u5bbd\u5ea6\u662f\u5426\u4e3a\u6b63\u6570\uff0c\u5982\u679c\u4e0d\u662f\uff0c\u5219\u629b\u51fa<code>ValueError<\/code>\u5e76\u7ed9\u51fa\u76f8\u5e94\u7684\u9519\u8bef\u63d0\u793a\u3002<\/li>\n<\/ul>\n<p><p>\u901a\u8fc7\u8fd9\u4e9b\u6b65\u9aa4\u548c\u4ee3\u7801\u793a\u4f8b\uff0c\u4f60\u53ef\u4ee5\u8f7b\u677e\u5730\u4f7f\u7528Python\u8ba1\u7b97\u957f\u65b9\u5f62\u7684\u9762\u79ef\uff0c\u5e76\u5728\u6b64\u8fc7\u7a0b\u4e2d\u4e86\u89e3\u57fa\u672c\u7684Python\u7f16\u7a0b\u6280\u5de7\u548c\u6700\u4f73\u5b9e\u8df5\u3002\u65e0\u8bba\u4f60\u662f\u521d\u5b66\u8005\u8fd8\u662f\u6709\u7ecf\u9a8c\u7684\u5f00\u53d1\u8005\uff0c\u8fd9\u4e9b\u5185\u5bb9\u90fd\u80fd\u5e2e\u52a9\u4f60\u66f4\u597d\u5730\u638c\u63e1Python\u7f16\u7a0b\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u7528Python\u8ba1\u7b97\u957f\u65b9\u5f62\u7684\u9762\u79ef\uff1f<\/strong><br \/>\u8981\u8ba1\u7b97\u957f\u65b9\u5f62\u7684\u9762\u79ef\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528\u7b80\u5355\u7684\u516c\u5f0f\uff1a\u9762\u79ef = \u957f \u00d7 \u5bbd\u3002\u5728Python\u4e2d\uff0c\u60a8\u53ea\u9700\u5b9a\u4e49\u4e24\u4e2a\u53d8\u91cf\u6765\u5b58\u50a8\u957f\u548c\u5bbd\uff0c\u7136\u540e\u8fdb\u884c\u76f8\u4e58\u3002\u793a\u4f8b\u4ee3\u7801\u5982\u4e0b\uff1a  <\/p>\n<pre><code class=\"language-python\">length = float(input(&quot;\u8bf7\u8f93\u5165\u957f\u65b9\u5f62\u7684\u957f\u5ea6: &quot;))\nwidth = float(input(&quot;\u8bf7\u8f93\u5165\u957f\u65b9\u5f62\u7684\u5bbd\u5ea6: &quot;))\narea = length * width\nprint(&quot;\u957f\u65b9\u5f62\u7684\u9762\u79ef\u662f:&quot;, area)\n<\/code><\/pre>\n<p><strong>\u5728Python\u4e2d\u5982\u4f55\u5904\u7406\u7528\u6237\u8f93\u5165\u7684\u957f\u65b9\u5f62\u5c3a\u5bf8\uff1f<\/strong><br \/>\u5904\u7406\u7528\u6237\u8f93\u5165\u65f6\uff0c\u786e\u4fdd\u8f93\u5165\u503c\u662f\u6709\u6548\u7684\u6570\u5b57\u3002\u53ef\u4ee5\u4f7f\u7528<code>try<\/code>\u548c<code>except<\/code>\u8bed\u53e5\u6765\u6355\u83b7\u8f93\u5165\u9519\u8bef\uff0c\u786e\u4fdd\u7528\u6237\u8f93\u5165\u7684\u957f\u5ea6\u548c\u5bbd\u5ea6\u90fd\u662f\u6b63\u6570\u3002\u793a\u4f8b\u4ee3\u7801\u53ef\u4ee5\u5982\u4e0b\u6240\u793a\uff1a  <\/p>\n<pre><code class=\"language-python\">try:\n    length = float(input(&quot;\u8bf7\u8f93\u5165\u957f\u65b9\u5f62\u7684\u957f\u5ea6: &quot;))\n    width = float(input(&quot;\u8bf7\u8f93\u5165\u957f\u65b9\u5f62\u7684\u5bbd\u5ea6: &quot;))\n    if length &lt; 0 or width &lt; 0:\n        raise ValueError(&quot;\u957f\u5ea6\u548c\u5bbd\u5ea6\u5fc5\u987b\u4e3a\u6b63\u6570&quot;)\n    area = length * width\n    print(&quot;\u957f\u65b9\u5f62\u7684\u9762\u79ef\u662f:&quot;, area)\nexcept ValueError as e:\n    print(&quot;\u8f93\u5165\u9519\u8bef:&quot;, e)\n<\/code><\/pre>\n<p><strong>\u5982\u4f55\u5728Python\u4e2d\u521b\u5efa\u4e00\u4e2a\u51fd\u6570\u6765\u8ba1\u7b97\u957f\u65b9\u5f62\u7684\u9762\u79ef\uff1f<\/strong><br \/>\u5c06\u8ba1\u7b97\u9762\u79ef\u7684\u4ee3\u7801\u5c01\u88c5\u5728\u4e00\u4e2a\u51fd\u6570\u4e2d\u53ef\u4ee5\u63d0\u9ad8\u4ee3\u7801\u7684\u590d\u7528\u6027\u3002\u60a8\u53ef\u4ee5\u521b\u5efa\u4e00\u4e2a\u540d\u4e3a<code>calculate_area<\/code>\u7684\u51fd\u6570\uff0c\u63a5\u53d7\u957f\u548c\u5bbd\u4f5c\u4e3a\u53c2\u6570\uff0c\u5e76\u8fd4\u56de\u8ba1\u7b97\u51fa\u7684\u9762\u79ef\u3002\u793a\u4f8b\u4ee3\u7801\u5982\u4e0b\uff1a  <\/p>\n<pre><code class=\"language-python\">def calculate_area(length, width):\n    return length * width\n\nlength = float(input(&quot;\u8bf7\u8f93\u5165\u957f\u65b9\u5f62\u7684\u957f\u5ea6: &quot;))\nwidth = float(input(&quot;\u8bf7\u8f93\u5165\u957f\u65b9\u5f62\u7684\u5bbd\u5ea6: &quot;))\narea = calculate_area(length, width)\nprint(&quot;\u957f\u65b9\u5f62\u7684\u9762\u79ef\u662f:&quot;, area)\n<\/code><\/pre>\n<p>\u8fd9\u4e9b\u95ee\u9898\u548c\u7b54\u6848\u4e0d\u4ec5\u4e3a\u7528\u6237\u63d0\u4f9b\u4e86\u5b9e\u7528\u7684\u4fe1\u606f\uff0c\u8fd8\u80fd\u5e2e\u52a9\u4ed6\u4eec\u66f4\u597d\u5730\u7406\u89e3\u5982\u4f55\u4f7f\u7528Python\u8ba1\u7b97\u957f\u65b9\u5f62\u7684\u9762\u79ef\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u7528Python\u6c42\u957f\u65b9\u5f62\u7684\u9762\u79ef\u975e\u5e38\u7b80\u5355\u3001\u76f4\u63a5\u3002\u4f60\u53ea\u9700\u8981\u77e5\u9053\u957f\u65b9\u5f62\u7684\u957f\u548c\u5bbd\uff0c\u7136\u540e\u5c06\u8fd9\u4e24\u4e2a\u503c\u76f8\u4e58\u5373\u53ef\u3002\u672c\u6587\u5c06\u8be6\u7ec6\u4ecb\u7ecd [&hellip;]","protected":false},"author":3,"featured_media":1115351,"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\/1115340"}],"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=1115340"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1115340\/revisions"}],"predecessor-version":[{"id":1115352,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1115340\/revisions\/1115352"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1115351"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1115340"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1115340"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1115340"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}