{"id":1147201,"date":"2025-01-08T23:23:19","date_gmt":"2025-01-08T15:23:19","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1147201.html"},"modified":"2025-01-08T23:23:22","modified_gmt":"2025-01-08T15:23:22","slug":"python%e7%9a%84%e4%b8%80%e4%b8%aa%e5%ad%97%e7%ac%a6%e4%b8%b2%e5%a6%82%e4%bd%95%e4%b8%80%e4%b8%aa%e4%b8%aa%e8%af%bb%e5%8f%96","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1147201.html","title":{"rendered":"python\u7684\u4e00\u4e2a\u5b57\u7b26\u4e32\u5982\u4f55\u4e00\u4e2a\u4e2a\u8bfb\u53d6"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24182903\/01a4c699-50a7-4757-a3bb-4107a6c2efd9.webp\" alt=\"python\u7684\u4e00\u4e2a\u5b57\u7b26\u4e32\u5982\u4f55\u4e00\u4e2a\u4e2a\u8bfb\u53d6\" \/><\/p>\n<p><p> <strong>\u5728Python\u4e2d\uff0c\u9010\u4e2a\u8bfb\u53d6\u5b57\u7b26\u4e32\u7684\u65b9\u6cd5\u6709\u5f88\u591a\uff0c\u4e3b\u8981\u5305\u62ec\u901a\u8fc7\u5faa\u73af\u3001\u5207\u7247\u548c\u5185\u7f6e\u51fd\u6570\u7b49\u624b\u6bb5\u3002<\/strong>\u5176\u4e2d\uff0c\u6700\u5e38\u7528\u7684\u65b9\u6cd5\u662f\u901a\u8fc7for\u5faa\u73af\u9010\u4e2a\u8bfb\u53d6\u5b57\u7b26\u4e32\u4e2d\u7684\u5b57\u7b26\u3002\u4e0b\u9762\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u8fd9\u4e9b\u65b9\u6cd5\uff0c\u5e76\u89e3\u91ca\u5176\u4f18\u7f3a\u70b9\u548c\u4f7f\u7528\u573a\u666f\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u5faa\u73af\u8bfb\u53d6\u5b57\u7b26\u4e32<\/h3>\n<\/p>\n<p><h4>1. for\u5faa\u73af<\/h4>\n<\/p>\n<p><p><strong>\u4f7f\u7528for\u5faa\u73af\u9010\u4e2a\u8bfb\u53d6\u5b57\u7b26\u4e32\u4e2d\u7684\u5b57\u7b26\u662f\u6700\u5e38\u89c1\u7684\u65b9\u5f0f\u3002<\/strong>\u8fd9\u79cd\u65b9\u5f0f\u7b80\u5355\u76f4\u89c2\uff0c\u9002\u7528\u4e8e\u5927\u591a\u6570\u573a\u666f\u3002\u4ee3\u7801\u793a\u4f8b\u5982\u4e0b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">string = &quot;Hello, World!&quot;<\/p>\n<p>for char in string:<\/p>\n<p>    print(char)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c<code>for char in string<\/code>\u8bed\u53e5\u5c06\u5b57\u7b26\u4e32<code>string<\/code>\u4e2d\u7684\u6bcf\u4e2a\u5b57\u7b26\u4f9d\u6b21\u8d4b\u503c\u7ed9\u53d8\u91cf<code>char<\/code>\uff0c\u5e76\u5728\u5faa\u73af\u4f53\u4e2d\u6253\u5370\u51fa\u6765\u3002<\/p>\n<\/p>\n<p><h4>2. while\u5faa\u73af<\/h4>\n<\/p>\n<p><p><strong>while\u5faa\u73af\u4e5f\u662f\u4e00\u79cd\u53ef\u4ee5\u9010\u4e2a\u8bfb\u53d6\u5b57\u7b26\u4e32\u7684\u65b9\u5f0f\uff0c\u4f46\u9700\u8981\u624b\u52a8\u7ba1\u7406\u7d22\u5f15\u3002<\/strong>\u8fd9\u79cd\u65b9\u6cd5\u5728\u9700\u8981\u5bf9\u7d22\u5f15\u8fdb\u884c\u590d\u6742\u64cd\u4f5c\u65f6\u975e\u5e38\u6709\u7528\u3002\u4ee3\u7801\u793a\u4f8b\u5982\u4e0b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">string = &quot;Hello, World!&quot;<\/p>\n<p>index = 0<\/p>\n<p>while index &lt; len(string):<\/p>\n<p>    print(string[index])<\/p>\n<p>    index += 1<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u6211\u4eec\u4f7f\u7528\u4e86\u4e00\u4e2a<code>index<\/code>\u53d8\u91cf\u6765\u8ddf\u8e2a\u5f53\u524d\u8bfb\u53d6\u5230\u7684\u5b57\u7b26\u4f4d\u7f6e\uff0c\u5e76\u5728\u6bcf\u6b21\u5faa\u73af\u7ed3\u675f\u65f6\u5c06<code>index<\/code>\u52a01\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u901a\u8fc7\u5185\u7f6e\u51fd\u6570\u8bfb\u53d6\u5b57\u7b26\u4e32<\/h3>\n<\/p>\n<p><h4>1. enumerate\u51fd\u6570<\/h4>\n<\/p>\n<p><p><strong>enumerate\u51fd\u6570\u53ef\u4ee5\u5728for\u5faa\u73af\u4e2d\u540c\u65f6\u83b7\u53d6\u5b57\u7b26\u53ca\u5176\u7d22\u5f15\u3002<\/strong>\u8fd9\u79cd\u65b9\u6cd5\u5728\u9700\u8981\u540c\u65f6\u8bbf\u95ee\u5b57\u7b26\u548c\u5176\u7d22\u5f15\u65f6\u7279\u522b\u6709\u7528\u3002\u4ee3\u7801\u793a\u4f8b\u5982\u4e0b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">string = &quot;Hello, World!&quot;<\/p>\n<p>for index, char in enumerate(string):<\/p>\n<p>    print(f&quot;Index: {index}, Character: {char}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c<code>enumerate(string)<\/code>\u4f1a\u8fd4\u56de\u4e00\u4e2a\u5305\u542b\u7d22\u5f15\u548c\u503c\u7684\u5143\u7ec4\uff0c<code>for index, char in enumerate(string)<\/code>\u8bed\u53e5\u5c06\u5176\u89e3\u5305\u6210<code>index<\/code>\u548c<code>char<\/code>\u4e24\u4e2a\u53d8\u91cf\u3002<\/p>\n<\/p>\n<p><h4>2. iter\u51fd\u6570<\/h4>\n<\/p>\n<p><p><strong>iter\u51fd\u6570\u53ef\u4ee5\u5c06\u5b57\u7b26\u4e32\u8f6c\u6362\u4e3a\u4e00\u4e2a\u8fed\u4ee3\u5668\uff0c\u4ece\u800c\u9010\u4e2a\u8bfb\u53d6\u5b57\u7b26\u3002<\/strong>\u8fd9\u79cd\u65b9\u6cd5\u5728\u9700\u8981\u7cbe\u786e\u63a7\u5236\u8fed\u4ee3\u8fc7\u7a0b\u65f6\u975e\u5e38\u6709\u7528\u3002\u4ee3\u7801\u793a\u4f8b\u5982\u4e0b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">string = &quot;Hello, World!&quot;<\/p>\n<p>iterator = iter(string)<\/p>\n<p>while True:<\/p>\n<p>    try:<\/p>\n<p>        char = next(iterator)<\/p>\n<p>        print(char)<\/p>\n<p>    except StopIteration:<\/p>\n<p>        break<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u6211\u4eec\u9996\u5148\u4f7f\u7528<code>iter(string)<\/code>\u5c06\u5b57\u7b26\u4e32\u8f6c\u6362\u4e3a\u4e00\u4e2a\u8fed\u4ee3\u5668\uff0c\u7136\u540e\u5728<code>while<\/code>\u5faa\u73af\u4e2d\u4f7f\u7528<code>next(iterator)<\/code>\u9010\u4e2a\u8bfb\u53d6\u5b57\u7b26\uff0c\u76f4\u5230\u9047\u5230<code>StopIteration<\/code>\u5f02\u5e38\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001\u901a\u8fc7\u5207\u7247\u8bfb\u53d6\u5b57\u7b26\u4e32<\/h3>\n<\/p>\n<p><p><strong>\u5b57\u7b26\u4e32\u5207\u7247\u662f\u4e00\u79cd\u975e\u5e38\u7075\u6d3b\u7684\u8bfb\u53d6\u65b9\u5f0f\uff0c\u9002\u7528\u4e8e\u9700\u8981\u63d0\u53d6\u7279\u5b9a\u8303\u56f4\u5b57\u7b26\u7684\u573a\u666f\u3002<\/strong>\u4ee3\u7801\u793a\u4f8b\u5982\u4e0b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">string = &quot;Hello, World!&quot;<\/p>\n<p>for i in range(len(string)):<\/p>\n<p>    print(string[i:i+1])<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u6211\u4eec\u4f7f\u7528<code>range(len(string))<\/code>\u751f\u6210\u4e00\u4e2a\u7d22\u5f15\u8303\u56f4\uff0c\u5e76\u5728\u5faa\u73af\u4e2d\u901a\u8fc7<code>string[i:i+1]<\/code>\u5207\u7247\u9010\u4e2a\u8bfb\u53d6\u5b57\u7b26\u3002<\/p>\n<\/p>\n<p><h3>\u56db\u3001\u9010\u4e2a\u8bfb\u53d6\u5b57\u7b26\u4e32\u7684\u5e94\u7528\u573a\u666f<\/h3>\n<\/p>\n<p><h4>1. \u5b57\u7b26\u7edf\u8ba1<\/h4>\n<\/p>\n<p><p>\u9010\u4e2a\u8bfb\u53d6\u5b57\u7b26\u4e32\u53ef\u4ee5\u7528\u4e8e\u7edf\u8ba1\u5b57\u7b26\u51fa\u73b0\u7684\u9891\u7387\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from collections import Counter<\/p>\n<p>string = &quot;Hello, World!&quot;<\/p>\n<p>char_count = Counter(string)<\/p>\n<p>print(char_count)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u6211\u4eec\u4f7f\u7528<code>collections.Counter<\/code>\u5bf9\u5b57\u7b26\u4e32\u4e2d\u7684\u5b57\u7b26\u8fdb\u884c\u7edf\u8ba1\u3002<\/p>\n<\/p>\n<p><h4>2. \u5b57\u7b26\u66ff\u6362<\/h4>\n<\/p>\n<p><p>\u9010\u4e2a\u8bfb\u53d6\u5b57\u7b26\u4e32\u53ef\u4ee5\u7528\u4e8e\u5b57\u7b26\u66ff\u6362\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">string = &quot;Hello, World!&quot;<\/p>\n<p>new_string = &quot;&quot;<\/p>\n<p>for char in string:<\/p>\n<p>    if char == &#39;o&#39;:<\/p>\n<p>        new_string += &#39;0&#39;<\/p>\n<p>    else:<\/p>\n<p>        new_string += char<\/p>\n<p>print(new_string)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u6211\u4eec\u5c06\u5b57\u7b26\u4e32\u4e2d\u7684\u6240\u6709<code>&#39;o&#39;<\/code>\u66ff\u6362\u4e3a<code>&#39;0&#39;<\/code>\u3002<\/p>\n<\/p>\n<p><h4>3. \u5b57\u7b26\u89e3\u6790<\/h4>\n<\/p>\n<p><p>\u9010\u4e2a\u8bfb\u53d6\u5b57\u7b26\u4e32\u53ef\u4ee5\u7528\u4e8e\u89e3\u6790\u7279\u5b9a\u683c\u5f0f\u7684\u5b57\u7b26\u4e32\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">string = &quot;name:John;age:30;city:New York&quot;<\/p>\n<p>data = {}<\/p>\n<p>for item in string.split(&#39;;&#39;):<\/p>\n<p>    key, value = item.split(&#39;:&#39;)<\/p>\n<p>    data[key] = value<\/p>\n<p>print(data)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u6211\u4eec\u89e3\u6790\u4e00\u4e2a\u5305\u542b\u952e\u503c\u5bf9\u7684\u5b57\u7b26\u4e32\uff0c\u5e76\u5c06\u5176\u8f6c\u6362\u4e3a\u5b57\u5178\u3002<\/p>\n<\/p>\n<p><h3>\u4e94\u3001\u6027\u80fd\u8003\u8651<\/h3>\n<\/p>\n<p><p><strong>\u9010\u4e2a\u8bfb\u53d6\u5b57\u7b26\u4e32\u7684\u6027\u80fd\u901a\u5e38\u4e0d\u662f\u95ee\u9898\uff0c\u4f46\u5728\u5904\u7406\u975e\u5e38\u5927\u7684\u5b57\u7b26\u4e32\u65f6\uff0c\u9700\u8981\u6ce8\u610f\u6548\u7387\u3002<\/strong>\u4ee5\u4e0b\u662f\u4e00\u4e9b\u63d0\u9ad8\u6027\u80fd\u7684\u5efa\u8bae\uff1a<\/p>\n<\/p>\n<p><h4>1. \u4f7f\u7528\u751f\u6210\u5668<\/h4>\n<\/p>\n<p><p>\u751f\u6210\u5668\u53ef\u4ee5\u5728\u9010\u4e2a\u8bfb\u53d6\u5b57\u7b26\u65f6\u8282\u7701\u5185\u5b58\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def char_generator(string):<\/p>\n<p>    for char in string:<\/p>\n<p>        yield char<\/p>\n<p>string = &quot;Hello, World!&quot;<\/p>\n<p>for char in char_generator(string):<\/p>\n<p>    print(char)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c<code>char_generator<\/code>\u51fd\u6570\u662f\u4e00\u4e2a\u751f\u6210\u5668\uff0c\u9010\u4e2a\u751f\u6210\u5b57\u7b26\u3002<\/p>\n<\/p>\n<p><h4>2. \u4f7f\u7528\u5217\u8868\u63a8\u5bfc<\/h4>\n<\/p>\n<p><p>\u5217\u8868\u63a8\u5bfc\u53ef\u4ee5\u63d0\u9ad8\u4ee3\u7801\u7684\u7b80\u6d01\u6027\u548c\u6267\u884c\u901f\u5ea6\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">string = &quot;Hello, World!&quot;<\/p>\n<p>char_list = [char for char in string]<\/p>\n<p>print(char_list)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u6211\u4eec\u4f7f\u7528\u5217\u8868\u63a8\u5bfc\u5c06\u5b57\u7b26\u4e32\u4e2d\u7684\u5b57\u7b26\u9010\u4e2a\u5b58\u50a8\u5230\u5217\u8868\u4e2d\u3002<\/p>\n<\/p>\n<p><h3>\u516d\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u9010\u4e2a\u8bfb\u53d6\u5b57\u7b26\u4e32\u5728Python\u4e2d\u6709\u591a\u79cd\u65b9\u6cd5\uff0c\u5305\u62ecfor\u5faa\u73af\u3001while\u5faa\u73af\u3001\u5185\u7f6e\u51fd\u6570\u548c\u5207\u7247\u7b49\u3002\u8fd9\u4e9b\u65b9\u6cd5\u5404\u6709\u4f18\u7f3a\u70b9\uff0c\u9002\u7528\u4e8e\u4e0d\u540c\u7684\u573a\u666f\u3002\u901a\u8fc7\u5408\u7406\u9009\u62e9\u548c\u7ec4\u5408\u8fd9\u4e9b\u65b9\u6cd5\uff0c\u53ef\u4ee5\u9ad8\u6548\u5730\u5b9e\u73b0\u5b57\u7b26\u8bfb\u53d6\u548c\u5904\u7406\u4efb\u52a1\u3002\u540c\u65f6\uff0c\u5728\u5904\u7406\u5927\u89c4\u6a21\u6570\u636e\u65f6\uff0c\u9700\u8981\u6ce8\u610f\u6027\u80fd\u95ee\u9898\uff0c\u53ef\u4ee5\u901a\u8fc7\u751f\u6210\u5668\u548c\u5217\u8868\u63a8\u5bfc\u7b49\u624b\u6bb5\u8fdb\u884c\u4f18\u5316\u3002<\/p>\n<\/p>\n<p><p>\u9010\u4e2a\u8bfb\u53d6\u5b57\u7b26\u4e32\u7684\u6280\u672f\u4e0d\u4ec5\u662fPython\u7f16\u7a0b\u4e2d\u7684\u57fa\u7840\u6280\u80fd\uff0c\u8fd8\u5728\u8bb8\u591a\u5b9e\u9645\u5e94\u7528\u4e2d\u626e\u6f14\u7740\u91cd\u8981\u89d2\u8272\u3002\u638c\u63e1\u8fd9\u4e9b\u65b9\u6cd5\uff0c\u5c06\u5927\u5927\u63d0\u9ad8\u4f60\u7684\u7f16\u7a0b\u6548\u7387\u548c\u4ee3\u7801\u8d28\u91cf\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u9010\u4e2a\u8bfb\u53d6\u5b57\u7b26\u4e32\u7684\u5b57\u7b26\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528for\u5faa\u73af\u6765\u9010\u4e2a\u8bfb\u53d6\u5b57\u7b26\u4e32\u7684\u5b57\u7b26\u3002\u901a\u8fc7\u904d\u5386\u5b57\u7b26\u4e32\uff0c\u4f60\u53ef\u4ee5\u8bbf\u95ee\u6bcf\u4e2a\u5b57\u7b26\u5e76\u8fdb\u884c\u76f8\u5e94\u7684\u64cd\u4f5c\u3002\u4f8b\u5982\uff1a<\/p>\n<pre><code class=\"language-python\">my_string = &quot;Hello&quot;\nfor char in my_string:\n    print(char)\n<\/code><\/pre>\n<p>\u4ee5\u4e0a\u4ee3\u7801\u4f1a\u9010\u884c\u6253\u5370\u51fa\u5b57\u7b26\u4e32\u4e2d\u7684\u6bcf\u4e2a\u5b57\u7b26\u3002<\/p>\n<p><strong>\u662f\u5426\u53ef\u4ee5\u4f7f\u7528\u7d22\u5f15\u6765\u8bbf\u95ee\u5b57\u7b26\u4e32\u4e2d\u7684\u5b57\u7b26\uff1f<\/strong><br \/>\u5b57\u7b26\u4e32\u5728Python\u4e2d\u662f\u53ef\u4ee5\u901a\u8fc7\u7d22\u5f15\u8bbf\u95ee\u7684\u3002\u4f60\u53ef\u4ee5\u4f7f\u7528\u65b9\u62ec\u53f7<code>[]<\/code>\u6765\u6307\u5b9a\u4f60\u60f3\u8981\u8bbf\u95ee\u7684\u5b57\u7b26\u4f4d\u7f6e\u3002\u4f8b\u5982\uff0c<code>my_string[0]<\/code>\u5c06\u8fd4\u56de&#39;H&#39;\uff0c<code>my_string[1]<\/code>\u5c06\u8fd4\u56de&#39;e&#39;\u3002\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u7d22\u5f15\u662f\u4ece0\u5f00\u59cb\u7684\u3002<\/p>\n<p><strong>\u4f7f\u7528\u5207\u7247\u53ef\u4ee5\u5982\u4f55\u83b7\u53d6\u5b57\u7b26\u4e32\u7684\u4e00\u90e8\u5206\uff1f<\/strong><br \/>\u5207\u7247\u662f\u83b7\u53d6\u5b57\u7b26\u4e32\u90e8\u5206\u7684\u6709\u6548\u65b9\u6cd5\u3002\u901a\u8fc7\u4f7f\u7528\u5192\u53f7<code>:<\/code>\u6765\u5b9a\u4e49\u5f00\u59cb\u548c\u7ed3\u675f\u7684\u7d22\u5f15\uff0c\u4f60\u53ef\u4ee5\u63d0\u53d6\u51fa\u4f60\u9700\u8981\u7684\u5b57\u7b26\u3002\u4f8b\u5982\uff0c<code>my_string[1:4]<\/code>\u5c06\u8fd4\u56de&#39;ell&#39;\uff0c\u800c<code>my_string[:3]<\/code>\u5219\u8fd4\u56de&#39;Hel&#39;\u3002\u5207\u7247\u975e\u5e38\u7075\u6d3b\uff0c\u53ef\u4ee5\u6839\u636e\u9700\u6c42\u8c03\u6574\u8d77\u59cb\u548c\u7ed3\u675f\u4f4d\u7f6e\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\uff0c\u9010\u4e2a\u8bfb\u53d6\u5b57\u7b26\u4e32\u7684\u65b9\u6cd5\u6709\u5f88\u591a\uff0c\u4e3b\u8981\u5305\u62ec\u901a\u8fc7\u5faa\u73af\u3001\u5207\u7247\u548c\u5185\u7f6e\u51fd\u6570\u7b49\u624b\u6bb5\u3002\u5176\u4e2d\uff0c\u6700\u5e38\u7528\u7684\u65b9\u6cd5\u662f\u901a\u8fc7 [&hellip;]","protected":false},"author":3,"featured_media":1147205,"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\/1147201"}],"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=1147201"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1147201\/revisions"}],"predecessor-version":[{"id":1147206,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1147201\/revisions\/1147206"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1147205"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1147201"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1147201"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1147201"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}