{"id":1109643,"date":"2025-01-08T17:12:04","date_gmt":"2025-01-08T09:12:04","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1109643.html"},"modified":"2025-01-08T17:12:07","modified_gmt":"2025-01-08T09:12:07","slug":"python%e4%b8%ad%e5%ad%97%e7%ac%a6%e4%b8%b2%e7%9a%84%e9%95%bf%e5%ba%a6%e5%a6%82%e4%bd%95%e8%a1%a8%e7%a4%ba","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1109643.html","title":{"rendered":"Python\u4e2d\u5b57\u7b26\u4e32\u7684\u957f\u5ea6\u5982\u4f55\u8868\u793a"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25072828\/617a879b-51cb-4e4e-9177-11db82d1b167.webp\" alt=\"Python\u4e2d\u5b57\u7b26\u4e32\u7684\u957f\u5ea6\u5982\u4f55\u8868\u793a\" \/><\/p>\n<p><p> <strong>Python\u4e2d\u5b57\u7b26\u4e32\u7684\u957f\u5ea6\u53ef\u4ee5\u4f7f\u7528\u5185\u7f6e\u51fd\u6570len()\u6765\u8868\u793a\u3001len()\u51fd\u6570\u80fd\u591f\u8ba1\u7b97\u5e76\u8fd4\u56de\u5b57\u7b26\u4e32\u4e2d\u5b57\u7b26\u7684\u603b\u6570\u3001\u4f7f\u7528\u6b64\u65b9\u6cd5\u53ef\u4ee5\u8f7b\u677e\u83b7\u53d6\u5b57\u7b26\u4e32\u7684\u957f\u5ea6\u5e76\u5728\u5404\u79cd\u5e94\u7528\u573a\u666f\u4e2d\u4f7f\u7528\u3002<\/strong> \u4f8b\u5982\uff0c\u5728\u5904\u7406\u7528\u6237\u8f93\u5165\u65f6\uff0c\u60a8\u53ef\u80fd\u9700\u8981\u68c0\u67e5\u5b57\u7b26\u4e32\u7684\u957f\u5ea6\u4ee5\u786e\u4fdd\u5176\u7b26\u5408\u7279\u5b9a\u8981\u6c42\u3002\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u5728Python\u4e2d\u4f7f\u7528len()\u51fd\u6570\u83b7\u53d6\u5b57\u7b26\u4e32\u7684\u957f\u5ea6\uff0c\u5e76\u63a2\u8ba8\u5176\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\u7684\u4e00\u4e9b\u5b9e\u4f8b\u548c\u6ce8\u610f\u4e8b\u9879\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001len()\u51fd\u6570\u7684\u57fa\u672c\u4f7f\u7528<\/p>\n<\/p>\n<p><p>\u8981\u83b7\u53d6\u5b57\u7b26\u4e32\u7684\u957f\u5ea6\uff0c\u6700\u7b80\u5355\u7684\u65b9\u6cd5\u662f\u4f7f\u7528Python\u7684\u5185\u7f6e\u51fd\u6570len()\u3002\u8be5\u51fd\u6570\u63a5\u53d7\u4e00\u4e2a\u5b57\u7b26\u4e32\u4f5c\u4e3a\u53c2\u6570\uff0c\u5e76\u8fd4\u56de\u8be5\u5b57\u7b26\u4e32\u4e2d\u5b57\u7b26\u7684\u603b\u6570\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u57fa\u672c\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(f&quot;The length of the string is: {length}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c<code>my_string<\/code>\u662f\u4e00\u4e2a\u5305\u542b13\u4e2a\u5b57\u7b26\u7684\u5b57\u7b26\u4e32\u3002\u8c03\u7528<code>len(my_string)<\/code>\u5c06\u8fd4\u56de13\uff0c\u5e76\u5c06\u5176\u5b58\u50a8\u5728\u53d8\u91cf<code>length<\/code>\u4e2d\u3002\u6700\u7ec8\uff0c\u7a0b\u5e8f\u8f93\u51fa\u5b57\u7b26\u4e32\u7684\u957f\u5ea6\u3002<\/p>\n<\/p>\n<p><p>\u4e8c\u3001\u4f7f\u7528len()\u51fd\u6570\u5904\u7406\u7528\u6237\u8f93\u5165<\/p>\n<\/p>\n<p><p>\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u60a8\u53ef\u80fd\u9700\u8981\u5904\u7406\u7528\u6237\u8f93\u5165\u5e76\u68c0\u67e5\u5176\u957f\u5ea6\u3002\u4f8b\u5982\uff0c\u5728\u7528\u6237\u6ce8\u518c\u7cfb\u7edf\u4e2d\uff0c\u60a8\u53ef\u80fd\u9700\u8981\u786e\u4fdd\u7528\u6237\u540d\u7684\u957f\u5ea6\u5728\u67d0\u4e2a\u8303\u56f4\u5185\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u793a\u4f8b\u4ee3\u7801\uff0c\u6f14\u793a\u5982\u4f55\u68c0\u67e5\u7528\u6237\u540d\u7684\u957f\u5ea6\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">username = input(&quot;Enter your username: &quot;)<\/p>\n<p>min_length = 5<\/p>\n<p>max_length = 15<\/p>\n<p>if len(username) &lt; min_length:<\/p>\n<p>    print(f&quot;Username is too short. Minimum length is {min_length}.&quot;)<\/p>\n<p>elif len(username) &gt; max_length:<\/p>\n<p>    print(f&quot;Username is too long. Maximum length is {max_length}.&quot;)<\/p>\n<p>else:<\/p>\n<p>    print(&quot;Username is valid.&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u7a0b\u5e8f\u63d0\u793a\u7528\u6237\u8f93\u5165\u7528\u6237\u540d\uff0c\u5e76\u68c0\u67e5\u5176\u957f\u5ea6\u662f\u5426\u57285\u523015\u4e2a\u5b57\u7b26\u4e4b\u95f4\u3002\u5982\u679c\u7528\u6237\u540d\u7684\u957f\u5ea6\u4e0d\u7b26\u5408\u8981\u6c42\uff0c\u7a0b\u5e8f\u5c06\u8f93\u51fa\u76f8\u5e94\u7684\u9519\u8bef\u6d88\u606f\u3002<\/p>\n<\/p>\n<p><p>\u4e09\u3001\u5b57\u7b26\u4e32\u957f\u5ea6\u5728\u6570\u636e\u5904\u7406\u4e2d\u7684\u5e94\u7528<\/p>\n<\/p>\n<p><p>\u5728\u6570\u636e\u5904\u7406\u548c\u5206\u6790\u8fc7\u7a0b\u4e2d\uff0c\u5b57\u7b26\u4e32\u7684\u957f\u5ea6\u4e5f\u53ef\u4ee5\u7528\u4e8e\u5404\u79cd\u64cd\u4f5c\u3002\u4f8b\u5982\uff0c\u5728\u6570\u636e\u6e05\u6d17\u8fc7\u7a0b\u4e2d\uff0c\u60a8\u53ef\u80fd\u9700\u8981\u5220\u9664\u6216\u4fee\u526a\u8fc7\u957f\u6216\u8fc7\u77ed\u7684\u5b57\u7b26\u4e32\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u793a\u4f8b\u4ee3\u7801\uff0c\u6f14\u793a\u5982\u4f55\u8fc7\u6ee4\u6389\u957f\u5ea6\u4e0d\u7b26\u5408\u8981\u6c42\u7684\u5b57\u7b26\u4e32\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">data = [&quot;apple&quot;, &quot;banana&quot;, &quot;cherry&quot;, &quot;date&quot;, &quot;elderberry&quot;, &quot;fig&quot;, &quot;grape&quot;]<\/p>\n<p>min_length = 5<\/p>\n<p>max_length = 10<\/p>\n<p>filtered_data = [item for item in data if min_length &lt;= len(item) &lt;= max_length]<\/p>\n<p>print(f&quot;Filtered data: {filtered_data}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c<code>data<\/code>\u662f\u4e00\u4e2a\u5305\u542b\u591a\u4e2a\u5b57\u7b26\u4e32\u7684\u5217\u8868\u3002\u901a\u8fc7\u5217\u8868\u63a8\u5bfc\u5f0f\uff0c\u6211\u4eec\u53ef\u4ee5\u8fc7\u6ee4\u6389\u957f\u5ea6\u5c0f\u4e8e5\u6216\u5927\u4e8e10\u7684\u5b57\u7b26\u4e32\uff0c\u751f\u6210\u4e00\u4e2a\u65b0\u7684\u5217\u8868<code>filtered_data<\/code>\u3002<\/p>\n<\/p>\n<p><p>\u56db\u3001\u5904\u7406\u591a\u884c\u5b57\u7b26\u4e32\u548c\u7a7a\u767d\u5b57\u7b26<\/p>\n<\/p>\n<p><p>\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u60a8\u53ef\u80fd\u9700\u8981\u5904\u7406\u591a\u884c\u5b57\u7b26\u4e32\u6216\u5305\u542b\u7a7a\u767d\u5b57\u7b26\u7684\u5b57\u7b26\u4e32\u3002<code>len()<\/code>\u51fd\u6570\u5728\u5904\u7406\u8fd9\u4e9b\u5b57\u7b26\u4e32\u65f6\u540c\u6837\u6709\u6548\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u793a\u4f8b\u4ee3\u7801\uff0c\u6f14\u793a\u5982\u4f55\u5904\u7406\u591a\u884c\u5b57\u7b26\u4e32\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">multiline_string = &quot;&quot;&quot;Hello,<\/p>\n<p>World!<\/p>\n<p>This is a<\/p>\n<p>multiline string.&quot;&quot;&quot;<\/p>\n<p>length = len(multiline_string)<\/p>\n<p>print(f&quot;The length of the multiline string is: {length}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c<code>multiline_string<\/code>\u662f\u4e00\u4e2a\u5305\u542b\u591a\u4e2a\u6362\u884c\u7b26\u7684\u591a\u884c\u5b57\u7b26\u4e32\u3002<code>len()<\/code>\u51fd\u6570\u8ba1\u7b97\u5b57\u7b26\u4e32\u7684\u603b\u957f\u5ea6\uff0c\u5305\u62ec\u6362\u884c\u7b26\u5728\u5185\u3002<\/p>\n<\/p>\n<p><p>\u4e94\u3001\u6ce8\u610f\u4e8b\u9879\u548c\u5e38\u89c1\u9519\u8bef<\/p>\n<\/p>\n<p><p>\u5728\u4f7f\u7528<code>len()<\/code>\u51fd\u6570\u65f6\uff0c\u6709\u4e00\u4e9b\u6ce8\u610f\u4e8b\u9879\u548c\u5e38\u89c1\u9519\u8bef\u9700\u8981\u907f\u514d\uff1a<\/p>\n<\/p>\n<ol>\n<li><strong>\u5b57\u7b26\u4e32\u4e2d\u5305\u542b\u975eASCII\u5b57\u7b26<\/strong>\uff1a\u5bf9\u4e8e\u5305\u542b\u975eASCII\u5b57\u7b26\u7684\u5b57\u7b26\u4e32\uff0c<code>len()<\/code>\u51fd\u6570\u8ba1\u7b97\u7684\u662f\u5b57\u7b26\u7684\u6570\u91cf\uff0c\u800c\u4e0d\u662f\u5b57\u8282\u6570\u3002\u4f8b\u5982\uff0c\u6c49\u5b57\u5b57\u7b26\u5728UTF-8\u7f16\u7801\u4e2d\u5360\u7528\u591a\u4e2a\u5b57\u8282\uff0c\u4f46\u5728\u8ba1\u7b97\u957f\u5ea6\u65f6\uff0c\u6bcf\u4e2a\u6c49\u5b57\u5b57\u7b26\u90fd\u7b97\u4f5c\u4e00\u4e2a\u5b57\u7b26\u3002<\/li>\n<\/ol>\n<p><pre><code class=\"language-python\">chinese_string = &quot;\u4f60\u597d\uff0c\u4e16\u754c\uff01&quot;<\/p>\n<p>length = len(chinese_string)<\/p>\n<p>print(f&quot;The length of the Chinese string is: {length}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c<code>chinese_string<\/code>\u5305\u542b6\u4e2a\u6c49\u5b57\u5b57\u7b26\u548c3\u4e2a\u6807\u70b9\u7b26\u53f7\uff0c<code>len()<\/code>\u51fd\u6570\u8fd4\u56de\u7684\u957f\u5ea6\u662f9\u3002<\/p>\n<\/p>\n<ol start=\"2\">\n<li><strong>\u907f\u514d\u5c06<code>len()<\/code>\u51fd\u6570\u7528\u4e8e\u975e\u5b57\u7b26\u4e32\u7c7b\u578b<\/strong>\uff1a<code>len()<\/code>\u51fd\u6570\u9002\u7528\u4e8e\u5b57\u7b26\u4e32\u3001\u5217\u8868\u3001\u5143\u7ec4\u7b49\u7c7b\u578b\uff0c\u4f46\u5728\u5904\u7406\u5176\u4ed6\u7c7b\u578b\u65f6\u53ef\u80fd\u4f1a\u5f15\u53d1\u9519\u8bef\u3002\u4f8b\u5982\uff0c\u5bf9\u4e8e\u6574\u6570\u7c7b\u578b\uff0c\u76f4\u63a5\u8c03\u7528<code>len()<\/code>\u51fd\u6570\u4f1a\u5f15\u53d1TypeError\u3002<\/li>\n<\/ol>\n<p><pre><code class=\"language-python\">number = 12345<\/p>\n<p>try:<\/p>\n<p>    length = len(number)<\/p>\n<p>except TypeError as e:<\/p>\n<p>    print(f&quot;Error: {e}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u7a0b\u5e8f\u5c1d\u8bd5\u5bf9\u6574\u6570\u7c7b\u578b\u8c03\u7528<code>len()<\/code>\u51fd\u6570\uff0c\u5e76\u6355\u83b7\u5e76\u8f93\u51faTypeError\u9519\u8bef\u6d88\u606f\u3002<\/p>\n<\/p>\n<p><p>\u516d\u3001\u603b\u7ed3<\/p>\n<\/p>\n<p><p>\u901a\u8fc7\u4f7f\u7528Python\u7684\u5185\u7f6e\u51fd\u6570<code>len()<\/code>\uff0c\u6211\u4eec\u53ef\u4ee5\u8f7b\u677e\u83b7\u53d6\u5b57\u7b26\u4e32\u7684\u957f\u5ea6\uff0c\u5e76\u5728\u5404\u79cd\u5e94\u7528\u573a\u666f\u4e2d\u4f7f\u7528\u3002\u4ece\u57fa\u672c\u7684\u957f\u5ea6\u8ba1\u7b97\u5230\u5904\u7406\u7528\u6237\u8f93\u5165\u3001\u6570\u636e\u6e05\u6d17\u4ee5\u53ca\u591a\u884c\u5b57\u7b26\u4e32\uff0c<code>len()<\/code>\u51fd\u6570\u63d0\u4f9b\u4e86\u7b80\u5355\u800c\u5f3a\u5927\u7684\u5de5\u5177\u3002\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u6ce8\u610f\u5904\u7406\u975eASCII\u5b57\u7b26\u548c\u907f\u514d\u4e0d\u9002\u5f53\u7684\u7c7b\u578b\u4f7f\u7528\uff0c\u53ef\u4ee5\u5e2e\u52a9\u60a8\u66f4\u597d\u5730\u5229\u7528<code>len()<\/code>\u51fd\u6570\u5904\u7406\u5b57\u7b26\u4e32\u957f\u5ea6\u3002<\/p>\n<\/p>\n<p><p>\u603b\u4e4b\uff0c<strong>\u4f7f\u7528\u5185\u7f6e\u51fd\u6570len()\u6765\u8868\u793a\u5b57\u7b26\u4e32\u7684\u957f\u5ea6\u662fPython\u4e2d\u4e00\u79cd\u7b80\u5355\u800c\u6709\u6548\u7684\u65b9\u6cd5<\/strong>\uff0c\u65e0\u8bba\u662f\u5728\u6570\u636e\u5904\u7406\u3001\u7528\u6237\u8f93\u5165\u9a8c\u8bc1\u8fd8\u662f\u5176\u4ed6\u5e94\u7528\u573a\u666f\u4e2d\uff0c\u8fd9\u4e00\u51fd\u6570\u90fd\u80fd\u591f\u63d0\u4f9b\u91cd\u8981\u7684\u5e2e\u52a9\u3002\u901a\u8fc7\u4e86\u89e3\u5176\u57fa\u672c\u7528\u6cd5\u548c\u5e94\u7528\u5b9e\u4f8b\uff0c\u60a8\u53ef\u4ee5\u66f4\u597d\u5730\u638c\u63e1\u8fd9\u4e00\u529f\u80fd\uff0c\u4e3a\u60a8\u7684\u7f16\u7a0b\u5de5\u4f5c\u5e26\u6765\u66f4\u591a\u4fbf\u5229\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\u53ef\u4ee5\u4f7f\u7528\u5185\u7f6e\u7684<code>len()<\/code>\u51fd\u6570\u6765\u83b7\u53d6\u5b57\u7b26\u4e32\u7684\u957f\u5ea6\u3002\u53ea\u9700\u5c06\u5b57\u7b26\u4e32\u4f5c\u4e3a\u53c2\u6570\u4f20\u9012\u7ed9<code>len()<\/code>\uff0c\u5b83\u5c06\u8fd4\u56de\u5b57\u7b26\u4e32\u4e2d\u5b57\u7b26\u7684\u603b\u6570\u3002\u4f8b\u5982\uff0c<code>len(&quot;Hello, World!&quot;)<\/code>\u5c06\u8fd4\u56de13\uff0c\u56e0\u4e3a\u8be5\u5b57\u7b26\u4e32\u5305\u542b13\u4e2a\u5b57\u7b26\u3002<\/p>\n<p><strong>\u5b57\u7b26\u4e32\u957f\u5ea6\u7684\u8ba1\u7b97\u662f\u5426\u5305\u62ec\u7a7a\u683c\u548c\u6807\u70b9\u7b26\u53f7\uff1f<\/strong><br \/>\u662f\u7684\uff0c\u5b57\u7b26\u4e32\u7684\u957f\u5ea6\u8ba1\u7b97\u5305\u62ec\u7a7a\u683c\u3001\u6807\u70b9\u7b26\u53f7\u548c\u6240\u6709\u5176\u4ed6\u5b57\u7b26\u3002\u6bcf\u4e2a\u5b57\u7b26\u90fd\u88ab\u89c6\u4e3a\u957f\u5ea6\u7684\u4e00\u90e8\u5206\u3002\u56e0\u6b64\uff0c\u5982\u679c\u5b57\u7b26\u4e32\u5305\u542b\u7a7a\u683c\u6216\u7279\u6b8a\u7b26\u53f7\uff0c\u8fd9\u4e9b\u4e5f\u4f1a\u88ab\u8ba1\u7b97\u5728\u5185\u3002<\/p>\n<p><strong>\u5728Python\u4e2d\uff0c\u662f\u5426\u6709\u65b9\u6cd5\u53ef\u4ee5\u68c0\u67e5\u5b57\u7b26\u4e32\u662f\u5426\u4e3a\u7a7a\uff1f<\/strong><br \/>\u53ef\u4ee5\u901a\u8fc7\u76f4\u63a5\u6bd4\u8f83\u5b57\u7b26\u4e32\u4e0e\u7a7a\u5b57\u7b26\u4e32 <code>&quot;&quot;<\/code> \u6765\u68c0\u67e5\u5b57\u7b26\u4e32\u662f\u5426\u4e3a\u7a7a\u3002\u6b64\u5916\uff0c\u4f7f\u7528<code>len()<\/code>\u51fd\u6570\u4e5f\u53ef\u4ee5\u5224\u65ad\uff0c\u5982\u679c\u957f\u5ea6\u4e3a0\uff0c\u5219\u5b57\u7b26\u4e32\u4e3a\u7a7a\u3002\u4f8b\u5982\uff0c<code>if len(my_string) == 0:<\/code> \u6216 <code>if my_string == &quot;&quot;:<\/code> \u90fd\u53ef\u4ee5\u7528\u6765\u786e\u8ba4\u5b57\u7b26\u4e32\u662f\u5426\u4e3a\u7a7a\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Python\u4e2d\u5b57\u7b26\u4e32\u7684\u957f\u5ea6\u53ef\u4ee5\u4f7f\u7528\u5185\u7f6e\u51fd\u6570len()\u6765\u8868\u793a\u3001len()\u51fd\u6570\u80fd\u591f\u8ba1\u7b97\u5e76\u8fd4\u56de\u5b57\u7b26\u4e32\u4e2d\u5b57\u7b26\u7684\u603b\u6570\u3001\u4f7f [&hellip;]","protected":false},"author":3,"featured_media":1109651,"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\/1109643"}],"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=1109643"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1109643\/revisions"}],"predecessor-version":[{"id":1109652,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1109643\/revisions\/1109652"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1109651"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1109643"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1109643"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1109643"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}