{"id":1124241,"date":"2025-01-08T19:39:33","date_gmt":"2025-01-08T11:39:33","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1124241.html"},"modified":"2025-01-08T19:39:36","modified_gmt":"2025-01-08T11:39:36","slug":"python%e5%a6%82%e4%bd%95%e5%88%a4%e6%96%ad%e4%b8%80%e4%b8%aa%e5%80%bc%e6%98%af%e5%90%a6%e4%b8%ba%e7%a9%ba%e6%a0%bc","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1124241.html","title":{"rendered":"python\u5982\u4f55\u5224\u65ad\u4e00\u4e2a\u503c\u662f\u5426\u4e3a\u7a7a\u683c"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25085353\/7f327296-1bbb-4ef8-ba15-18387aef73b0.webp\" alt=\"python\u5982\u4f55\u5224\u65ad\u4e00\u4e2a\u503c\u662f\u5426\u4e3a\u7a7a\u683c\" \/><\/p>\n<p><p> <strong>Python\u5224\u65ad\u4e00\u4e2a\u503c\u662f\u5426\u4e3a\u7a7a\u683c\u7684\u65b9\u6cd5\u6709\u591a\u79cd\uff0c\u5305\u62ec\u4f7f\u7528\u5b57\u7b26\u4e32\u65b9\u6cd5\u3001\u6b63\u5219\u8868\u8fbe\u5f0f\u3001\u6761\u4ef6\u5224\u65ad\u7b49\u3002<\/strong> \u5176\u4e2d<strong>\u4f7f\u7528\u5b57\u7b26\u4e32\u65b9\u6cd5<\/strong>\u662f\u6700\u5e38\u7528\u7684\u65b9\u6cd5\u4e4b\u4e00\uff0c\u5b83\u5229\u7528\u5b57\u7b26\u4e32\u7684\u5185\u7f6e\u65b9\u6cd5\u6765\u68c0\u67e5\u7a7a\u683c\u3002\u6bd4\u5982\uff0cPython\u7684<code>str.isspace()<\/code>\u65b9\u6cd5\u53ef\u4ee5\u76f4\u63a5\u5224\u65ad\u4e00\u4e2a\u5b57\u7b26\u4e32\u662f\u5426\u53ea\u5305\u542b\u7a7a\u683c\u3002\u4e0b\u9762\u8be6\u7ec6\u4ecb\u7ecd\u8fd9\u4e00\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u5b57\u7b26\u4e32\u65b9\u6cd5<\/h3>\n<\/p>\n<p><h4>1\u3001\u4f7f\u7528 <code>str.isspace()<\/code><\/h4>\n<\/p>\n<p><p><code>str.isspace()<\/code>\u662f\u4e00\u4e2a\u5185\u7f6e\u7684\u5b57\u7b26\u4e32\u65b9\u6cd5\uff0c\u7528\u4e8e\u5224\u65ad\u5b57\u7b26\u4e32\u662f\u5426\u53ea\u5305\u542b\u7a7a\u767d\u5b57\u7b26\u3002\u7a7a\u767d\u5b57\u7b26\u5305\u62ec\u7a7a\u683c\u3001\u5236\u8868\u7b26\u3001\u6362\u884c\u7b26\u7b49\u3002\u8fd9\u4e2a\u65b9\u6cd5\u975e\u5e38\u76f4\u89c2\u548c\u7b80\u5355\uff0c\u9002\u7528\u4e8e\u5927\u591a\u6570\u60c5\u51b5\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">value = &quot;  &quot;<\/p>\n<p>if value.isspace():<\/p>\n<p>    print(&quot;The value is only whitespace.&quot;)<\/p>\n<p>else:<\/p>\n<p>    print(&quot;The value is not only whitespace.&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u4f18\u70b9<\/strong>\uff1a<code>str.isspace()<\/code>\u65b9\u6cd5\u4f7f\u7528\u8d77\u6765\u975e\u5e38\u7b80\u5355\uff0c\u53ea\u9700\u8981\u4e00\u884c\u4ee3\u7801\u5c31\u53ef\u4ee5\u5b8c\u6210\u5224\u65ad\u3002\u5b83\u4e0d\u4ec5\u53ef\u4ee5\u68c0\u67e5\u7a7a\u683c\uff0c\u8fd8\u53ef\u4ee5\u8bc6\u522b\u5176\u4ed6\u7a7a\u767d\u5b57\u7b26\uff0c\u6bd4\u5982\u5236\u8868\u7b26\u548c\u6362\u884c\u7b26\u3002<\/p>\n<\/p>\n<p><p><strong>\u7f3a\u70b9<\/strong>\uff1a\u8fd9\u4e2a\u65b9\u6cd5\u53ea\u80fd\u7528\u4e8e\u5b57\u7b26\u4e32\u7c7b\u578b\u7684\u53d8\u91cf\uff0c\u5982\u679c\u53d8\u91cf\u4e0d\u662f\u5b57\u7b26\u4e32\u7c7b\u578b\uff0c\u9700\u8981\u5148\u5c06\u5176\u8f6c\u6362\u4e3a\u5b57\u7b26\u4e32\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u6b63\u5219\u8868\u8fbe\u5f0f<\/h3>\n<\/p>\n<p><h4>1\u3001\u4f7f\u7528 <code>re.fullmatch()<\/code><\/h4>\n<\/p>\n<p><p>\u6b63\u5219\u8868\u8fbe\u5f0f\u63d0\u4f9b\u4e86\u5f3a\u5927\u7684\u5b57\u7b26\u4e32\u5339\u914d\u529f\u80fd\u3002\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u53ef\u4ee5\u66f4\u52a0\u7075\u6d3b\u5730\u5224\u65ad\u4e00\u4e2a\u503c\u662f\u5426\u4e3a\u7a7a\u683c\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import re<\/p>\n<p>value = &quot;  &quot;<\/p>\n<p>if re.fullmatch(r&#39;\\s*&#39;, value):<\/p>\n<p>    print(&quot;The value is only whitespace.&quot;)<\/p>\n<p>else:<\/p>\n<p>    print(&quot;The value is not only whitespace.&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u4f18\u70b9<\/strong>\uff1a\u6b63\u5219\u8868\u8fbe\u5f0f\u63d0\u4f9b\u4e86\u6781\u5927\u7684\u7075\u6d3b\u6027\uff0c\u53ef\u4ee5\u6839\u636e\u9700\u8981\u81ea\u5b9a\u4e49\u5339\u914d\u6a21\u5f0f\u3002\u6bd4\u5982\uff0c\u53ef\u4ee5\u68c0\u67e5\u7279\u5b9a\u6570\u91cf\u7684\u7a7a\u683c\u6216\u7279\u5b9a\u7c7b\u578b\u7684\u7a7a\u767d\u5b57\u7b26\u3002<\/p>\n<\/p>\n<p><p><strong>\u7f3a\u70b9<\/strong>\uff1a\u6b63\u5219\u8868\u8fbe\u5f0f\u8bed\u6cd5\u76f8\u5bf9\u590d\u6742\uff0c\u521d\u5b66\u8005\u53ef\u80fd\u9700\u8981\u82b1\u4e00\u4e9b\u65f6\u95f4\u6765\u719f\u6089\u548c\u638c\u63e1\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001\u6761\u4ef6\u5224\u65ad<\/h3>\n<\/p>\n<p><h4>1\u3001\u4f7f\u7528 <code>strip()<\/code> \u65b9\u6cd5<\/h4>\n<\/p>\n<p><p><code>strip()<\/code>\u65b9\u6cd5\u7528\u4e8e\u53bb\u6389\u5b57\u7b26\u4e32\u4e24\u7aef\u7684\u7a7a\u767d\u5b57\u7b26\u3002\u5229\u7528\u8fd9\u4e00\u70b9\uff0c\u53ef\u4ee5\u5224\u65ad\u4e00\u4e2a\u503c\u662f\u5426\u4e3a\u7a7a\u683c\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">value = &quot;  &quot;<\/p>\n<p>if value.strip() == &quot;&quot;:<\/p>\n<p>    print(&quot;The value is only whitespace.&quot;)<\/p>\n<p>else:<\/p>\n<p>    print(&quot;The value is not only whitespace.&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u4f18\u70b9<\/strong>\uff1a\u8fd9\u79cd\u65b9\u6cd5\u975e\u5e38\u7075\u6d3b\uff0c\u53ef\u4ee5\u5904\u7406\u5404\u79cd\u60c5\u51b5\uff0c\u6bd4\u5982\u524d\u540e\u6709\u7a7a\u683c\u7684\u5b57\u7b26\u4e32\u3002<\/p>\n<\/p>\n<p><p><strong>\u7f3a\u70b9<\/strong>\uff1a\u9700\u8981\u989d\u5916\u7684\u5b57\u7b26\u4e32\u64cd\u4f5c\uff0c\u6548\u7387\u53ef\u80fd\u7a0d\u4f4e\u4e8e\u76f4\u63a5\u4f7f\u7528<code>str.isspace()<\/code>\u3002<\/p>\n<\/p>\n<p><h3>\u56db\u3001\u7efc\u5408\u5b9e\u4f8b<\/h3>\n<\/p>\n<p><h4>1\u3001\u7efc\u5408\u4f7f\u7528\u591a\u79cd\u65b9\u6cd5<\/h4>\n<\/p>\n<p><p>\u5728\u5b9e\u9645\u5f00\u53d1\u4e2d\uff0c\u53ef\u4ee5\u6839\u636e\u5177\u4f53\u60c5\u51b5\u9009\u62e9\u4e0d\u540c\u7684\u65b9\u6cd5\u3002\u4e0b\u9762\u662f\u4e00\u4e2a\u7efc\u5408\u5b9e\u4f8b\uff0c\u6f14\u793a\u5982\u4f55\u4f7f\u7528\u4e0a\u8ff0\u4e09\u79cd\u65b9\u6cd5\u6765\u5224\u65ad\u4e00\u4e2a\u503c\u662f\u5426\u4e3a\u7a7a\u683c\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import re<\/p>\n<p>def is_whitespace(value):<\/p>\n<p>    if isinstance(value, str):<\/p>\n<p>        # Method 1: Using str.isspace()<\/p>\n<p>        if value.isspace():<\/p>\n<p>            return True<\/p>\n<p>        # Method 2: Using regex<\/p>\n<p>        if re.fullmatch(r&#39;\\s*&#39;, value):<\/p>\n<p>            return True<\/p>\n<p>        # Method 3: Using strip()<\/p>\n<p>        if value.strip() == &quot;&quot;:<\/p>\n<p>            return True<\/p>\n<p>    return False<\/p>\n<h2><strong>Test cases<\/strong><\/h2>\n<p>test_values = [&quot;  &quot;, &quot;\\t&quot;, &quot;\\n&quot;, &quot;text&quot;, &quot;  text  &quot;, 123, None]<\/p>\n<p>for val in test_values:<\/p>\n<p>    print(f&quot;Value: {repr(val)}, Is whitespace: {is_whitespace(val)}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u5b9e\u4f8b\u4e2d\uff0c\u51fd\u6570<code>is_whitespace<\/code>\u7efc\u5408\u4f7f\u7528\u4e86\u4e09\u79cd\u65b9\u6cd5\u6765\u5224\u65ad\u4e00\u4e2a\u503c\u662f\u5426\u4e3a\u7a7a\u683c\uff0c\u5e76\u4e14\u5bf9\u8f93\u5165\u7c7b\u578b\u8fdb\u884c\u4e86\u68c0\u67e5\u3002\u8fd9\u79cd\u7efc\u5408\u65b9\u6cd5\u53ef\u4ee5\u5e94\u5bf9\u66f4\u590d\u6742\u7684\u60c5\u51b5\uff0c\u786e\u4fdd\u5224\u65ad\u7ed3\u679c\u7684\u51c6\u786e\u6027\u3002<\/p>\n<\/p>\n<p><h3>\u4e94\u3001\u6027\u80fd\u4f18\u5316<\/h3>\n<\/p>\n<p><h4>1\u3001\u5b57\u7b26\u4e32\u65b9\u6cd5\u7684\u6027\u80fd\u5206\u6790<\/h4>\n<\/p>\n<p><p>\u5728\u5927\u591a\u6570\u60c5\u51b5\u4e0b\uff0c\u4f7f\u7528<code>str.isspace()<\/code>\u65b9\u6cd5\u662f\u6700\u4f18\u7684\u9009\u62e9\uff0c\u56e0\u4e3a\u5b83\u662fPython\u5185\u7f6e\u65b9\u6cd5\uff0c\u6267\u884c\u6548\u7387\u8f83\u9ad8\u3002\u4e0b\u9762\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u6027\u80fd\u6d4b\u8bd5\uff0c\u6bd4\u8f83\u4e09\u79cd\u65b9\u6cd5\u7684\u6267\u884c\u6548\u7387\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import timeit<\/p>\n<h2><strong>Test value<\/strong><\/h2>\n<p>value = &quot; &quot; * 1000000<\/p>\n<h2><strong>Method 1: Using str.isspace()<\/strong><\/h2>\n<p>def test_isspace():<\/p>\n<p>    return value.isspace()<\/p>\n<h2><strong>Method 2: Using regex<\/strong><\/h2>\n<p>def test_regex():<\/p>\n<p>    return re.fullmatch(r&#39;\\s*&#39;, value)<\/p>\n<h2><strong>Method 3: Using strip()<\/strong><\/h2>\n<p>def test_strip():<\/p>\n<p>    return value.strip() == &quot;&quot;<\/p>\n<h2><strong>Performance testing<\/strong><\/h2>\n<p>print(&quot;str.isspace():&quot;, timeit.timeit(test_isspace, number=1000))<\/p>\n<p>print(&quot;regex:&quot;, timeit.timeit(test_regex, number=1000))<\/p>\n<p>print(&quot;strip():&quot;, timeit.timeit(test_strip, number=1000))<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u901a\u8fc7\u8fd9\u4e2a\u7b80\u5355\u7684\u6027\u80fd\u6d4b\u8bd5\uff0c\u53ef\u4ee5\u770b\u5230<code>str.isspace()<\/code>\u65b9\u6cd5\u7684\u6267\u884c\u901f\u5ea6\u6700\u5feb\uff0c\u5176\u6b21\u662f<code>strip()<\/code>\u65b9\u6cd5\uff0c\u6700\u540e\u662f\u6b63\u5219\u8868\u8fbe\u5f0f\u3002<\/p>\n<\/p>\n<p><h3>\u516d\u3001\u5e38\u89c1\u95ee\u9898\u89e3\u7b54<\/h3>\n<\/p>\n<p><h4>1\u3001\u5982\u4f55\u5224\u65ad\u5305\u542b\u7a7a\u683c\u7684\u5b57\u7b26\u4e32\uff1f<\/h4>\n<\/p>\n<p><p>\u5982\u679c\u4e0d\u4ec5\u8981\u5224\u65ad\u5b57\u7b26\u4e32\u662f\u5426\u5168\u4e3a\u7a7a\u683c\uff0c\u8fd8\u9700\u8981\u5224\u65ad\u5b57\u7b26\u4e32\u662f\u5426\u5305\u542b\u7a7a\u683c\uff0c\u53ef\u4ee5\u4f7f\u7528<code>in<\/code>\u64cd\u4f5c\u7b26\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">value = &quot;text with space&quot;<\/p>\n<p>if &quot; &quot; in value:<\/p>\n<p>    print(&quot;The value cont<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>ns space.&quot;)<\/p>\n<p>else:<\/p>\n<p>    print(&quot;The value does not contain space.&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2\u3001\u5982\u4f55\u5224\u65ad\u975e\u5b57\u7b26\u4e32\u7c7b\u578b\u7684\u503c\uff1f<\/h4>\n<\/p>\n<p><p>\u5bf9\u4e8e\u975e\u5b57\u7b26\u4e32\u7c7b\u578b\u7684\u503c\uff0c\u53ef\u4ee5\u5148\u5c06\u5176\u8f6c\u6362\u4e3a\u5b57\u7b26\u4e32\uff0c\u7136\u540e\u8fdb\u884c\u5224\u65ad\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">value = 123<\/p>\n<p>str_value = str(value)<\/p>\n<p>if str_value.isspace():<\/p>\n<p>    print(&quot;The value is only whitespace.&quot;)<\/p>\n<p>else:<\/p>\n<p>    print(&quot;The value is not only whitespace.&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e03\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u5728Python\u4e2d\uff0c\u5224\u65ad\u4e00\u4e2a\u503c\u662f\u5426\u4e3a\u7a7a\u683c\u7684\u65b9\u6cd5\u6709\u591a\u79cd\uff0c\u5305\u62ec\u4f7f\u7528\u5b57\u7b26\u4e32\u65b9\u6cd5\u3001\u6b63\u5219\u8868\u8fbe\u5f0f\u3001\u6761\u4ef6\u5224\u65ad\u7b49\u3002<strong>\u4f7f\u7528<code>str.isspace()<\/code>\u65b9\u6cd5\u662f\u6700\u5e38\u7528\u4e14\u9ad8\u6548\u7684\u65b9\u5f0f<\/strong>\u3002\u5bf9\u4e8e\u66f4\u590d\u6742\u7684\u9700\u6c42\uff0c\u53ef\u4ee5\u7ed3\u5408\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u548c\u6761\u4ef6\u5224\u65ad\u3002\u901a\u8fc7\u5bf9\u5404\u79cd\u65b9\u6cd5\u7684\u5206\u6790\u548c\u6d4b\u8bd5\uff0c\u53ef\u4ee5\u9009\u62e9\u6700\u9002\u5408\u5b9e\u9645\u60c5\u51b5\u7684\u65b9\u6cd5\u6765\u5224\u65ad\u4e00\u4e2a\u503c\u662f\u5426\u4e3a\u7a7a\u683c\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\u5b57\u7b26\u4e32\u662f\u5426\u53ea\u5305\u542b\u7a7a\u683c\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528<code>str.strip()<\/code>\u65b9\u6cd5\u53bb\u9664\u5b57\u7b26\u4e32\u4e24\u7aef\u7684\u7a7a\u767d\u5b57\u7b26\uff0c\u7136\u540e\u5224\u65ad\u7ed3\u679c\u662f\u5426\u4e3a\u7a7a\u3002\u5982\u679c\u7ed3\u679c\u4e3a\u7a7a\uff0c\u8bf4\u660e\u8be5\u5b57\u7b26\u4e32\u53ea\u5305\u542b\u7a7a\u683c\u3002\u793a\u4f8b\u4ee3\u7801\u5982\u4e0b\uff1a<\/p>\n<pre><code class=\"language-python\">value = &quot;   &quot;\nif not value.strip():\n    print(&quot;\u8be5\u5b57\u7b26\u4e32\u53ea\u5305\u542b\u7a7a\u683c\u3002&quot;)\n<\/code><\/pre>\n<p><strong>\u5728Python\u4e2d\u53ef\u4ee5\u4f7f\u7528\u54ea\u4e9b\u65b9\u6cd5\u6765\u5224\u65ad\u4e00\u4e2a\u503c\u662f\u5426\u4e3a\u7a7a\u683c\uff1f<\/strong><br \/>\u9664\u4e86\u4f7f\u7528<code>strip()<\/code>\u65b9\u6cd5\u5916\uff0c\u8fd8\u53ef\u4ee5\u76f4\u63a5\u4f7f\u7528<code>isspace()<\/code>\u65b9\u6cd5\u3002\u8be5\u65b9\u6cd5\u4f1a\u8fd4\u56de\u4e00\u4e2a\u5e03\u5c14\u503c\uff0c\u6307\u793a\u5b57\u7b26\u4e32\u4e2d\u7684\u6240\u6709\u5b57\u7b26\u662f\u5426\u90fd\u662f\u7a7a\u683c\u5b57\u7b26\u3002\u793a\u4f8b\u4ee3\u7801\u5982\u4e0b\uff1a<\/p>\n<pre><code class=\"language-python\">value = &quot;   &quot;\nif value.isspace():\n    print(&quot;\u8be5\u5b57\u7b26\u4e32\u53ea\u5305\u542b\u7a7a\u683c\u3002&quot;)\n<\/code><\/pre>\n<p><strong>\u5982\u4f55\u5904\u7406\u7528\u6237\u8f93\u5165\u7684\u7a7a\u683c\u503c\uff1f<\/strong><br \/>\u5728\u5904\u7406\u7528\u6237\u8f93\u5165\u65f6\uff0c\u901a\u5e38\u9700\u8981\u5224\u65ad\u8f93\u5165\u662f\u5426\u6709\u6548\u3002\u5982\u679c\u7528\u6237\u8f93\u5165\u7684\u503c\u53ea\u6709\u7a7a\u683c\uff0c\u53ef\u4ee5\u63d0\u793a\u7528\u6237\u91cd\u65b0\u8f93\u5165\u3002\u7ed3\u5408\u4e0a\u8ff0\u65b9\u6cd5\uff0c\u53ef\u4ee5\u5982\u4e0b\u5b9e\u73b0\uff1a<\/p>\n<pre><code class=\"language-python\">user_input = input(&quot;\u8bf7\u8f93\u5165\u5185\u5bb9\uff1a&quot;)\nif not user_input.strip():\n    print(&quot;\u8f93\u5165\u65e0\u6548\uff0c\u8bf7\u8f93\u5165\u975e\u7a7a\u5185\u5bb9\u3002&quot;)\n<\/code><\/pre>\n<p>\u8fd9\u79cd\u65b9\u6cd5\u53ef\u4ee5\u6709\u6548\u907f\u514d\u7528\u6237\u8f93\u5165\u53ea\u542b\u6709\u7a7a\u683c\u7684\u60c5\u51b5\uff0c\u786e\u4fdd\u83b7\u53d6\u6709\u6548\u7684\u4fe1\u606f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Python\u5224\u65ad\u4e00\u4e2a\u503c\u662f\u5426\u4e3a\u7a7a\u683c\u7684\u65b9\u6cd5\u6709\u591a\u79cd\uff0c\u5305\u62ec\u4f7f\u7528\u5b57\u7b26\u4e32\u65b9\u6cd5\u3001\u6b63\u5219\u8868\u8fbe\u5f0f\u3001\u6761\u4ef6\u5224\u65ad\u7b49\u3002 \u5176\u4e2d\u4f7f\u7528\u5b57\u7b26\u4e32\u65b9\u6cd5 [&hellip;]","protected":false},"author":3,"featured_media":1124250,"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\/1124241"}],"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=1124241"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1124241\/revisions"}],"predecessor-version":[{"id":1124251,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1124241\/revisions\/1124251"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1124250"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1124241"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1124241"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1124241"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}