{"id":1138328,"date":"2025-01-08T21:58:41","date_gmt":"2025-01-08T13:58:41","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1138328.html"},"modified":"2025-01-08T21:58:44","modified_gmt":"2025-01-08T13:58:44","slug":"python%e4%b8%ad%e5%a6%82%e4%bd%95%e8%ae%a9%e4%b8%80%e4%b8%aa%e6%95%b0%e4%b8%8d%e4%b8%ba0","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1138328.html","title":{"rendered":"python\u4e2d\u5982\u4f55\u8ba9\u4e00\u4e2a\u6570\u4e0d\u4e3a0"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25101957\/d2cc52a0-a4d8-49bd-8fcd-c89d4e9ca50e.webp\" alt=\"python\u4e2d\u5982\u4f55\u8ba9\u4e00\u4e2a\u6570\u4e0d\u4e3a0\" \/><\/p>\n<p><p> <strong>\u5728Python\u4e2d\u8ba9\u4e00\u4e2a\u6570\u4e0d\u4e3a0\u7684\u65b9\u6cd5\u6709\uff1a\u6dfb\u52a0\u6761\u4ef6\u68c0\u67e5\u3001\u4f7f\u7528\u9ed8\u8ba4\u503c\u3001\u6570\u636e\u5904\u7406\u548c\u5f02\u5e38\u5904\u7406<\/strong>\u3002\u901a\u8fc7\u8fd9\u4e9b\u65b9\u6cd5\uff0c\u4f60\u53ef\u4ee5\u786e\u4fdd\u5728\u4ee3\u7801\u8fd0\u884c\u65f6\u907f\u514d\u96f6\u503c\uff0c\u4ece\u800c\u9632\u6b62\u6f5c\u5728\u7684\u9519\u8bef\u6216\u5f02\u5e38\u3002\u63a5\u4e0b\u6765\u6211\u4eec\u8be6\u7ec6\u8ba8\u8bba\u5176\u4e2d\u7684\u201c\u6dfb\u52a0\u6761\u4ef6\u68c0\u67e5\u201d\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<p><p>\u6dfb\u52a0\u6761\u4ef6\u68c0\u67e5\u662f\u786e\u4fdd\u53d8\u91cf\u5728\u8d4b\u503c\u524d\u6216\u4f7f\u7528\u524d\u6ee1\u8db3\u7279\u5b9a\u6761\u4ef6\u7684\u4e00\u79cd\u65b9\u5f0f\u3002\u4f60\u53ef\u4ee5\u5728\u4ee3\u7801\u4e2d\u52a0\u5165if\u8bed\u53e5\u68c0\u67e5\u53d8\u91cf\u662f\u5426\u4e3a\u96f6\uff0c\u7136\u540e\u6839\u636e\u9700\u8981\u8fdb\u884c\u8c03\u6574\u3002\u4f8b\u5982\uff0c\u5982\u679c\u53d8\u91cf\u7684\u503c\u662f\u96f6\uff0c\u4f60\u53ef\u4ee5\u5c06\u5176\u6539\u4e3a\u4e00\u4e2a\u9ed8\u8ba4\u503c\u6216\u63d0\u793a\u7528\u6237\u8fdb\u884c\u91cd\u65b0\u8f93\u5165\u3002\u8fd9\u6837\u53ef\u4ee5\u6709\u6548\u5730\u907f\u514d\u96f6\u503c\u5bf9\u7a0b\u5e8f\u7684\u5f71\u54cd\u3002<\/p>\n<\/p>\n<p><h2>\u4e00\u3001\u6dfb\u52a0\u6761\u4ef6\u68c0\u67e5<\/h2>\n<\/p>\n<p><h3>1. \u4f7f\u7528if\u8bed\u53e5\u8fdb\u884c\u6761\u4ef6\u68c0\u67e5<\/h3>\n<\/p>\n<p><p>\u5728\u7f16\u5199\u4ee3\u7801\u65f6\uff0c\u6700\u57fa\u672c\u7684\u65b9\u6cd5\u662f\u4f7f\u7528if\u8bed\u53e5\u5bf9\u53d8\u91cf\u8fdb\u884c\u68c0\u67e5\u3002\u5982\u679c\u53d8\u91cf\u7684\u503c\u4e3a\u96f6\uff0c\u5219\u8fdb\u884c\u76f8\u5e94\u7684\u5904\u7406\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">x = 0<\/p>\n<p>if x == 0:<\/p>\n<p>    x = 1  # \u5c06\u96f6\u503c\u66ff\u6362\u4e3a\u4e00\u4e2a\u9ed8\u8ba4\u503c<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u975e\u5e38\u76f4\u89c2\u4e14\u6613\u4e8e\u7406\u89e3\uff0c\u9002\u7528\u4e8e\u7b80\u5355\u7684\u903b\u8f91\u68c0\u67e5\u3002\u7136\u800c\uff0c\u5bf9\u4e8e\u66f4\u590d\u6742\u7684\u60c5\u51b5\uff0c\u53ef\u80fd\u9700\u8981\u7ed3\u5408\u5176\u4ed6\u6280\u672f\u3002<\/p>\n<\/p>\n<p><h3>2. \u4f7f\u7528\u51fd\u6570\u8fdb\u884c\u68c0\u67e5<\/h3>\n<\/p>\n<p><p>\u4e3a\u4e86\u63d0\u9ad8\u4ee3\u7801\u7684\u53ef\u91cd\u7528\u6027\u548c\u53ef\u7ef4\u62a4\u6027\uff0c\u53ef\u4ee5\u5c06\u68c0\u67e5\u903b\u8f91\u5c01\u88c5\u5230\u4e00\u4e2a\u51fd\u6570\u4e2d\u3002\u8fd9\u6837\u53ef\u4ee5\u5728\u591a\u4e2a\u5730\u65b9\u8c03\u7528\u8be5\u51fd\u6570\uff0c\u800c\u4e0d\u5fc5\u91cd\u590d\u7f16\u5199\u76f8\u540c\u7684\u68c0\u67e5\u903b\u8f91\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def ensure_non_zero(value):<\/p>\n<p>    if value == 0:<\/p>\n<p>        return 1  # \u8fd4\u56de\u4e00\u4e2a\u9ed8\u8ba4\u503c<\/p>\n<p>    return value<\/p>\n<p>x = 0<\/p>\n<p>x = ensure_non_zero(x)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u4e0d\u4ec5\u4f7f\u4ee3\u7801\u66f4\u52a0\u6e05\u6670\uff0c\u8fd8\u80fd\u51cf\u5c11\u91cd\u590d\u4ee3\u7801\uff0c\u63d0\u9ad8\u4ee3\u7801\u7684\u53ef\u7ef4\u62a4\u6027\u3002<\/p>\n<\/p>\n<p><h2>\u4e8c\u3001\u4f7f\u7528\u9ed8\u8ba4\u503c<\/h2>\n<\/p>\n<p><h3>1. \u8bbe\u7f6e\u9ed8\u8ba4\u503c<\/h3>\n<\/p>\n<p><p>\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u53ef\u4ee5\u5728\u53d8\u91cf\u521d\u59cb\u5316\u65f6\u8bbe\u7f6e\u4e00\u4e2a\u9ed8\u8ba4\u503c\uff0c\u4ee5\u786e\u4fdd\u53d8\u91cf\u4e0d\u4f1a\u4e3a\u96f6\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">x = 1  # \u8bbe\u7f6e\u4e00\u4e2a\u975e\u96f6\u7684\u9ed8\u8ba4\u503c<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u5728\u521d\u59cb\u5316\u65f6\u5c31\u907f\u514d\u4e86\u96f6\u503c\u7684\u51fa\u73b0\uff0c\u9002\u7528\u4e8e\u53d8\u91cf\u5728\u6574\u4e2a\u7a0b\u5e8f\u8fd0\u884c\u671f\u95f4\u90fd\u4e0d\u5e94\u4e3a\u96f6\u7684\u60c5\u51b5\u3002<\/p>\n<\/p>\n<p><h3>2. \u4f7f\u7528\u51fd\u6570\u53c2\u6570\u7684\u9ed8\u8ba4\u503c<\/h3>\n<\/p>\n<p><p>\u5728\u5b9a\u4e49\u51fd\u6570\u65f6\uff0c\u53ef\u4ee5\u901a\u8fc7\u8bbe\u7f6e\u51fd\u6570\u53c2\u6570\u7684\u9ed8\u8ba4\u503c\u6765\u907f\u514d\u96f6\u503c\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def divide(a, b=1):<\/p>\n<p>    return a \/ b<\/p>\n<p>result = divide(10)  # \u4f7f\u7528\u9ed8\u8ba4\u503c1\uff0c\u907f\u514db\u4e3a\u96f6<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u7279\u522b\u9002\u7528\u4e8e\u51fd\u6570\u53c2\u6570\uff0c\u786e\u4fdd\u5728\u8c03\u7528\u51fd\u6570\u65f6\u4e0d\u4f1a\u56e0\u4e3a\u53c2\u6570\u4e3a\u96f6\u800c\u5bfc\u81f4\u9519\u8bef\u3002<\/p>\n<\/p>\n<p><h2>\u4e09\u3001\u6570\u636e\u5904\u7406<\/h2>\n<\/p>\n<p><h3>1. \u8fc7\u6ee4\u96f6\u503c\u6570\u636e<\/h3>\n<\/p>\n<p><p>\u5728\u5904\u7406\u6570\u636e\u65f6\uff0c\u53ef\u4ee5\u901a\u8fc7\u8fc7\u6ee4\u96f6\u503c\u6765\u907f\u514d\u5b83\u4eec\u5bf9\u540e\u7eed\u8ba1\u7b97\u7684\u5f71\u54cd\u3002\u4f8b\u5982\uff0c\u5728\u5904\u7406\u4e00\u4e2a\u5217\u8868\u65f6\uff0c\u53ef\u4ee5\u4f7f\u7528\u5217\u8868\u63a8\u5bfc\u5f0f\u8fc7\u6ee4\u96f6\u503c\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">data = [0, 1, 2, 3, 0, 4]<\/p>\n<p>filtered_data = [x for x in data if x != 0]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u9002\u7528\u4e8e\u9700\u8981\u5bf9\u6570\u636e\u8fdb\u884c\u6279\u91cf\u5904\u7406\u7684\u60c5\u51b5\uff0c\u901a\u8fc7\u8fc7\u6ee4\u96f6\u503c\uff0c\u53ef\u4ee5\u6709\u6548\u5730\u907f\u514d\u96f6\u503c\u5bf9\u8ba1\u7b97\u7ed3\u679c\u7684\u5f71\u54cd\u3002<\/p>\n<\/p>\n<p><h3>2. \u6570\u636e\u9884\u5904\u7406<\/h3>\n<\/p>\n<p><p>\u5728\u6570\u636e\u5206\u6790\u548c<a href=\"https:\/\/docs.pingcode.com\/ask\/59192.html\" target=\"_blank\">\u673a\u5668\u5b66\u4e60<\/a>\u4e2d\uff0c\u6570\u636e\u9884\u5904\u7406\u662f\u975e\u5e38\u91cd\u8981\u7684\u4e00\u6b65\u3002\u53ef\u4ee5\u901a\u8fc7\u6570\u636e\u9884\u5904\u7406\u6b65\u9aa4\u6765\u786e\u4fdd\u6570\u636e\u4e2d\u4e0d\u5305\u542b\u96f6\u503c\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import pandas as pd<\/p>\n<p>data = {&#39;values&#39;: [0, 1, 2, 3, 0, 4]}<\/p>\n<p>df = pd.DataFrame(data)<\/p>\n<p>df[&#39;values&#39;] = df[&#39;values&#39;].replace(0, 1)  # \u5c06\u96f6\u503c\u66ff\u6362\u4e3a1<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u9002\u7528\u4e8e\u6570\u636e\u91cf\u8f83\u5927\u7684\u60c5\u51b5\uff0c\u901a\u8fc7\u6570\u636e\u9884\u5904\u7406\uff0c\u53ef\u4ee5\u5728\u6570\u636e\u5206\u6790\u524d\u5c31\u907f\u514d\u96f6\u503c\u7684\u5f71\u54cd\u3002<\/p>\n<\/p>\n<p><h2>\u56db\u3001\u5f02\u5e38\u5904\u7406<\/h2>\n<\/p>\n<p><h3>1. \u4f7f\u7528try-except\u6355\u83b7\u5f02\u5e38<\/h3>\n<\/p>\n<p><p>\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u53ef\u4ee5\u901a\u8fc7\u5f02\u5e38\u5904\u7406\u673a\u5236\u6765\u6355\u83b7\u96f6\u503c\u5e26\u6765\u7684\u5f02\u5e38\uff0c\u5e76\u8fdb\u884c\u76f8\u5e94\u7684\u5904\u7406\u3002\u4f8b\u5982\uff0c\u5728\u8fdb\u884c\u9664\u6cd5\u8fd0\u7b97\u65f6\uff0c\u53ef\u4ee5\u6355\u83b7\u9664\u96f6\u5f02\u5e38\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">try:<\/p>\n<p>    result = 10 \/ 0<\/p>\n<p>except ZeroDivisionError:<\/p>\n<p>    result = 1  # \u8bbe\u7f6e\u4e00\u4e2a\u9ed8\u8ba4\u503c\uff0c\u907f\u514d\u9664\u96f6\u9519\u8bef<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u9002\u7528\u4e8e\u9700\u8981\u5904\u7406\u53ef\u80fd\u51fa\u73b0\u7684\u96f6\u503c\u5f02\u5e38\u7684\u60c5\u51b5\uff0c\u901a\u8fc7\u5f02\u5e38\u5904\u7406\u673a\u5236\uff0c\u53ef\u4ee5\u786e\u4fdd\u7a0b\u5e8f\u4e0d\u4f1a\u56e0\u4e3a\u96f6\u503c\u5f02\u5e38\u800c\u4e2d\u65ad\u3002<\/p>\n<\/p>\n<p><h3>2. \u81ea\u5b9a\u4e49\u5f02\u5e38\u5904\u7406<\/h3>\n<\/p>\n<p><p>\u5728\u9700\u8981\u66f4\u590d\u6742\u7684\u5f02\u5e38\u5904\u7406\u903b\u8f91\u65f6\uff0c\u53ef\u4ee5\u81ea\u5b9a\u4e49\u5f02\u5e38\u5904\u7406\u7c7b\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">class NonZeroError(Exception):<\/p>\n<p>    pass<\/p>\n<p>def check_non_zero(value):<\/p>\n<p>    if value == 0:<\/p>\n<p>        r<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>se NonZeroError(&quot;Value cannot be zero&quot;)<\/p>\n<p>try:<\/p>\n<p>    check_non_zero(0)<\/p>\n<p>except NonZeroError as e:<\/p>\n<p>    print(e)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u9002\u7528\u4e8e\u9700\u8981\u81ea\u5b9a\u4e49\u5f02\u5e38\u5904\u7406\u903b\u8f91\u7684\u60c5\u51b5\uff0c\u901a\u8fc7\u81ea\u5b9a\u4e49\u5f02\u5e38\u5904\u7406\u7c7b\uff0c\u53ef\u4ee5\u66f4\u7075\u6d3b\u5730\u5904\u7406\u96f6\u503c\u5f02\u5e38\u3002<\/p>\n<\/p>\n<p><h2>\u4e94\u3001\u603b\u7ed3<\/h2>\n<\/p>\n<p><p>\u901a\u8fc7\u672c\u6587\u7684\u4ecb\u7ecd\uff0c\u6211\u4eec\u8be6\u7ec6\u8ba8\u8bba\u4e86\u5728Python\u4e2d\u5982\u4f55\u8ba9\u4e00\u4e2a\u6570\u4e0d\u4e3a\u96f6\u7684\u65b9\u6cd5\uff0c\u5305\u62ec<strong>\u6dfb\u52a0\u6761\u4ef6\u68c0\u67e5\u3001\u4f7f\u7528\u9ed8\u8ba4\u503c\u3001\u6570\u636e\u5904\u7406\u548c\u5f02\u5e38\u5904\u7406<\/strong>\u3002\u6bcf\u79cd\u65b9\u6cd5\u90fd\u6709\u5176\u9002\u7528\u7684\u573a\u666f\u548c\u4f18\u7f3a\u70b9\uff0c\u5f00\u53d1\u8005\u53ef\u4ee5\u6839\u636e\u5177\u4f53\u60c5\u51b5\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\u6765\u786e\u4fdd\u53d8\u91cf\u4e0d\u4f1a\u4e3a\u96f6\u3002\u5e0c\u671b\u672c\u6587\u5bf9\u4f60\u5728\u7f16\u5199Python\u4ee3\u7801\u65f6\u6709\u6240\u5e2e\u52a9\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u68c0\u67e5\u4e00\u4e2a\u6570\u662f\u5426\u4e3a\u96f6\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528\u7b80\u5355\u7684\u6761\u4ef6\u8bed\u53e5\u6765\u68c0\u67e5\u4e00\u4e2a\u6570\u662f\u5426\u4e3a\u96f6\u3002\u4f8b\u5982\uff0c\u901a\u8fc7\u4ee5\u4e0b\u4ee3\u7801\u53ef\u4ee5\u5224\u65ad\u4e00\u4e2a\u53d8\u91cf\u662f\u5426\u4e3a\u96f6\uff1a<\/p>\n<pre><code class=\"language-python\">number = 5  # \u66ff\u6362\u4e3a\u60a8\u8981\u68c0\u67e5\u7684\u6570\nif number == 0:\n    print(&quot;\u8fd9\u4e2a\u6570\u662f\u96f6&quot;)\nelse:\n    print(&quot;\u8fd9\u4e2a\u6570\u4e0d\u662f\u96f6&quot;)\n<\/code><\/pre>\n<p>\u8fd9\u79cd\u65b9\u6cd5\u9002\u7528\u4e8e\u4efb\u4f55\u7c7b\u578b\u7684\u6570\u5b57\uff0c\u5305\u62ec\u6574\u6570\u548c\u6d6e\u70b9\u6570\u3002<\/p>\n<p><strong>\u5728Python\u4e2d\u5982\u4f55\u5c06\u4e00\u4e2a\u6570\u7684\u503c\u8bbe\u7f6e\u4e3a\u975e\u96f6\uff1f<\/strong><br \/>\u8981\u786e\u4fdd\u4e00\u4e2a\u6570\u4e0d\u4e3a\u96f6\uff0c\u53ef\u4ee5\u901a\u8fc7\u6761\u4ef6\u8bed\u53e5\u8fdb\u884c\u5904\u7406\u3002\u4f8b\u5982\uff0c\u60a8\u53ef\u4ee5\u5728\u8d4b\u503c\u65f6\u68c0\u67e5\u53d8\u91cf\u7684\u503c\uff0c\u5e76\u6839\u636e\u9700\u8981\u66f4\u6539\u5b83\uff1a<\/p>\n<pre><code class=\"language-python\">number = 0  # \u521d\u59cb\u503c\nif number == 0:\n    number = 1  # \u5c06\u5176\u8bbe\u7f6e\u4e3a\u975e\u96f6\u503c\n<\/code><\/pre>\n<p>\u8fd9\u6bb5\u4ee3\u7801\u786e\u4fdd\u53d8\u91cf<code>number<\/code>\u4e0d\u4f1a\u662f\u96f6\u3002<\/p>\n<p><strong>\u5982\u4f55\u5728Python\u4e2d\u5904\u7406\u96f6\u503c\u5bfc\u81f4\u7684\u9519\u8bef\uff1f<\/strong><br \/>\u5728\u8fdb\u884c\u6570\u5b66\u8ba1\u7b97\u65f6\uff0c\u96f6\u503c\u53ef\u80fd\u4f1a\u5bfc\u81f4\u9519\u8bef\uff0c\u4f8b\u5982\u9664\u4ee5\u96f6\u3002\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528\u5f02\u5e38\u5904\u7406\u6765\u6355\u83b7\u9519\u8bef\u5e76\u91c7\u53d6\u76f8\u5e94\u63aa\u65bd\uff1a<\/p>\n<pre><code class=\"language-python\">try:\n    result = 10 \/ number  # number\u53ef\u80fd\u4e3a\u96f6\nexcept ZeroDivisionError:\n    print(&quot;\u9519\u8bef\uff1a\u4e0d\u80fd\u5c06\u6570\u5b57\u9664\u4ee5\u96f6\uff0c\u5df2\u8bbe\u7f6e\u4e3a1&quot;)\n    result = 10 \/ 1  # \u5904\u7406\u4e3a1\u4ee5\u907f\u514d\u9519\u8bef\n<\/code><\/pre>\n<p>\u8fd9\u79cd\u65b9\u6cd5\u53ef\u4ee5\u6709\u6548\u5730\u907f\u514d\u56e0\u96f6\u503c\u800c\u5bfc\u81f4\u7684\u7a0b\u5e8f\u5d29\u6e83\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\u8ba9\u4e00\u4e2a\u6570\u4e0d\u4e3a0\u7684\u65b9\u6cd5\u6709\uff1a\u6dfb\u52a0\u6761\u4ef6\u68c0\u67e5\u3001\u4f7f\u7528\u9ed8\u8ba4\u503c\u3001\u6570\u636e\u5904\u7406\u548c\u5f02\u5e38\u5904\u7406\u3002\u901a\u8fc7\u8fd9\u4e9b\u65b9\u6cd5\uff0c\u4f60\u53ef\u4ee5\u786e\u4fdd [&hellip;]","protected":false},"author":3,"featured_media":1138339,"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\/1138328"}],"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=1138328"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1138328\/revisions"}],"predecessor-version":[{"id":1138342,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1138328\/revisions\/1138342"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1138339"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1138328"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1138328"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1138328"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}