{"id":1142869,"date":"2025-01-08T22:44:33","date_gmt":"2025-01-08T14:44:33","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1142869.html"},"modified":"2025-01-08T22:44:38","modified_gmt":"2025-01-08T14:44:38","slug":"%e5%9c%a8python%e4%b8%ad%e5%a6%82%e4%bd%95%e5%88%a4%e6%96%ad%e4%b8%80%e4%b8%aa%e6%95%b0%e7%9a%84%e6%ad%a3%e8%b4%9f","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1142869.html","title":{"rendered":"\u5728python\u4e2d\u5982\u4f55\u5224\u65ad\u4e00\u4e2a\u6570\u7684\u6b63\u8d1f"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24180751\/ffdb179c-bbce-4bcd-a807-b03525049b4f.webp\" alt=\"\u5728python\u4e2d\u5982\u4f55\u5224\u65ad\u4e00\u4e2a\u6570\u7684\u6b63\u8d1f\" \/><\/p>\n<p><p> <strong>\u5728Python\u4e2d\u5224\u65ad\u4e00\u4e2a\u6570\u7684\u6b63\u8d1f\u975e\u5e38\u7b80\u5355\uff0c\u53ef\u4ee5\u901a\u8fc7\u6bd4\u8f83\u8fd0\u7b97\u7b26\u6765\u5b9e\u73b0\u3002<\/strong> \u5177\u4f53\u6765\u8bf4\uff0c\u53ef\u4ee5\u901a\u8fc7<strong>\u5927\u4e8e0\u3001\u7b49\u4e8e0\u3001\u5c0f\u4e8e0<\/strong>\u4e09\u4e2a\u6761\u4ef6\u6765\u5224\u65ad\u4e00\u4e2a\u6570\u662f\u6b63\u6570\u3001\u96f6\u8fd8\u662f\u8d1f\u6570\u3002 \u4f8b\u5982\uff0c\u4f7f\u7528 if-elif-else \u7ed3\u6784\u53ef\u4ee5\u6709\u6548\u5730\u8fdb\u884c\u8fd9\u6837\u7684\u5224\u65ad\u3002\u4e0b\u9762\u662f\u4e00\u4e2a\u8be6\u7ec6\u7684\u793a\u4f8b\u4ee3\u7801\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def check_number_sign(num):<\/p>\n<p>    if num &gt; 0:<\/p>\n<p>        return &quot;\u6b63\u6570&quot;<\/p>\n<p>    elif num == 0:<\/p>\n<p>        return &quot;\u96f6&quot;<\/p>\n<p>    else:<\/p>\n<p>        return &quot;\u8d1f\u6570&quot;<\/p>\n<h2><strong>\u793a\u4f8b<\/strong><\/h2>\n<p>num = -5<\/p>\n<p>result = check_number_sign(num)<\/p>\n<p>print(f&quot;{num} \u662f {result}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u6bb5\u4ee3\u7801\u4e2d\uff0c\u51fd\u6570 <code>check_number_sign<\/code> \u63a5\u53d7\u4e00\u4e2a\u53c2\u6570 <code>num<\/code>\uff0c\u5e76\u901a\u8fc7\u6761\u4ef6\u5224\u65ad\u6765\u8fd4\u56de\u8be5\u6570\u7684\u6027\u8d28\u3002 <strong>\u5982\u679c\u6570\u5927\u4e8e0\uff0c\u5219\u4e3a\u6b63\u6570\uff1b\u5982\u679c\u7b49\u4e8e0\uff0c\u5219\u4e3a\u96f6\uff1b\u5982\u679c\u5c0f\u4e8e0\uff0c\u5219\u4e3a\u8d1f\u6570<\/strong>\u3002 \u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u5c06\u6df1\u5165\u63a2\u8ba8\u5982\u4f55\u5728\u4e0d\u540c\u573a\u666f\u4e2d\u5e94\u7528\u8fd9\u4e9b\u5224\u65ad\u65b9\u6cd5\uff0c\u5e76\u8ba8\u8bba\u4e00\u4e9b\u53ef\u80fd\u7684\u6269\u5c55\u548c\u4f18\u5316\u3002<\/p>\n<\/p>\n<hr>\n<p><h3>\u4e00\u3001\u57fa\u672c\u5224\u65ad\u65b9\u6cd5<\/h3>\n<\/p>\n<p><h4>1\u3001\u4f7f\u7528 if-elif-else \u7ed3\u6784<\/h4>\n<\/p>\n<p><p>\u6700\u5e38\u89c1\u7684\u5224\u65ad\u65b9\u6cd5\u5c31\u662f\u4f7f\u7528 if-elif-else \u7ed3\u6784\u3002\u8fd9\u79cd\u7ed3\u6784\u6e05\u6670\u76f4\u89c2\uff0c\u9002\u5408\u521d\u5b66\u8005\u7406\u89e3\u548c\u4f7f\u7528\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def check_number_sign(num):<\/p>\n<p>    if num &gt; 0:<\/p>\n<p>        return &quot;\u6b63\u6570&quot;<\/p>\n<p>    elif num == 0:<\/p>\n<p>        return &quot;\u96f6&quot;<\/p>\n<p>    else:<\/p>\n<p>        return &quot;\u8d1f\u6570&quot;<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u9002\u7528\u4e8e\u7edd\u5927\u591a\u6570\u57fa\u672c\u7684\u5e94\u7528\u573a\u666f\uff0c\u4f46\u5728\u67d0\u4e9b\u7279\u6b8a\u60c5\u51b5\u4e0b\uff0c\u53ef\u80fd\u9700\u8981\u66f4\u52a0\u590d\u6742\u7684\u5224\u65ad\u903b\u8f91\u3002<\/p>\n<\/p>\n<p><h4>2\u3001\u4f7f\u7528\u4e09\u5143\u8fd0\u7b97\u7b26<\/h4>\n<\/p>\n<p><p>\u4e09\u5143\u8fd0\u7b97\u7b26\u662f\u4e00\u79cd\u7b80\u6d01\u7684\u8868\u8fbe\u65b9\u5f0f\uff0c\u53ef\u4ee5\u5728\u4e00\u884c\u4ee3\u7801\u4e2d\u5b8c\u6210\u5224\u65ad\u548c\u8d4b\u503c\u64cd\u4f5c\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def check_number_sign(num):<\/p>\n<p>    return &quot;\u6b63\u6570&quot; if num &gt; 0 else (&quot;\u96f6&quot; if num == 0 else &quot;\u8d1f\u6570&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u53ef\u4ee5\u63d0\u9ad8\u4ee3\u7801\u7684\u7b80\u6d01\u6027\uff0c\u4f46\u53ef\u80fd\u4f1a\u964d\u4f4e\u53ef\u8bfb\u6027\uff0c\u5bf9\u4e8e\u590d\u6742\u7684\u5224\u65ad\u903b\u8f91\u4e0d\u592a\u9002\u5408\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u6269\u5c55\u5e94\u7528<\/h3>\n<\/p>\n<p><h4>1\u3001\u5904\u7406\u6d6e\u70b9\u6570<\/h4>\n<\/p>\n<p><p>\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u6211\u4eec\u4e0d\u4ec5\u9700\u8981\u5224\u65ad\u6574\u6570\u7684\u6b63\u8d1f\uff0c\u8fd8\u9700\u8981\u5224\u65ad\u6d6e\u70b9\u6570\u7684\u6b63\u8d1f\u3002 \u6d6e\u70b9\u6570\u7684\u5224\u65ad\u903b\u8f91\u548c\u6574\u6570\u57fa\u672c\u76f8\u540c\uff0c\u53ea\u662f\u5728\u5904\u7406\u8fb9\u754c\u503c\u65f6\u9700\u8981\u7279\u522b\u6ce8\u610f\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def check_float_sign(num):<\/p>\n<p>    if num &gt; 0.0:<\/p>\n<p>        return &quot;\u6b63\u6570&quot;<\/p>\n<p>    elif num == 0.0:<\/p>\n<p>        return &quot;\u96f6&quot;<\/p>\n<p>    else:<\/p>\n<p>        return &quot;\u8d1f\u6570&quot;<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2\u3001\u5904\u7406\u5927\u6570\u636e\u91cf<\/h4>\n<\/p>\n<p><p>\u5728\u5904\u7406\u5927\u6570\u636e\u91cf\u65f6\uff0c\u6211\u4eec\u53ef\u80fd\u9700\u8981\u5bf9\u4e00\u4e2a\u6570\u5217\u4e2d\u7684\u6bcf\u4e2a\u6570\u8fdb\u884c\u5224\u65ad\uff0c\u5e76\u7edf\u8ba1\u6b63\u6570\u3001\u96f6\u548c\u8d1f\u6570\u7684\u4e2a\u6570\u3002\u8fd9\u65f6\u53ef\u4ee5\u4f7f\u7528\u5faa\u73af\u7ed3\u6784\u6765\u5b9e\u73b0\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def count_signs(numbers):<\/p>\n<p>    pos_count = 0<\/p>\n<p>    zero_count = 0<\/p>\n<p>    neg_count = 0<\/p>\n<p>    for num in numbers:<\/p>\n<p>        if num &gt; 0:<\/p>\n<p>            pos_count += 1<\/p>\n<p>        elif num == 0:<\/p>\n<p>            zero_count += 1<\/p>\n<p>        else:<\/p>\n<p>            neg_count += 1<\/p>\n<p>    return pos_count, zero_count, neg_count<\/p>\n<h2><strong>\u793a\u4f8b<\/strong><\/h2>\n<p>numbers = [1, -2, 0, 4.5, -3.2, 0]<\/p>\n<p>pos_count, zero_count, neg_count = count_signs(numbers)<\/p>\n<p>print(f&quot;\u6b63\u6570\u4e2a\u6570: {pos_count}, \u96f6\u4e2a\u6570: {zero_count}, \u8d1f\u6570\u4e2a\u6570: {neg_count}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e09\u3001\u4f18\u5316\u548c\u63d0\u5347<\/h3>\n<\/p>\n<p><h4>1\u3001\u4f7f\u7528 NumPy \u5e93<\/h4>\n<\/p>\n<p><p>\u5728\u5904\u7406\u5927\u91cf\u6570\u636e\u65f6\uff0c\u4f7f\u7528 NumPy \u5e93\u53ef\u4ee5\u663e\u8457\u63d0\u9ad8\u6027\u80fd\u3002 NumPy \u63d0\u4f9b\u4e86\u9ad8\u6548\u7684\u6570\u7ec4\u64cd\u4f5c\u51fd\u6570\uff0c\u53ef\u4ee5\u5feb\u901f\u8fdb\u884c\u6279\u91cf\u5224\u65ad\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import numpy as np<\/p>\n<p>def count_signs_numpy(numbers):<\/p>\n<p>    numbers = np.array(numbers)<\/p>\n<p>    pos_count = np.sum(numbers &gt; 0)<\/p>\n<p>    zero_count = np.sum(numbers == 0)<\/p>\n<p>    neg_count = np.sum(numbers &lt; 0)<\/p>\n<p>    return pos_count, zero_count, neg_count<\/p>\n<h2><strong>\u793a\u4f8b<\/strong><\/h2>\n<p>numbers = [1, -2, 0, 4.5, -3.2, 0]<\/p>\n<p>pos_count, zero_count, neg_count = count_signs_numpy(numbers)<\/p>\n<p>print(f&quot;\u6b63\u6570\u4e2a\u6570: {pos_count}, \u96f6\u4e2a\u6570: {zero_count}, \u8d1f\u6570\u4e2a\u6570: {neg_count}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2\u3001\u5904\u7406\u5f02\u5e38\u60c5\u51b5<\/h4>\n<\/p>\n<p><p>\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u6211\u4eec\u8fd8\u9700\u8981\u5904\u7406\u4e00\u4e9b\u53ef\u80fd\u7684\u5f02\u5e38\u60c5\u51b5\uff0c\u4f8b\u5982\u4f20\u5165\u7684\u53c2\u6570\u4e0d\u662f\u6570\u5b57\u7c7b\u578b\u3002\u8fd9\u65f6\u53ef\u4ee5\u4f7f\u7528\u5f02\u5e38\u5904\u7406\u673a\u5236\u6765\u4fdd\u8bc1\u7a0b\u5e8f\u7684\u5065\u58ee\u6027\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def check_number_sign_<a href=\"https:\/\/docs.pingcode.com\/agile\/agile-at-scale\/what-is-safe\" target=\"_blank\">SAFe<\/a>(num):<\/p>\n<p>    try:<\/p>\n<p>        num = float(num)<\/p>\n<p>        if num &gt; 0:<\/p>\n<p>            return &quot;\u6b63\u6570&quot;<\/p>\n<p>        elif num == 0:<\/p>\n<p>            return &quot;\u96f6&quot;<\/p>\n<p>        else:<\/p>\n<p>            return &quot;\u8d1f\u6570&quot;<\/p>\n<p>    except ValueError:<\/p>\n<p>        return &quot;\u8f93\u5165\u4e0d\u662f\u6709\u6548\u7684\u6570\u5b57&quot;<\/p>\n<h2><strong>\u793a\u4f8b<\/strong><\/h2>\n<p>num = &quot;abc&quot;<\/p>\n<p>result = check_number_sign_safe(num)<\/p>\n<p>print(f&quot;{num} \u662f {result}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u56db\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u5728Python\u4e2d\u5224\u65ad\u4e00\u4e2a\u6570\u7684\u6b63\u8d1f\u662f\u4e00\u4e2a\u57fa\u7840\u800c\u5e38\u89c1\u7684\u64cd\u4f5c\uff0c\u901a\u8fc7\u4f7f\u7528<strong>if-elif-else\u7ed3\u6784\u3001\u4e09\u5143\u8fd0\u7b97\u7b26\u3001\u5faa\u73af\u7ed3\u6784\u4ee5\u53caNumPy\u5e93<\/strong>\u7b49\u65b9\u6cd5\uff0c\u53ef\u4ee5\u7075\u6d3b\u5e94\u5bf9\u4e0d\u540c\u7684\u5e94\u7528\u573a\u666f\u3002\u901a\u8fc7\u5904\u7406\u6d6e\u70b9\u6570\u3001\u4f18\u5316\u5927\u6570\u636e\u91cf\u5904\u7406\u4ee5\u53ca\u5f02\u5e38\u60c5\u51b5\u5904\u7406\uff0c\u53ef\u4ee5\u4f7f\u7a0b\u5e8f\u66f4\u52a0\u5065\u58ee\u548c\u9ad8\u6548\u3002\u5728\u5b9e\u9645\u5f00\u53d1\u4e2d\uff0c\u6839\u636e\u5177\u4f53\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\u548c\u5de5\u5177\uff0c\u80fd\u591f\u6709\u6548\u63d0\u9ad8\u4ee3\u7801\u7684\u8d28\u91cf\u548c\u6027\u80fd\u3002<\/p>\n<\/p>\n<p><p>\u901a\u8fc7\u4e0a\u8ff0\u5185\u5bb9\uff0c\u76f8\u4fe1\u4f60\u5df2\u7ecf\u5bf9\u5982\u4f55\u5728Python\u4e2d\u5224\u65ad\u4e00\u4e2a\u6570\u7684\u6b63\u8d1f\u6709\u4e86\u5168\u9762\u7684\u4e86\u89e3\u548c\u638c\u63e1\u3002\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u7075\u6d3b\u8fd0\u7528\u8fd9\u4e9b\u65b9\u6cd5\u548c\u6280\u5de7\uff0c\u53ef\u4ee5\u5e2e\u52a9\u4f60\u66f4\u52a0\u9ad8\u6548\u5730\u89e3\u51b3\u95ee\u9898\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u5224\u65ad\u4e00\u4e2a\u6570\u662f\u6b63\u6570\u3001\u8d1f\u6570\u8fd8\u662f\u96f6\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u7b80\u5355\u7684\u6761\u4ef6\u8bed\u53e5\u6765\u5224\u65ad\u4e00\u4e2a\u6570\u7684\u6b63\u8d1f\u6027\u3002\u4f7f\u7528<code>if<\/code>\u8bed\u53e5\u53ef\u4ee5\u6709\u6548\u5730\u5904\u7406\u8fd9\u4e00\u9700\u6c42\u3002\u4f8b\u5982\uff0c\u60a8\u53ef\u4ee5\u5199\u51fa\u5982\u4e0b\u4ee3\u7801\uff1a<\/p>\n<pre><code class=\"language-python\">number = float(input(&quot;\u8bf7\u8f93\u5165\u4e00\u4e2a\u6570\u5b57: &quot;))\nif number &gt; 0:\n    print(&quot;\u8fd9\u4e2a\u6570\u662f\u6b63\u6570&quot;)\nelif number &lt; 0:\n    print(&quot;\u8fd9\u4e2a\u6570\u662f\u8d1f\u6570&quot;)\nelse:\n    print(&quot;\u8fd9\u4e2a\u6570\u662f\u96f6&quot;)\n<\/code><\/pre>\n<p>\u8fd9\u79cd\u65b9\u5f0f\u4e0d\u4ec5\u7b80\u5355\u6613\u61c2\uff0c\u800c\u4e14\u53ef\u4ee5\u5904\u7406\u5404\u79cd\u6570\u503c\u3002<\/p>\n<p><strong>\u5728\u5224\u65ad\u6570\u7684\u6b63\u8d1f\u65f6\uff0c\u5982\u4f55\u5904\u7406\u7528\u6237\u8f93\u5165\u7684\u975e\u6570\u5b57\u60c5\u51b5\uff1f<\/strong><br \/>\u5728\u8fdb\u884c\u6570\u503c\u5224\u65ad\u65f6\uff0c\u7528\u6237\u53ef\u80fd\u4f1a\u8f93\u5165\u975e\u6570\u5b57\u5b57\u7b26\uff0c\u5bfc\u81f4\u7a0b\u5e8f\u51fa\u9519\u3002\u4e3a\u4e86\u907f\u514d\u8fd9\u79cd\u60c5\u51b5\uff0c\u53ef\u4ee5\u4f7f\u7528<code>try<\/code>\u548c<code>except<\/code>\u7ed3\u6784\u6765\u6355\u83b7\u5f02\u5e38\uff0c\u786e\u4fdd\u7a0b\u5e8f\u7684\u7a33\u5b9a\u6027\u3002\u793a\u4f8b\u4ee3\u7801\u5982\u4e0b\uff1a<\/p>\n<pre><code class=\"language-python\">try:\n    number = float(input(&quot;\u8bf7\u8f93\u5165\u4e00\u4e2a\u6570\u5b57: &quot;))\n    if number &gt; 0:\n        print(&quot;\u8fd9\u4e2a\u6570\u662f\u6b63\u6570&quot;)\n    elif number &lt; 0:\n        print(&quot;\u8fd9\u4e2a\u6570\u662f\u8d1f\u6570&quot;)\n    else:\n        print(&quot;\u8fd9\u4e2a\u6570\u662f\u96f6&quot;)\nexcept ValueError:\n    print(&quot;\u8bf7\u8f93\u5165\u6709\u6548\u7684\u6570\u5b57&quot;)\n<\/code><\/pre>\n<p>\u8fd9\u79cd\u5904\u7406\u65b9\u5f0f\u53ef\u4ee5\u63d0\u9ad8\u7528\u6237\u4f53\u9a8c\uff0c\u9632\u6b62\u7a0b\u5e8f\u5d29\u6e83\u3002<\/p>\n<p><strong>Python\u4e2d\u662f\u5426\u6709\u5185\u7f6e\u51fd\u6570\u53ef\u4ee5\u5feb\u901f\u5224\u65ad\u6570\u7684\u6b63\u8d1f\u6027\uff1f<\/strong><br \/>\u867d\u7136Python\u6ca1\u6709\u4e13\u95e8\u7684\u5185\u7f6e\u51fd\u6570\u6765\u5224\u65ad\u6570\u5b57\u7684\u6b63\u8d1f\u6027\uff0c\u4f46\u53ef\u4ee5\u5229\u7528\u903b\u8f91\u8868\u8fbe\u5f0f\u7684\u7b80\u4fbf\u6027\u6765\u5b9e\u73b0\u3002\u4f8b\u5982\uff0c\u53ef\u4ee5\u521b\u5efa\u4e00\u4e2a\u51fd\u6570\u6765\u5b9e\u73b0\u8fd9\u4e00\u529f\u80fd\uff1a<\/p>\n<pre><code class=\"language-python\">def check_number(num):\n    return &quot;\u6b63\u6570&quot; if num &gt; 0 else &quot;\u8d1f\u6570&quot; if num &lt; 0 else &quot;\u96f6&quot;\n\nnumber = float(input(&quot;\u8bf7\u8f93\u5165\u4e00\u4e2a\u6570\u5b57: &quot;))\nprint(check_number(number))\n<\/code><\/pre>\n<p>\u8fd9\u6837\u7684\u51fd\u6570\u4e0d\u4ec5\u7b80\u6d01\uff0c\u8fd8\u4fbf\u4e8e\u91cd\u7528\uff0c\u9002\u5408\u5728\u66f4\u590d\u6742\u7684\u7a0b\u5e8f\u4e2d\u4f7f\u7528\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\u5224\u65ad\u4e00\u4e2a\u6570\u7684\u6b63\u8d1f\u975e\u5e38\u7b80\u5355\uff0c\u53ef\u4ee5\u901a\u8fc7\u6bd4\u8f83\u8fd0\u7b97\u7b26\u6765\u5b9e\u73b0\u3002 \u5177\u4f53\u6765\u8bf4\uff0c\u53ef\u4ee5\u901a\u8fc7\u5927\u4e8e0\u3001\u7b49\u4e8e0\u3001\u5c0f\u4e8e0 [&hellip;]","protected":false},"author":3,"featured_media":1142880,"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\/1142869"}],"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=1142869"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1142869\/revisions"}],"predecessor-version":[{"id":1142885,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1142869\/revisions\/1142885"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1142880"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1142869"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1142869"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1142869"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}