{"id":1027004,"date":"2024-12-31T10:47:23","date_gmt":"2024-12-31T02:47:23","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1027004.html"},"modified":"2024-12-31T10:47:26","modified_gmt":"2024-12-31T02:47:26","slug":"python%e5%a6%82%e4%bd%95%e8%be%93%e5%87%ba%e5%ad%97%e7%ac%a6%e4%b8%b2%e9%95%bf%e5%ba%a6","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1027004.html","title":{"rendered":"python\u5982\u4f55\u8f93\u51fa\u5b57\u7b26\u4e32\u957f\u5ea6"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-docs.pingcode.com\/wp-content\/uploads\/2024\/12\/002ccd9d-fd04-4315-9132-3249deb72d7e.webp?x-oss-process=image\/auto-orient,1\/format,webp\" alt=\"python\u5982\u4f55\u8f93\u51fa\u5b57\u7b26\u4e32\u957f\u5ea6\" \/><\/p>\n<p><p> <strong>\u5728Python\u4e2d\uff0c\u4f7f\u7528len()\u51fd\u6570\u53ef\u4ee5\u8f7b\u677e\u83b7\u53d6\u5b57\u7b26\u4e32\u7684\u957f\u5ea6\u3002<\/strong>len()\u51fd\u6570\u662fPython\u5185\u7f6e\u51fd\u6570\uff0c\u4e13\u95e8\u7528\u4e8e\u8fd4\u56de\u5bf9\u8c61\uff08\u4f8b\u5982\u5b57\u7b26\u4e32\u3001\u5217\u8868\u3001\u5143\u7ec4\u7b49\uff09\u7684\u957f\u5ea6\u3002\u901a\u8fc7\u5c06\u4e00\u4e2a\u5b57\u7b26\u4e32\u4f5c\u4e3a\u53c2\u6570\u4f20\u9012\u7ed9len()\u51fd\u6570\uff0c\u51fd\u6570\u5c06\u8fd4\u56de\u8be5\u5b57\u7b26\u4e32\u7684\u5b57\u7b26\u6570\u3002\u4e0b\u9762\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528len()\u51fd\u6570\uff0c\u4ee5\u53ca\u4e00\u4e9b\u53ef\u80fd\u9047\u5230\u7684\u76f8\u5173\u95ee\u9898\u548c\u89e3\u51b3\u65b9\u6848\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001LEN()\u51fd\u6570\u7684\u57fa\u672c\u7528\u6cd5<\/h3>\n<\/p>\n<p><p>Python\u4e2d\u7684len()\u51fd\u6570\u662f\u83b7\u53d6\u5b57\u7b26\u4e32\u957f\u5ea6\u7684\u6700\u7b80\u5355\u548c\u6700\u5e38\u7528\u7684\u65b9\u6cd5\u3002\u5b83\u7684\u4f7f\u7528\u975e\u5e38\u7b80\u5355\uff0c\u53ea\u9700\u8981\u5c06\u5b57\u7b26\u4e32\u4f20\u9012\u7ed9len()\u51fd\u6570\u5373\u53ef\u3002\u4e0b\u9762\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">my_string = &quot;Hello, world!&quot;<\/p>\n<p>length = len(my_string)<\/p>\n<p>print(length)  # \u8f93\u51fa: 13<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c<code>my_string<\/code>\u662f\u4e00\u4e2a\u5b57\u7b26\u4e32\u53d8\u91cf\uff0c\u6211\u4eec\u5c06\u5176\u4f20\u9012\u7ed9len()\u51fd\u6570\uff0c\u5f97\u5230\u7684\u7ed3\u679c\u662f\u5b57\u7b26\u4e32\u7684\u957f\u5ea6\uff0c\u537313\u4e2a\u5b57\u7b26\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u5904\u7406\u591a\u884c\u5b57\u7b26\u4e32<\/h3>\n<\/p>\n<p><p>\u5728Python\u4e2d\uff0c\u5b57\u7b26\u4e32\u53ef\u4ee5\u8de8\u8d8a\u591a\u884c\uff0c\u8fd9\u79cd\u5b57\u7b26\u4e32\u88ab\u79f0\u4e3a\u591a\u884c\u5b57\u7b26\u4e32\u3002\u591a\u884c\u5b57\u7b26\u4e32\u4f7f\u7528\u4e09\u4e2a\u5f15\u53f7\uff08\u5355\u5f15\u53f7\u6216\u53cc\u5f15\u53f7\u90fd\u53ef\u4ee5\uff09\u6765\u5b9a\u4e49\u3002len()\u51fd\u6570\u540c\u6837\u53ef\u4ee5\u7528\u4e8e\u591a\u884c\u5b57\u7b26\u4e32\uff0c\u5e76\u8fd4\u56de\u5b57\u7b26\u4e32\u7684\u603b\u957f\u5ea6\uff0c\u5305\u62ec\u6362\u884c\u7b26\uff08<code>\\n<\/code>\uff09\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">multi_line_string = &quot;&quot;&quot;Hello,<\/p>\n<p>world!<\/p>\n<p>This is a multi-line string.&quot;&quot;&quot;<\/p>\n<p>length = len(multi_line_string)<\/p>\n<p>print(length)  # \u8f93\u51fa: 36<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u591a\u884c\u5b57\u7b26\u4e32\u5305\u542b\u6362\u884c\u7b26\uff0clen()\u51fd\u6570\u8fd4\u56de\u5b57\u7b26\u4e32\u7684\u603b\u957f\u5ea6\uff0c\u5305\u62ec\u6240\u6709\u5b57\u7b26\u548c\u6362\u884c\u7b26\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001\u5904\u7406\u5305\u542b\u7a7a\u683c\u7684\u5b57\u7b26\u4e32<\/h3>\n<\/p>\n<p><p>\u5b57\u7b26\u4e32\u53ef\u80fd\u5305\u542b\u7a7a\u683c\u3001\u5236\u8868\u7b26\u6216\u5176\u4ed6\u7a7a\u767d\u5b57\u7b26\u3002len()\u51fd\u6570\u4f1a\u5c06\u6240\u6709\u7a7a\u767d\u5b57\u7b26\u8ba1\u7b97\u5728\u5185\u3002\u5982\u679c\u5e0c\u671b\u5ffd\u7565\u7a7a\u767d\u5b57\u7b26\uff0c\u53ef\u4ee5\u4f7f\u7528\u5b57\u7b26\u4e32\u7684strip()\u65b9\u6cd5\u53bb\u9664\u7a7a\u683c\uff0c\u7136\u540e\u8ba1\u7b97\u957f\u5ea6\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">string_with_spaces = &quot;   Hello, world!   &quot;<\/p>\n<p>length = len(string_with_spaces.strip())<\/p>\n<p>print(length)  # \u8f93\u51fa: 13<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0cstrip()\u65b9\u6cd5\u53bb\u9664\u4e86\u5b57\u7b26\u4e32\u4e24\u7aef\u7684\u7a7a\u683c\uff0clen()\u51fd\u6570\u8ba1\u7b97\u7684\u957f\u5ea6\u4e3a13\u3002<\/p>\n<\/p>\n<p><h3>\u56db\u3001\u5904\u7406Unicode\u5b57\u7b26\u4e32<\/h3>\n<\/p>\n<p><p>\u5728Python 3\u4e2d\uff0c\u5b57\u7b26\u4e32\u662f\u4ee5Unicode\u7f16\u7801\u7684\uff0c\u8fd9\u610f\u5473\u7740\u5b83\u4eec\u53ef\u4ee5\u5305\u542b\u5404\u79cd\u8bed\u8a00\u7684\u5b57\u7b26\u3002len()\u51fd\u6570\u53ef\u4ee5\u6b63\u786e\u5904\u7406Unicode\u5b57\u7b26\u4e32\uff0c\u5e76\u8fd4\u56de\u5b57\u7b26\u7684\u6570\u91cf\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">unicode_string = &quot;\u4f60\u597d\uff0c\u4e16\u754c\uff01&quot;<\/p>\n<p>length = len(unicode_string)<\/p>\n<p>print(length)  # \u8f93\u51fa: 6<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0cUnicode\u5b57\u7b26\u4e32\u5305\u542b\u4e2d\u6587\u5b57\u7b26\uff0clen()\u51fd\u6570\u8fd4\u56de\u5b57\u7b26\u7684\u6570\u91cf\uff0c\u53736\u4e2a\u5b57\u7b26\u3002<\/p>\n<\/p>\n<p><h3>\u4e94\u3001\u5728\u51fd\u6570\u4e2d\u4f7f\u7528len()\u51fd\u6570<\/h3>\n<\/p>\n<p><p>\u6211\u4eec\u53ef\u4ee5\u5c06len()\u51fd\u6570\u5c01\u88c5\u5728\u4e00\u4e2a\u51fd\u6570\u4e2d\uff0c\u4ee5\u4fbf\u5728\u7a0b\u5e8f\u4e2d\u591a\u6b21\u8c03\u7528\u3002\u4e0b\u9762\u662f\u4e00\u4e2a\u793a\u4f8b\u51fd\u6570\uff0c\u7528\u4e8e\u8ba1\u7b97\u7ed9\u5b9a\u5b57\u7b26\u4e32\u7684\u957f\u5ea6\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def get_string_length(s):<\/p>\n<p>    return len(s)<\/p>\n<p>my_string = &quot;Python is awesome!&quot;<\/p>\n<p>length = get_string_length(my_string)<\/p>\n<p>print(length)  # \u8f93\u51fa: 18<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u6211\u4eec\u5b9a\u4e49\u4e86\u4e00\u4e2a\u540d\u4e3a<code>get_string_length<\/code>\u7684\u51fd\u6570\uff0c\u8be5\u51fd\u6570\u63a5\u53d7\u4e00\u4e2a\u5b57\u7b26\u4e32\u4f5c\u4e3a\u53c2\u6570\uff0c\u5e76\u8fd4\u56de\u8be5\u5b57\u7b26\u4e32\u7684\u957f\u5ea6\u3002<\/p>\n<\/p>\n<p><h3>\u516d\u3001\u5904\u7406\u7279\u6b8a\u5b57\u7b26<\/h3>\n<\/p>\n<p><p>\u5b57\u7b26\u4e32\u4e2d\u53ef\u80fd\u5305\u542b\u7279\u6b8a\u5b57\u7b26\uff0c\u5982\u6362\u884c\u7b26\uff08<code>\\n<\/code>\uff09\u3001\u5236\u8868\u7b26\uff08<code>\\t<\/code>\uff09\u7b49\u3002len()\u51fd\u6570\u4f1a\u5c06\u8fd9\u4e9b\u7279\u6b8a\u5b57\u7b26\u8ba1\u7b97\u5728\u5185\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">special_string = &quot;Hello,\\nworld!\\tWelcome!&quot;<\/p>\n<p>length = len(special_string)<\/p>\n<p>print(length)  # \u8f93\u51fa: 21<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u5b57\u7b26\u4e32\u5305\u542b\u6362\u884c\u7b26\u548c\u5236\u8868\u7b26\uff0clen()\u51fd\u6570\u8fd4\u56de\u5b57\u7b26\u4e32\u7684\u603b\u957f\u5ea6\uff0c\u5305\u62ec\u6240\u6709\u7279\u6b8a\u5b57\u7b26\u3002<\/p>\n<\/p>\n<p><h3>\u4e03\u3001\u7ed3\u5408\u5176\u4ed6\u5b57\u7b26\u4e32\u65b9\u6cd5\u4f7f\u7528<\/h3>\n<\/p>\n<p><p>len()\u51fd\u6570\u53ef\u4ee5\u4e0e\u5176\u4ed6\u5b57\u7b26\u4e32\u65b9\u6cd5\u7ed3\u5408\u4f7f\u7528\uff0c\u4ee5\u5b9e\u73b0\u66f4\u590d\u6742\u7684\u5b57\u7b26\u4e32\u64cd\u4f5c\u3002\u4f8b\u5982\uff0c\u53ef\u4ee5\u4f7f\u7528replace()\u65b9\u6cd5\u66ff\u6362\u5b57\u7b26\u4e32\u4e2d\u7684\u5b57\u7b26\uff0c\u7136\u540e\u8ba1\u7b97\u957f\u5ea6\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">original_string = &quot;Hello, world!&quot;<\/p>\n<p>modified_string = original_string.replace(&quot;o&quot;, &quot;&quot;)<\/p>\n<p>length = len(modified_string)<\/p>\n<p>print(length)  # \u8f93\u51fa: 11<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u6211\u4eec\u4f7f\u7528replace()\u65b9\u6cd5\u53bb\u9664\u5b57\u7b26\u4e32\u4e2d\u7684\u6240\u6709<code>o<\/code>\u5b57\u7b26\uff0clen()\u51fd\u6570\u8fd4\u56de\u4fee\u6539\u540e\u7684\u5b57\u7b26\u4e32\u957f\u5ea6\u3002<\/p>\n<\/p>\n<p><h3>\u516b\u3001\u5b57\u7b26\u4e32\u957f\u5ea6\u4e0e\u7f16\u7801<\/h3>\n<\/p>\n<p><p>\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u53ef\u80fd\u9700\u8981\u77e5\u9053\u5b57\u7b26\u4e32\u5728\u7279\u5b9a\u7f16\u7801\u4e0b\u7684\u5b57\u8282\u957f\u5ea6\u3002\u8fd9\u53ef\u4ee5\u901a\u8fc7encode()\u65b9\u6cd5\u5c06\u5b57\u7b26\u4e32\u7f16\u7801\u4e3a\u5b57\u8282\uff0c\u7136\u540e\u4f7f\u7528len()\u51fd\u6570\u8ba1\u7b97\u5b57\u8282\u957f\u5ea6\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">string = &quot;Hello, world!&quot;<\/p>\n<p>byte_length = len(string.encode(&#39;utf-8&#39;))<\/p>\n<p>print(byte_length)  # \u8f93\u51fa: 13<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u6211\u4eec\u5c06\u5b57\u7b26\u4e32\u7f16\u7801\u4e3aUTF-8\u5b57\u8282\uff0c\u5e76\u8ba1\u7b97\u5b57\u8282\u957f\u5ea6\u3002\u5bf9\u4e8eASCII\u5b57\u7b26\uff0cUTF-8\u7f16\u7801\u7684\u5b57\u8282\u957f\u5ea6\u4e0e\u5b57\u7b26\u957f\u5ea6\u76f8\u540c\u3002<\/p>\n<\/p>\n<p><h3>\u4e5d\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>Python\u4e2d\u7684len()\u51fd\u6570\u662f\u8ba1\u7b97\u5b57\u7b26\u4e32\u957f\u5ea6\u7684\u5f3a\u5927\u5de5\u5177\u3002\u5b83\u53ef\u4ee5\u5904\u7406\u5404\u79cd\u7c7b\u578b\u7684\u5b57\u7b26\u4e32\uff0c\u5305\u62ec\u591a\u884c\u5b57\u7b26\u4e32\u3001\u5305\u542b\u7a7a\u683c\u548c\u7279\u6b8a\u5b57\u7b26\u7684\u5b57\u7b26\u4e32\u3001Unicode\u5b57\u7b26\u4e32\u7b49\u3002\u901a\u8fc7\u7ed3\u5408\u5176\u4ed6\u5b57\u7b26\u4e32\u65b9\u6cd5\uff0clen()\u51fd\u6570\u53ef\u4ee5\u5b9e\u73b0\u66f4\u590d\u6742\u7684\u5b57\u7b26\u4e32\u64cd\u4f5c\u3002\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u7406\u89e3\u548c\u6b63\u786e\u4f7f\u7528len()\u51fd\u6570\u53ef\u4ee5\u5e2e\u52a9\u6211\u4eec\u7f16\u5199\u66f4\u9ad8\u6548\u548c\u53ef\u9760\u7684Python\u4ee3\u7801\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u83b7\u53d6\u5b57\u7b26\u4e32\u7684\u957f\u5ea6\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u83b7\u53d6\u5b57\u7b26\u4e32\u957f\u5ea6\u7684\u6700\u7b80\u5355\u65b9\u6cd5\u662f\u4f7f\u7528\u5185\u7f6e\u7684<code>len()<\/code>\u51fd\u6570\u3002\u53ea\u9700\u5c06\u5b57\u7b26\u4e32\u4f5c\u4e3a\u53c2\u6570\u4f20\u9012\u7ed9\u8fd9\u4e2a\u51fd\u6570\uff0c\u4f8b\u5982\uff1a  <\/p>\n<pre><code class=\"language-python\">my_string = &quot;Hello, World!&quot;\nlength = len(my_string)\nprint(length)  # \u8f93\u51fa: 13\n<\/code><\/pre>\n<p>\u8fd9\u4e2a\u51fd\u6570\u4f1a\u8fd4\u56de\u5b57\u7b26\u4e32\u4e2d\u5b57\u7b26\u7684\u6570\u91cf\uff0c\u5305\u62ec\u7a7a\u683c\u548c\u6807\u70b9\u7b26\u53f7\u3002<\/p>\n<p><strong>\u9664\u4e86len()\uff0c\u8fd8\u6709\u5176\u4ed6\u65b9\u6cd5\u53ef\u4ee5\u83b7\u53d6\u5b57\u7b26\u4e32\u957f\u5ea6\u5417\uff1f<\/strong><br \/>\u867d\u7136<code>len()<\/code>\u662f\u6700\u5e38\u7528\u7684\u65b9\u6cd5\uff0c\u4f46\u53ef\u4ee5\u901a\u8fc7\u904d\u5386\u5b57\u7b26\u4e32\u4e2d\u7684\u6bcf\u4e2a\u5b57\u7b26\u6765\u624b\u52a8\u8ba1\u7b97\u957f\u5ea6\u3002\u4f8b\u5982\uff1a  <\/p>\n<pre><code class=\"language-python\">my_string = &quot;Hello, World!&quot;\ncount = 0\nfor char in my_string:\n    count += 1\nprint(count)  # \u8f93\u51fa: 13\n<\/code><\/pre>\n<p>\u8fd9\u79cd\u65b9\u6cd5\u4e0d\u5982<code>len()<\/code>\u9ad8\u6548\uff0c\u4f46\u5bf9\u4e8e\u5b66\u4e60\u5b57\u7b26\u4e32\u5904\u7406\u7684\u57fa\u672c\u6982\u5ff5\u975e\u5e38\u6709\u5e2e\u52a9\u3002<\/p>\n<p><strong>\u5b57\u7b26\u4e32\u957f\u5ea6\u7684\u8ba1\u7b97\u662f\u5426\u4f1a\u53d7\u5230\u7f16\u7801\u5f71\u54cd\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c<code>len()<\/code>\u51fd\u6570\u8ba1\u7b97\u7684\u662f\u5b57\u7b26\u6570\u800c\u4e0d\u662f\u5b57\u8282\u6570\uff0c\u56e0\u6b64\u5b83\u5bf9\u4e8eUnicode\u5b57\u7b26\u4e32\u7684\u5904\u7406\u975e\u5e38\u53cb\u597d\u3002\u7136\u800c\uff0c\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u5c24\u5176\u662f\u5904\u7406\u5b57\u8282\u4e32\u65f6\uff0c\u5b57\u7b26\u7684\u5b57\u8282\u957f\u5ea6\u53ef\u80fd\u4e0e\u5b9e\u9645\u5b57\u7b26\u6570\u4e0d\u540c\u3002\u4f8b\u5982\uff0c\u67d0\u4e9b\u5b57\u7b26\u5728UTF-8\u7f16\u7801\u4e2d\u53ef\u80fd\u5360\u7528\u591a\u4e2a\u5b57\u8282\u3002\u56e0\u6b64\uff0c\u82e5\u9700\u8981\u5904\u7406\u5b57\u8282\u957f\u5ea6\uff0c\u53ef\u4ee5\u4f7f\u7528<code>len()<\/code>\u8ba1\u7b97\u5b57\u8282\u4e32\u7684\u957f\u5ea6\u3002\u793a\u4f8b\u4ee3\u7801\u5982\u4e0b\uff1a  <\/p>\n<pre><code class=\"language-python\">my_bytes = b&#39;Hello, World!&#39;\nbyte_length = len(my_bytes)\nprint(byte_length)  # \u8f93\u51fa: 13\n<\/code><\/pre>\n<p>\u4e86\u89e3\u8fd9\u4e9b\u5dee\u5f02\u5bf9\u4e8e\u5904\u7406\u4e0d\u540c\u5b57\u7b26\u7f16\u7801\u975e\u5e38\u91cd\u8981\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\uff0c\u4f7f\u7528len()\u51fd\u6570\u53ef\u4ee5\u8f7b\u677e\u83b7\u53d6\u5b57\u7b26\u4e32\u7684\u957f\u5ea6\u3002len()\u51fd\u6570\u662fPython\u5185\u7f6e\u51fd\u6570\uff0c\u4e13\u95e8\u7528\u4e8e\u8fd4 [&hellip;]","protected":false},"author":3,"featured_media":1027014,"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\/1027004"}],"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=1027004"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1027004\/revisions"}],"predecessor-version":[{"id":1027017,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1027004\/revisions\/1027017"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1027014"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1027004"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1027004"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1027004"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}