{"id":969503,"date":"2024-12-27T05:17:34","date_gmt":"2024-12-26T21:17:34","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/969503.html"},"modified":"2024-12-27T05:17:35","modified_gmt":"2024-12-26T21:17:35","slug":"python%e5%a6%82%e4%bd%95%e7%bc%96%e4%bd%93%e9%87%8d%e6%8c%87%e6%95%b0","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/969503.html","title":{"rendered":"python\u5982\u4f55\u7f16\u4f53\u91cd\u6307\u6570"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24183742\/1d9b1d60-48b4-473e-8e23-037f8bec67a7.webp\" alt=\"python\u5982\u4f55\u7f16\u4f53\u91cd\u6307\u6570\" \/><\/p>\n<p><p> <strong>\u8981\u7f16\u5199\u4e00\u4e2a\u8ba1\u7b97\u4f53\u91cd\u6307\u6570\uff08BMI\uff09\u7684Python\u7a0b\u5e8f\uff0c\u4f60\u9700\u8981\u4e86\u89e3BMI\u7684\u8ba1\u7b97\u516c\u5f0f\u3001\u5982\u4f55\u83b7\u53d6\u7528\u6237\u8f93\u5165\u3001\u4ee5\u53ca\u5982\u4f55\u5728Python\u4e2d\u8fdb\u884c\u57fa\u672c\u7684\u6570\u5b66\u8fd0\u7b97\u3002BMI\u8ba1\u7b97\u516c\u5f0f\u662f\uff1aBMI = \u4f53\u91cd\uff08\u5343\u514b\uff09 \/ \u8eab\u9ad8\uff08\u7c73\uff09^2\u3002\u8fd9\u610f\u5473\u7740\u4f60\u9700\u8981\u83b7\u53d6\u7528\u6237\u7684\u4f53\u91cd\u548c\u8eab\u9ad8\uff0c\u5e76\u4f7f\u7528\u516c\u5f0f\u8fdb\u884c\u8ba1\u7b97\u3002\u6b64\u5916\uff0c\u826f\u597d\u7684\u7a0b\u5e8f\u8fd8\u4f1a\u5305\u542b\u8f93\u5165\u9a8c\u8bc1\u548c\u7ed3\u679c\u7684\u89e3\u91ca\uff0c\u5982\u4f53\u91cd\u8fc7\u8f7b\u3001\u6b63\u5e38\u3001\u8d85\u91cd\u6216\u80a5\u80d6\u7b49\u3002<\/strong>\u5728\u8fd9\u7bc7\u6587\u7ae0\u4e2d\uff0c\u6211\u4eec\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u7f16\u5199\u4e00\u4e2a\u5b8c\u6574\u7684BMI\u8ba1\u7b97\u7a0b\u5e8f\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001BMI\u8ba1\u7b97\u516c\u5f0f<\/p>\n<\/p>\n<p><p>BMI\uff0c\u5373\u4f53\u91cd\u6307\u6570\uff0c\u662f\u4e00\u79cd\u901a\u8fc7\u8eab\u9ad8\u548c\u4f53\u91cd\u6765\u5224\u65ad\u4e00\u4e2a\u4eba\u662f\u5426\u5065\u5eb7\u7684\u6307\u6807\u3002\u5176\u8ba1\u7b97\u516c\u5f0f\u4e3a\uff1a<br \/>[ \\text{BMI} = \\frac{\\text{\u4f53\u91cd(kg)}}{\\text{\u8eab\u9ad8(m)}^2} ]<\/p>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u6211\u4eec\u9700\u8981\u5728Python\u4e2d\u5b9e\u73b0\u8fd9\u4e2a\u516c\u5f0f\u3002Python\u662f\u4e00\u79cd\u5f3a\u5927\u4e14\u6613\u4e8e\u5b66\u4e60\u7684\u7f16\u7a0b\u8bed\u8a00\uff0c\u9002\u5408\u7528\u4e8e\u5feb\u901f\u5f00\u53d1\u8fd9\u79cd\u7b80\u5355\u7684\u8ba1\u7b97\u7a0b\u5e8f\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def calculate_bmi(weight, height):<\/p>\n<p>    bmi = weight \/ (height  2)<\/p>\n<p>    return bmi<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u51fd\u6570\u4e2d\uff0c<code>weight<\/code>\u548c<code>height<\/code>\u662f\u51fd\u6570\u7684\u53c2\u6570\uff0c\u5206\u522b\u4ee3\u8868\u4f53\u91cd\u548c\u8eab\u9ad8\u3002\u6211\u4eec\u901a\u8fc7\u7b80\u5355\u7684\u9664\u6cd5\u548c\u5e42\u8fd0\u7b97\u6765\u8ba1\u7b97BMI\u3002<\/p>\n<\/p>\n<p><p>\u4e8c\u3001\u7528\u6237\u8f93\u5165<\/p>\n<\/p>\n<p><p>\u4e3a\u4e86\u8ba9\u7528\u6237\u8f93\u5165\u4f53\u91cd\u548c\u8eab\u9ad8\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528Python\u7684\u5185\u7f6e\u51fd\u6570<code>input()<\/code>\u3002\u7136\u800c\uff0c<code>input()<\/code>\u51fd\u6570\u63a5\u6536\u7684\u8f93\u5165\u662f\u5b57\u7b26\u4e32\u7c7b\u578b\uff0c\u6211\u4eec\u9700\u8981\u5c06\u5176\u8f6c\u6362\u4e3a\u6d6e\u70b9\u6570\uff0c\u4ee5\u4fbf\u8fdb\u884c\u6570\u5b66\u8fd0\u7b97\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">weight = float(input(&quot;\u8bf7\u8f93\u5165\u60a8\u7684\u4f53\u91cd\uff08\u5343\u514b\uff09\uff1a&quot;))<\/p>\n<p>height = float(input(&quot;\u8bf7\u8f93\u5165\u60a8\u7684\u8eab\u9ad8\uff08\u7c73\uff09\uff1a&quot;))<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u91cc\uff0c\u6211\u4eec\u4f7f\u7528<code>float()<\/code>\u51fd\u6570\u5c06\u8f93\u5165\u7684\u5b57\u7b26\u4e32\u8f6c\u6362\u4e3a\u6d6e\u70b9\u6570\uff0c\u8fd9\u6837\u624d\u80fd\u8fdb\u884c\u540e\u7eed\u7684\u6570\u5b66\u8ba1\u7b97\u3002<\/p>\n<\/p>\n<p><p>\u4e09\u3001\u8f93\u5165\u9a8c\u8bc1<\/p>\n<\/p>\n<p><p>\u5728\u83b7\u53d6\u7528\u6237\u8f93\u5165\u65f6\uff0c\u53ef\u80fd\u4f1a\u51fa\u73b0\u7528\u6237\u8f93\u5165\u975e\u6570\u5b57\u5b57\u7b26\u7684\u60c5\u51b5\uff0c\u4e3a\u4e86\u8ba9\u7a0b\u5e8f\u66f4\u5065\u58ee\uff0c\u6211\u4eec\u9700\u8981\u8fdb\u884c\u8f93\u5165\u9a8c\u8bc1\u3002\u53ef\u4ee5\u4f7f\u7528\u5f02\u5e38\u5904\u7406\u6765\u6355\u83b7\u8f93\u5165\u9519\u8bef\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">try:<\/p>\n<p>    weight = float(input(&quot;\u8bf7\u8f93\u5165\u60a8\u7684\u4f53\u91cd\uff08\u5343\u514b\uff09\uff1a&quot;))<\/p>\n<p>    height = float(input(&quot;\u8bf7\u8f93\u5165\u60a8\u7684\u8eab\u9ad8\uff08\u7c73\uff09\uff1a&quot;))<\/p>\n<p>except ValueError:<\/p>\n<p>    print(&quot;\u8bf7\u8f93\u5165\u6709\u6548\u7684\u6570\u5b57\u3002&quot;)<\/p>\n<p>    exit()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u901a\u8fc7\u8fd9\u79cd\u65b9\u5f0f\uff0c\u6211\u4eec\u53ef\u4ee5\u786e\u4fdd\u7a0b\u5e8f\u4e0d\u4f1a\u56e0\u4e3a\u65e0\u6548\u8f93\u5165\u800c\u5d29\u6e83\u3002<\/p>\n<\/p>\n<p><p>\u56db\u3001BMI\u7ed3\u679c\u89e3\u91ca<\/p>\n<\/p>\n<p><p>\u6839\u636e\u4e16\u754c\u536b\u751f\u7ec4\u7ec7\uff08WHO\uff09\u7684\u6807\u51c6\uff0cBMI\u7684\u7ed3\u679c\u53ef\u4ee5\u5206\u4e3a\u4ee5\u4e0b\u51e0\u7c7b\uff1a<\/p>\n<\/p>\n<ul>\n<li>BMI &lt; 18.5\uff1a\u4f53\u91cd\u8fc7\u8f7b<\/li>\n<li>18.5 \u2264 BMI &lt; 24.9\uff1a\u6b63\u5e38\u4f53\u91cd<\/li>\n<li>25 \u2264 BMI &lt; 29.9\uff1a\u8d85\u91cd<\/li>\n<li>BMI \u2265 30\uff1a\u80a5\u80d6<\/li>\n<\/ul>\n<p><p>\u6211\u4eec\u53ef\u4ee5\u5728\u7a0b\u5e8f\u4e2d\u6dfb\u52a0\u4e00\u4e2a\u51fd\u6570\uff0c\u6839\u636e\u8ba1\u7b97\u7684BMI\u503c\u8fd4\u56de\u76f8\u5e94\u7684\u5065\u5eb7\u5efa\u8bae\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def interpret_bmi(bmi):<\/p>\n<p>    if bmi &lt; 18.5:<\/p>\n<p>        return &quot;\u4f53\u91cd\u8fc7\u8f7b&quot;<\/p>\n<p>    elif 18.5 &lt;= bmi &lt; 24.9:<\/p>\n<p>        return &quot;\u6b63\u5e38\u4f53\u91cd&quot;<\/p>\n<p>    elif 25 &lt;= bmi &lt; 29.9:<\/p>\n<p>        return &quot;\u8d85\u91cd&quot;<\/p>\n<p>    else:<\/p>\n<p>        return &quot;\u80a5\u80d6&quot;<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4e94\u3001\u5b8c\u6574\u7a0b\u5e8f\u5b9e\u73b0<\/p>\n<\/p>\n<p><p>\u5c06\u4e0a\u8ff0\u6240\u6709\u90e8\u5206\u6574\u5408\u5728\u4e00\u8d77\uff0c\u6211\u4eec\u53ef\u4ee5\u5f97\u5230\u4e00\u4e2a\u5b8c\u6574\u7684BMI\u8ba1\u7b97\u7a0b\u5e8f\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def calculate_bmi(weight, height):<\/p>\n<p>    bmi = weight \/ (height  2)<\/p>\n<p>    return bmi<\/p>\n<p>def interpret_bmi(bmi):<\/p>\n<p>    if bmi &lt; 18.5:<\/p>\n<p>        return &quot;\u4f53\u91cd\u8fc7\u8f7b&quot;<\/p>\n<p>    elif 18.5 &lt;= bmi &lt; 24.9:<\/p>\n<p>        return &quot;\u6b63\u5e38\u4f53\u91cd&quot;<\/p>\n<p>    elif 25 &lt;= bmi &lt; 29.9:<\/p>\n<p>        return &quot;\u8d85\u91cd&quot;<\/p>\n<p>    else:<\/p>\n<p>        return &quot;\u80a5\u80d6&quot;<\/p>\n<p>def m<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>n():<\/p>\n<p>    try:<\/p>\n<p>        weight = float(input(&quot;\u8bf7\u8f93\u5165\u60a8\u7684\u4f53\u91cd\uff08\u5343\u514b\uff09\uff1a&quot;))<\/p>\n<p>        height = float(input(&quot;\u8bf7\u8f93\u5165\u60a8\u7684\u8eab\u9ad8\uff08\u7c73\uff09\uff1a&quot;))<\/p>\n<p>    except ValueError:<\/p>\n<p>        print(&quot;\u8bf7\u8f93\u5165\u6709\u6548\u7684\u6570\u5b57\u3002&quot;)<\/p>\n<p>        return<\/p>\n<p>    bmi = calculate_bmi(weight, height)<\/p>\n<p>    result = interpret_bmi(bmi)<\/p>\n<p>    print(f&quot;\u60a8\u7684BMI\u662f: {bmi:.2f}&quot;)<\/p>\n<p>    print(f&quot;\u5065\u5eb7\u72b6\u6001: {result}&quot;)<\/p>\n<p>if __name__ == &quot;__main__&quot;:<\/p>\n<p>    main()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u516d\u3001\u6269\u5c55\u529f\u80fd<\/p>\n<\/p>\n<p><p>\u4e3a\u4e86\u8fdb\u4e00\u6b65\u589e\u5f3a\u7a0b\u5e8f\u7684\u5b9e\u7528\u6027\u548c\u7528\u6237\u4f53\u9a8c\uff0c\u6211\u4eec\u53ef\u4ee5\u8003\u8651\u6dfb\u52a0\u4ee5\u4e0b\u529f\u80fd\uff1a<\/p>\n<\/p>\n<ol>\n<li><strong>\u5355\u4f4d\u8f6c\u6362<\/strong>\uff1a\u652f\u6301\u7528\u6237\u8f93\u5165\u82f1\u5236\u5355\u4f4d\uff08\u78c5\u548c\u82f1\u5bf8\uff09\uff0c\u5e76\u5728\u7a0b\u5e8f\u4e2d\u8fdb\u884c\u8f6c\u6362\u3002<\/li>\n<\/ol>\n<p><pre><code class=\"language-python\">def pounds_and_inches_to_kg_and_m(pounds, inches):<\/p>\n<p>    kg = pounds * 0.453592<\/p>\n<p>    meters = inches * 0.0254<\/p>\n<p>    return kg, meters<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li>\n<p><strong>GUI\u754c\u9762<\/strong>\uff1a\u4f7f\u7528Tkinter\u7b49GUI\u5e93\u521b\u5efa\u56fe\u5f62\u5316\u7528\u6237\u754c\u9762\uff0c\u4f7f\u7a0b\u5e8f\u66f4\u52a0\u53cb\u597d\u6613\u7528\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5386\u53f2\u8bb0\u5f55<\/strong>\uff1a\u8bb0\u5f55\u7528\u6237\u7684BMI\u8ba1\u7b97\u5386\u53f2\uff0c\u4ee5\u4fbf\u7528\u6237\u80fd\u591f\u8ddf\u8e2a\u81ea\u5df1\u7684\u5065\u5eb7\u72b6\u51b5\u53d8\u5316\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5efa\u8bae\u4e0e\u6307\u5bfc<\/strong>\uff1a\u6839\u636e\u7528\u6237\u7684BMI\u7ed3\u679c\uff0c\u63d0\u4f9b\u996e\u98df\u548c\u8fd0\u52a8\u5efa\u8bae\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e03\u3001\u7a0b\u5e8f\u7684\u6d4b\u8bd5<\/p>\n<\/p>\n<p><p>\u5728\u7f16\u5199\u7a0b\u5e8f\u540e\uff0c\u8fdb\u884c\u5145\u5206\u7684\u6d4b\u8bd5\u662f\u786e\u4fdd\u7a0b\u5e8f\u6b63\u786e\u6027\u7684\u91cd\u8981\u6b65\u9aa4\u3002\u6211\u4eec\u9700\u8981\u6d4b\u8bd5\u5404\u79cd\u53ef\u80fd\u7684\u8f93\u5165\u60c5\u5f62\uff0c\u5305\u62ec\u6b63\u5e38\u8f93\u5165\u3001\u8fb9\u754c\u503c\u3001\u4ee5\u53ca\u5f02\u5e38\u8f93\u5165\u3002\u901a\u8fc7\u8fd9\u4e9b\u6d4b\u8bd5\uff0c\u6211\u4eec\u53ef\u4ee5\u4fdd\u8bc1\u7a0b\u5e8f\u5728\u5404\u79cd\u60c5\u51b5\u4e0b\u90fd\u80fd\u6b63\u5e38\u8fd0\u884c\u3002<\/p>\n<\/p>\n<p><p>\u516b\u3001\u7ed3\u8bed<\/p>\n<\/p>\n<p><p>\u7f16\u5199\u4e00\u4e2aBMI\u8ba1\u7b97\u7a0b\u5e8f\u4e0d\u4ec5\u662f\u4e00\u4e2a\u5f88\u597d\u7684\u7f16\u7a0b\u7ec3\u4e60\uff0c\u4e5f\u80fd\u5e2e\u52a9\u6211\u4eec\u5728\u65e5\u5e38\u751f\u6d3b\u4e2d\u66f4\u597d\u5730\u5173\u6ce8\u81ea\u5df1\u7684\u5065\u5eb7\u3002\u901a\u8fc7\u8fd9\u7bc7\u6587\u7ae0\uff0c\u6211\u4eec\u4e86\u89e3\u4e86\u5982\u4f55\u4f7f\u7528Python\u8fdb\u884c\u57fa\u672c\u7684\u6570\u5b66\u8fd0\u7b97\u3001\u83b7\u53d6\u7528\u6237\u8f93\u5165\u3001\u9a8c\u8bc1\u8f93\u5165\u7684\u6709\u6548\u6027\u3001\u4ee5\u53ca\u6839\u636e\u8ba1\u7b97\u7ed3\u679c\u7ed9\u51fa\u5065\u5eb7\u5efa\u8bae\u3002\u968f\u7740\u6280\u672f\u7684\u53d1\u5c55\uff0c\u6211\u4eec\u53ef\u4ee5\u4e0d\u65ad\u6269\u5c55\u7a0b\u5e8f\u7684\u529f\u80fd\uff0c\u4f7f\u5176\u66f4\u52a0\u5b8c\u5584\u548c\u5b9e\u7528\u3002\u65e0\u8bba\u662f\u7f16\u7a0b\u65b0\u624b\u8fd8\u662f\u6709\u7ecf\u9a8c\u7684\u5f00\u53d1\u8005\uff0c\u901a\u8fc7\u8fd9\u6837\u4e00\u4e2a\u7b80\u5355\u7684\u9879\u76ee\uff0c\u90fd\u80fd\u8fdb\u4e00\u6b65\u63d0\u9ad8\u81ea\u5df1\u7684\u7f16\u7a0b\u80fd\u529b\u548c\u95ee\u9898\u89e3\u51b3\u80fd\u529b\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u7528Python\u8ba1\u7b97\u4f53\u91cd\u6307\u6570\uff08BMI\uff09\uff1f<\/strong><br \/>\u8981\u8ba1\u7b97\u4f53\u91cd\u6307\u6570\uff08BMI\uff09\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u516c\u5f0f\uff1aBMI = \u4f53\u91cd\uff08\u516c\u65a4\uff09\/\uff08\u8eab\u9ad8\uff08\u7c73\uff09^2\uff09\u3002\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u5b9a\u4e49\u4e00\u4e2a\u51fd\u6570\u6765\u5b9e\u73b0\u8fd9\u4e2a\u8ba1\u7b97\uff0c\u7528\u6237\u8f93\u5165\u4f53\u91cd\u548c\u8eab\u9ad8\uff0c\u7a0b\u5e8f\u5373\u53ef\u8f93\u51faBMI\u503c\u3002<\/p>\n<p><strong>\u8ba1\u7b97BMI\u65f6\u9700\u8981\u6ce8\u610f\u54ea\u4e9b\u56e0\u7d20\uff1f<\/strong><br \/>\u5728\u8ba1\u7b97BMI\u65f6\uff0c\u4f53\u91cd\u5355\u4f4d\u5e94\u4e3a\u516c\u65a4\uff0c\u8eab\u9ad8\u5355\u4f4d\u5e94\u4e3a\u7c73\u3002\u5982\u679c\u6570\u636e\u8f93\u5165\u4e0d\u7b26\u5408\u8fd9\u4e9b\u5355\u4f4d\uff0c\u8ba1\u7b97\u7ed3\u679c\u53ef\u80fd\u4e0d\u51c6\u786e\u3002\u8fd8\u9700\u6ce8\u610f\uff0cBMI\u53ea\u662f\u4e00\u4e2a\u521d\u6b65\u7684\u5065\u5eb7\u6307\u6807\uff0c\u5e76\u4e0d\u80fd\u5b8c\u5168\u53cd\u6620\u4e2a\u4eba\u7684\u5065\u5eb7\u72b6\u51b5\u3002<\/p>\n<p><strong>\u5982\u4f55\u5728Python\u4e2d\u5c06BMI\u5206\u7c7b\uff1f<\/strong><br \/>\u5728\u8ba1\u7b97\u51faBMI\u503c\u540e\uff0c\u53ef\u4ee5\u6839\u636e\u6807\u51c6\u7684BMI\u5206\u7c7b\u8fdb\u884c\u5224\u65ad\uff1a  <\/p>\n<ul>\n<li>BMI &lt; 18.5\uff1a\u4f53\u91cd\u8fc7\u8f7b  <\/li>\n<li>18.5 \u2264 BMI &lt; 24.9\uff1a\u6b63\u5e38\u8303\u56f4  <\/li>\n<li>25 \u2264 BMI &lt; 29.9\uff1a\u8d85\u91cd  <\/li>\n<li>BMI \u2265 30\uff1a\u80a5\u80d6<br \/>\u53ef\u4ee5\u5728Python\u7a0b\u5e8f\u4e2d\u52a0\u5165\u6761\u4ef6\u8bed\u53e5\uff0c\u6839\u636e\u8ba1\u7b97\u51fa\u7684BMI\u503c\u8f93\u51fa\u76f8\u5e94\u7684\u5065\u5eb7\u5206\u7c7b\u4fe1\u606f\u3002<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"\u8981\u7f16\u5199\u4e00\u4e2a\u8ba1\u7b97\u4f53\u91cd\u6307\u6570\uff08BMI\uff09\u7684Python\u7a0b\u5e8f\uff0c\u4f60\u9700\u8981\u4e86\u89e3BMI\u7684\u8ba1\u7b97\u516c\u5f0f\u3001\u5982\u4f55\u83b7\u53d6\u7528\u6237\u8f93\u5165\u3001\u4ee5\u53ca\u5982\u4f55\u5728P [&hellip;]","protected":false},"author":3,"featured_media":969511,"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\/969503"}],"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=969503"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/969503\/revisions"}],"predecessor-version":[{"id":969512,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/969503\/revisions\/969512"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/969511"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=969503"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=969503"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=969503"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}