{"id":1094811,"date":"2025-01-08T14:44:46","date_gmt":"2025-01-08T06:44:46","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1094811.html"},"modified":"2025-01-08T14:44:48","modified_gmt":"2025-01-08T06:44:48","slug":"python%e5%a6%82%e4%bd%95%e5%ae%9e%e7%8e%b0%e8%be%93%e5%85%a5%e4%b8%80%e4%b8%aa%e5%ae%9e%e6%95%b0-2","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1094811.html","title":{"rendered":"python\u5982\u4f55\u5b9e\u73b0\u8f93\u5165\u4e00\u4e2a\u5b9e\u6570"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24210745\/c8edb062-4f10-4996-bd8c-961ab2c8f78b.webp\" alt=\"python\u5982\u4f55\u5b9e\u73b0\u8f93\u5165\u4e00\u4e2a\u5b9e\u6570\" \/><\/p>\n<p><p> <strong>Python\u5b9e\u73b0\u8f93\u5165\u4e00\u4e2a\u5b9e\u6570\u7684\u65b9\u6cd5\u5305\u62ec\u4f7f\u7528input()\u51fd\u6570\u3001\u4f7f\u7528try-except\u6355\u83b7\u5f02\u5e38\u3001\u4f7f\u7528float()\u51fd\u6570\u8fdb\u884c\u7c7b\u578b\u8f6c\u6362<\/strong>\u3002\u8fd9\u4e9b\u65b9\u6cd5\u53ef\u4ee5\u786e\u4fdd\u7528\u6237\u8f93\u5165\u7684\u662f\u4e00\u4e2a\u5b9e\u6570\uff0c\u5e76\u4e14\u5728\u8f93\u5165\u9519\u8bef\u65f6\u80fd\u591f\u8fdb\u884c\u6709\u6548\u7684\u9519\u8bef\u5904\u7406\u3002\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u8fd9\u4e9b\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u4f7f\u7528 input() \u51fd\u6570\u83b7\u53d6\u7528\u6237\u8f93\u5165<\/h3>\n<\/p>\n<p><p>Python\u4e2d\u7684<code>input()<\/code>\u51fd\u6570\u7528\u4e8e\u83b7\u53d6\u7528\u6237\u8f93\u5165\u3002\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c<code>input()<\/code>\u51fd\u6570\u8fd4\u56de\u4e00\u4e2a\u5b57\u7b26\u4e32\uff0c\u56e0\u6b64\u6211\u4eec\u9700\u8981\u5c06\u5176\u8f6c\u6362\u4e3a\u6d6e\u70b9\u6570\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">user_input = input(&quot;\u8bf7\u8f93\u5165\u4e00\u4e2a\u5b9e\u6570\uff1a&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e8c\u3001\u4f7f\u7528 float() \u51fd\u6570\u8fdb\u884c\u7c7b\u578b\u8f6c\u6362<\/h3>\n<\/p>\n<p><p>\u5c06\u7528\u6237\u8f93\u5165\u7684\u5b57\u7b26\u4e32\u8f6c\u6362\u4e3a\u6d6e\u70b9\u6570\uff0c\u53ef\u4ee5\u4f7f\u7528<code>float()<\/code>\u51fd\u6570\u3002\u5982\u679c\u7528\u6237\u8f93\u5165\u7684\u4e0d\u662f\u6709\u6548\u7684\u5b9e\u6570\uff0c<code>float()<\/code>\u51fd\u6570\u5c06\u629b\u51fa\u4e00\u4e2a<code>ValueError<\/code>\u5f02\u5e38\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">try:<\/p>\n<p>    real_number = float(user_input)<\/p>\n<p>    print(f&quot;\u60a8\u8f93\u5165\u7684\u5b9e\u6570\u662f\uff1a{real_number}&quot;)<\/p>\n<p>except ValueError:<\/p>\n<p>    print(&quot;\u8f93\u5165\u65e0\u6548\uff0c\u8bf7\u8f93\u5165\u4e00\u4e2a\u6709\u6548\u7684\u5b9e\u6570\u3002&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e09\u3001\u4f7f\u7528 try-except \u6355\u83b7\u5f02\u5e38<\/h3>\n<\/p>\n<p><p>\u5728\u5c06\u7528\u6237\u8f93\u5165\u8f6c\u6362\u4e3a\u6d6e\u70b9\u6570\u65f6\uff0c\u4f7f\u7528<code>try-except<\/code>\u8bed\u53e5\u6355\u83b7\u53ef\u80fd\u7684\u5f02\u5e38\uff0c\u5e76\u8fdb\u884c\u76f8\u5e94\u7684\u9519\u8bef\u5904\u7406\u3002\u8fd9\u6837\u53ef\u4ee5\u786e\u4fdd\u7a0b\u5e8f\u5728\u7528\u6237\u8f93\u5165\u65e0\u6548\u65f6\u4e0d\u4f1a\u5d29\u6e83\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def get_real_number():<\/p>\n<p>    while True:<\/p>\n<p>        user_input = input(&quot;\u8bf7\u8f93\u5165\u4e00\u4e2a\u5b9e\u6570\uff1a&quot;)<\/p>\n<p>        try:<\/p>\n<p>            real_number = float(user_input)<\/p>\n<p>            return real_number<\/p>\n<p>        except ValueError:<\/p>\n<p>            print(&quot;\u8f93\u5165\u65e0\u6548\uff0c\u8bf7\u8f93\u5165\u4e00\u4e2a\u6709\u6548\u7684\u5b9e\u6570\u3002&quot;)<\/p>\n<p>real_number = get_real_number()<\/p>\n<p>print(f&quot;\u60a8\u8f93\u5165\u7684\u5b9e\u6570\u662f\uff1a{real_number}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u56db\u3001\u5b9e\u73b0\u8f93\u5165\u5b9e\u6570\u7684\u5b8c\u6574\u4ee3\u7801\u793a\u4f8b<\/h3>\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>    real_number = get_real_number()<\/p>\n<p>    print(f&quot;\u60a8\u8f93\u5165\u7684\u5b9e\u6570\u662f\uff1a{real_number}&quot;)<\/p>\n<p>def get_real_number():<\/p>\n<p>    while True:<\/p>\n<p>        user_input = input(&quot;\u8bf7\u8f93\u5165\u4e00\u4e2a\u5b9e\u6570\uff1a&quot;)<\/p>\n<p>        try:<\/p>\n<p>            real_number = float(user_input)<\/p>\n<p>            return real_number<\/p>\n<p>        except ValueError:<\/p>\n<p>            print(&quot;\u8f93\u5165\u65e0\u6548\uff0c\u8bf7\u8f93\u5165\u4e00\u4e2a\u6709\u6548\u7684\u5b9e\u6570\u3002&quot;)<\/p>\n<p>if __name__ == &quot;__main__&quot;:<\/p>\n<p>    main()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e94\u3001\u8f93\u5165\u5b9e\u6570\u7684\u5e94\u7528\u573a\u666f<\/h3>\n<\/p>\n<p><h4>1\u3001\u6570\u5b66\u8ba1\u7b97<\/h4>\n<\/p>\n<p><p>\u5728\u6570\u5b66\u8ba1\u7b97\u4e2d\uff0c\u5b9e\u6570\u8f93\u5165\u975e\u5e38\u5e38\u89c1\u3002\u4f8b\u5982\uff0c\u8ba1\u7b97\u5706\u7684\u9762\u79ef\u9700\u8981\u7528\u6237\u8f93\u5165\u534a\u5f84\uff0c\u800c\u534a\u5f84\u901a\u5e38\u662f\u4e00\u4e2a\u5b9e\u6570\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def calculate_circle_area(radius):<\/p>\n<p>    import math<\/p>\n<p>    return math.pi * radius * radius<\/p>\n<p>def main():<\/p>\n<p>    radius = get_real_number()<\/p>\n<p>    area = calculate_circle_area(radius)<\/p>\n<p>    print(f&quot;\u534a\u5f84\u4e3a {radius} \u7684\u5706\u7684\u9762\u79ef\u662f\uff1a{area}&quot;)<\/p>\n<p>if __name__ == &quot;__main__&quot;:<\/p>\n<p>    main()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2\u3001\u6570\u636e\u5206\u6790<\/h4>\n<\/p>\n<p><p>\u5728\u6570\u636e\u5206\u6790\u4e2d\uff0c\u5b9e\u6570\u8f93\u5165\u7528\u4e8e\u5904\u7406\u5404\u79cd\u7edf\u8ba1\u6570\u636e\u3002\u4f8b\u5982\uff0c\u8ba1\u7b97\u4e00\u7ec4\u6570\u636e\u7684\u5e73\u5747\u503c\u3001\u65b9\u5dee\u7b49\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def calculate_average(numbers):<\/p>\n<p>    return sum(numbers) \/ len(numbers)<\/p>\n<p>def main():<\/p>\n<p>    numbers = []<\/p>\n<p>    for i in range(5):<\/p>\n<p>        number = get_real_number()<\/p>\n<p>        numbers.append(number)<\/p>\n<p>    average = calculate_average(numbers)<\/p>\n<p>    print(f&quot;\u8f93\u5165\u7684\u6570\u5b57\u7684\u5e73\u5747\u503c\u662f\uff1a{average}&quot;)<\/p>\n<p>if __name__ == &quot;__main__&quot;:<\/p>\n<p>    main()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>3\u3001\u7269\u7406\u6a21\u62df<\/h4>\n<\/p>\n<p><p>\u5728\u7269\u7406\u6a21\u62df\u4e2d\uff0c\u5b9e\u6570\u8f93\u5165\u7528\u4e8e\u6a21\u62df\u5404\u79cd\u7269\u7406\u73b0\u8c61\u3002\u4f8b\u5982\uff0c\u8ba1\u7b97\u81ea\u7531\u843d\u4f53\u7684\u901f\u5ea6\u548c\u4f4d\u79fb\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def calculate_free_fall_velocity(time, gravity=9.81):<\/p>\n<p>    return gravity * time<\/p>\n<p>def main():<\/p>\n<p>    time = get_real_number()<\/p>\n<p>    velocity = calculate_free_fall_velocity(time)<\/p>\n<p>    print(f&quot;\u81ea\u7531\u843d\u4f53\u7ecf\u8fc7 {time} \u79d2\u540e\u7684\u901f\u5ea6\u662f\uff1a{velocity} m\/s&quot;)<\/p>\n<p>if __name__ == &quot;__main__&quot;:<\/p>\n<p>    main()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u516d\u3001\u7528\u6237\u8f93\u5165\u5b9e\u6570\u7684\u6ce8\u610f\u4e8b\u9879<\/h3>\n<\/p>\n<p><h4>1\u3001\u8f93\u5165\u63d0\u793a\u4fe1\u606f<\/h4>\n<\/p>\n<p><p>\u63d0\u4f9b\u6e05\u6670\u7684\u8f93\u5165\u63d0\u793a\u4fe1\u606f\uff0c\u53ef\u4ee5\u5e2e\u52a9\u7528\u6237\u7406\u89e3\u9700\u8981\u8f93\u5165\u7684\u6570\u636e\u7c7b\u578b\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">user_input = input(&quot;\u8bf7\u8f93\u5165\u4e00\u4e2a\u5b9e\u6570\uff08\u4f8b\u59823.14\uff09\uff1a&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2\u3001\u8f93\u5165\u9519\u8bef\u5904\u7406<\/h4>\n<\/p>\n<p><p>\u5728\u7528\u6237\u8f93\u5165\u65e0\u6548\u6570\u636e\u65f6\uff0c\u63d0\u4f9b\u53cb\u597d\u7684\u9519\u8bef\u63d0\u793a\u4fe1\u606f\uff0c\u5e76\u5141\u8bb8\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\u5b9e\u6570\uff1a&quot;)<\/p>\n<p>    try:<\/p>\n<p>        real_number = float(user_input)<\/p>\n<p>        break<\/p>\n<p>    except ValueError:<\/p>\n<p>        print(&quot;\u8f93\u5165\u65e0\u6548\uff0c\u8bf7\u8f93\u5165\u4e00\u4e2a\u6709\u6548\u7684\u5b9e\u6570\u3002&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>3\u3001\u4f7f\u7528\u51fd\u6570\u5c01\u88c5<\/h4>\n<\/p>\n<p><p>\u5c06\u8f93\u5165\u5b9e\u6570\u7684\u903b\u8f91\u5c01\u88c5\u5728\u51fd\u6570\u4e2d\uff0c\u53ef\u4ee5\u63d0\u9ad8\u4ee3\u7801\u7684\u53ef\u8bfb\u6027\u548c\u590d\u7528\u6027\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def get_real_number():<\/p>\n<p>    while True:<\/p>\n<p>        user_input = input(&quot;\u8bf7\u8f93\u5165\u4e00\u4e2a\u5b9e\u6570\uff1a&quot;)<\/p>\n<p>        try:<\/p>\n<p>            real_number = float(user_input)<\/p>\n<p>            return real_number<\/p>\n<p>        except ValueError:<\/p>\n<p>            print(&quot;\u8f93\u5165\u65e0\u6548\uff0c\u8bf7\u8f93\u5165\u4e00\u4e2a\u6709\u6548\u7684\u5b9e\u6570\u3002&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e03\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u901a\u8fc7\u4ee5\u4e0a\u5185\u5bb9\uff0c\u6211\u4eec\u8be6\u7ec6\u4ecb\u7ecd\u4e86\u5728Python\u4e2d\u5982\u4f55\u5b9e\u73b0\u8f93\u5165\u4e00\u4e2a\u5b9e\u6570\u7684\u65b9\u6cd5\u3002<strong>\u4e3b\u8981\u5305\u62ec\u4f7f\u7528input()\u51fd\u6570\u83b7\u53d6\u7528\u6237\u8f93\u5165\u3001\u4f7f\u7528float()\u51fd\u6570\u8fdb\u884c\u7c7b\u578b\u8f6c\u6362\u3001\u4f7f\u7528try-except\u6355\u83b7\u5f02\u5e38<\/strong>\u7b49\u65b9\u6cd5\u3002<strong>\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u5b9e\u6570\u8f93\u5165\u5e7f\u6cdb\u5e94\u7528\u4e8e\u6570\u5b66\u8ba1\u7b97\u3001\u6570\u636e\u5206\u6790\u3001\u7269\u7406\u6a21\u62df\u7b49\u9886\u57df<\/strong>\u3002\u540c\u65f6\uff0c\u6211\u4eec\u8fd8\u4ecb\u7ecd\u4e86\u7528\u6237\u8f93\u5165\u5b9e\u6570\u7684\u6ce8\u610f\u4e8b\u9879\uff0c\u5982\u8f93\u5165\u63d0\u793a\u4fe1\u606f\u3001\u8f93\u5165\u9519\u8bef\u5904\u7406\u3001\u4f7f\u7528\u51fd\u6570\u5c01\u88c5\u7b49\u3002\u901a\u8fc7\u8fd9\u4e9b\u65b9\u6cd5\u548c\u6280\u5de7\uff0c\u53ef\u4ee5\u6709\u6548\u5730\u5b9e\u73b0\u7528\u6237\u8f93\u5165\u5b9e\u6570\uff0c\u63d0\u9ad8\u7a0b\u5e8f\u7684\u5065\u58ee\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\u8bfb\u53d6\u7528\u6237\u8f93\u5165\u7684\u5b9e\u6570\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u5185\u7f6e\u7684<code>input()<\/code>\u51fd\u6570\u6765\u83b7\u53d6\u7528\u6237\u8f93\u5165\u3002\u8981\u786e\u4fdd\u8f93\u5165\u7684\u662f\u5b9e\u6570\uff0c\u53ef\u4ee5\u5c06\u8f93\u5165\u7684\u5b57\u7b26\u4e32\u8f6c\u6362\u4e3a\u6d6e\u70b9\u6570\u3002\u4e0b\u9762\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u793a\u4f8b\u4ee3\u7801\uff1a  <\/p>\n<pre><code class=\"language-python\">user_input = input(&quot;\u8bf7\u8f93\u5165\u4e00\u4e2a\u5b9e\u6570: &quot;)\ntry:\n    real_number = float(user_input)\n    print(f&quot;\u60a8\u8f93\u5165\u7684\u5b9e\u6570\u662f: {real_number}&quot;)\nexcept ValueError:\n    print(&quot;\u8f93\u5165\u65e0\u6548\uff0c\u8bf7\u786e\u4fdd\u8f93\u5165\u7684\u662f\u4e00\u4e2a\u5b9e\u6570\u3002&quot;)\n<\/code><\/pre>\n<p>\u6b64\u4ee3\u7801\u9996\u5148\u63d0\u793a\u7528\u6237\u8f93\u5165\u4e00\u4e2a\u5b9e\u6570\uff0c\u7136\u540e\u901a\u8fc7<code>float()<\/code>\u51fd\u6570\u8fdb\u884c\u8f6c\u6362\u5e76\u5904\u7406\u53ef\u80fd\u7684\u9519\u8bef\u3002<\/p>\n<p><strong>\u5982\u4f55\u9a8c\u8bc1\u7528\u6237\u8f93\u5165\u7684\u5b9e\u6570\u662f\u5426\u6709\u6548\uff1f<\/strong><br \/>\u5728\u83b7\u53d6\u7528\u6237\u8f93\u5165\u540e\uff0c\u4f7f\u7528<code>try<\/code>\u548c<code>except<\/code>\u8bed\u53e5\u662f\u4e00\u4e2a\u6709\u6548\u7684\u65b9\u5f0f\u6765\u9a8c\u8bc1\u8f93\u5165\u3002\u901a\u8fc7\u6355\u83b7<code>ValueError<\/code>\u5f02\u5e38\uff0c\u53ef\u4ee5\u5224\u65ad\u8f93\u5165\u662f\u5426\u4e3a\u6709\u6548\u7684\u5b9e\u6570\u3002\u5982\u679c\u7528\u6237\u8f93\u5165\u4e86\u975e\u6570\u5b57\u5b57\u7b26\uff0c\u7a0b\u5e8f\u80fd\u591f\u63d0\u793a\u7528\u6237\u91cd\u65b0\u8f93\u5165\u3002<\/p>\n<p><strong>\u662f\u5426\u53ef\u4ee5\u9650\u5236\u7528\u6237\u8f93\u5165\u7684\u5b9e\u6570\u8303\u56f4\uff1f<\/strong><br \/>\u53ef\u4ee5\u5728\u8f93\u5165\u540e\u6dfb\u52a0\u4e00\u4e2a\u6761\u4ef6\u5224\u65ad\u6765\u9650\u5236\u7528\u6237\u8f93\u5165\u7684\u5b9e\u6570\u8303\u56f4\u3002\u4f8b\u5982\uff0c\u5982\u679c\u5e0c\u671b\u7528\u6237\u8f93\u5165\u7684\u5b9e\u6570\u57280\u5230100\u4e4b\u95f4\uff0c\u53ef\u4ee5\u4f7f\u7528\u5982\u4e0b\u4ee3\u7801\uff1a  <\/p>\n<pre><code class=\"language-python\">user_input = input(&quot;\u8bf7\u8f93\u5165\u4e00\u4e2a\u5b9e\u6570 (\u8303\u56f4: 0\u5230100): &quot;)\ntry:\n    real_number = float(user_input)\n    if 0 &lt;= real_number &lt;= 100:\n        print(f&quot;\u60a8\u8f93\u5165\u7684\u5b9e\u6570\u662f: {real_number}&quot;)\n    else:\n        print(&quot;\u8f93\u5165\u7684\u5b9e\u6570\u4e0d\u5728\u8303\u56f4\u5185\uff0c\u8bf7\u8f93\u51650\u5230100\u4e4b\u95f4\u7684\u6570\u3002&quot;)\nexcept ValueError:\n    print(&quot;\u8f93\u5165\u65e0\u6548\uff0c\u8bf7\u786e\u4fdd\u8f93\u5165\u7684\u662f\u4e00\u4e2a\u5b9e\u6570\u3002&quot;)\n<\/code><\/pre>\n<p>\u8fd9\u79cd\u65b9\u5f0f\u80fd\u591f\u786e\u4fdd\u7a0b\u5e8f\u4e0d\u4ec5\u83b7\u53d6\u7528\u6237\u7684\u8f93\u5165\uff0c\u8fd8\u80fd\u6709\u6548\u63a7\u5236\u8f93\u5165\u7684\u8303\u56f4\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Python\u5b9e\u73b0\u8f93\u5165\u4e00\u4e2a\u5b9e\u6570\u7684\u65b9\u6cd5\u5305\u62ec\u4f7f\u7528input()\u51fd\u6570\u3001\u4f7f\u7528try-except\u6355\u83b7\u5f02\u5e38\u3001\u4f7f\u7528float [&hellip;]","protected":false},"author":3,"featured_media":1094822,"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\/1094811"}],"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=1094811"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1094811\/revisions"}],"predecessor-version":[{"id":1094825,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1094811\/revisions\/1094825"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1094822"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1094811"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1094811"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1094811"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}