{"id":1138947,"date":"2025-01-08T22:05:22","date_gmt":"2025-01-08T14:05:22","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1138947.html"},"modified":"2025-01-08T22:05:25","modified_gmt":"2025-01-08T14:05:25","slug":"python%e5%a6%82%e4%bd%95%e5%b0%86%e5%ad%97%e7%ac%a6%e4%b8%b2%e4%b8%ad%e7%9a%84%e6%95%b0%e5%ad%97%e5%8e%bb%e9%99%a4","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1138947.html","title":{"rendered":"python\u5982\u4f55\u5c06\u5b57\u7b26\u4e32\u4e2d\u7684\u6570\u5b57\u53bb\u9664"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25102416\/6994658f-3266-4945-a7cb-121b80e9ab42.webp\" alt=\"python\u5982\u4f55\u5c06\u5b57\u7b26\u4e32\u4e2d\u7684\u6570\u5b57\u53bb\u9664\" \/><\/p>\n<p><p> <strong>\u5728Python\u4e2d\uff0c\u53bb\u9664\u5b57\u7b26\u4e32\u4e2d\u7684\u6570\u5b57\u53ef\u4ee5\u901a\u8fc7\u591a\u79cd\u65b9\u6cd5\u5b9e\u73b0\uff0c\u5305\u62ec\u6b63\u5219\u8868\u8fbe\u5f0f\u3001\u5b57\u7b26\u4e32\u65b9\u6cd5\u53ca\u5217\u8868\u89e3\u6790\u7b49\u3002<\/strong>\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\uff08Regular Expression, \u7b80\u79f0regex\uff09\u662f\u6700\u5e38\u89c1\u4e14\u9ad8\u6548\u7684\u65b9\u6cd5\uff0c\u5176\u4ed6\u65b9\u6cd5\u5982\u5b57\u7b26\u4e32\u66ff\u6362\u548c\u5217\u8868\u89e3\u6790\u4e5f\u5404\u6709\u4f18\u7f3a\u70b9\u3002\u4e0b\u9762\u8be6\u7ec6\u4ecb\u7ecd\u8fd9\u4e9b\u65b9\u6cd5\uff0c\u5e76\u63d0\u4f9b\u4ee3\u7801\u793a\u4f8b\u548c\u6027\u80fd\u6bd4\u8f83\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f<\/h3>\n<\/p>\n<p><p>\u6b63\u5219\u8868\u8fbe\u5f0f\u662f\u4e00\u79cd\u7528\u4e8e\u5339\u914d\u5b57\u7b26\u4e32\u4e2d\u6307\u5b9a\u5b57\u7b26\u6a21\u5f0f\u7684\u5f3a\u5927\u5de5\u5177\u3002\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528<code>re<\/code>\u6a21\u5757\u6765\u5904\u7406\u6b63\u5219\u8868\u8fbe\u5f0f\u3002<\/p>\n<\/p>\n<p><h4>1.1 \u57fa\u672c\u7528\u6cd5<\/h4>\n<\/p>\n<p><p>\u8981\u53bb\u9664\u5b57\u7b26\u4e32\u4e2d\u7684\u6570\u5b57\uff0c\u53ef\u4ee5\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u7684\u66ff\u6362\u529f\u80fd\u3002\u4e0b\u9762\u662f\u4e00\u4e2a\u793a\u4f8b\u4ee3\u7801\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import re<\/p>\n<p>def remove_digits(input_string):<\/p>\n<p>    # \\d \u5339\u914d\u4efb\u4f55\u5341\u8fdb\u5236\u6570\uff0c+ \u8868\u793a\u5339\u914d\u4e00\u6b21\u6216\u591a\u6b21<\/p>\n<p>    result = re.sub(r&#39;\\d+&#39;, &#39;&#39;, input_string)<\/p>\n<p>    return result<\/p>\n<h2><strong>\u793a\u4f8b<\/strong><\/h2>\n<p>input_string = &quot;Hello123World456&quot;<\/p>\n<p>output_string = remove_digits(input_string)<\/p>\n<p>print(output_string)  # Output: HelloWorld<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>1.2 \u4f18\u70b9\u548c\u9002\u7528\u573a\u666f<\/h4>\n<\/p>\n<p><p><strong>\u4f18\u70b9<\/strong>\uff1a\u6b63\u5219\u8868\u8fbe\u5f0f\u7b80\u6d01\u3001\u5f3a\u5927\uff0c\u53ef\u4ee5\u5904\u7406\u590d\u6742\u7684\u5b57\u7b26\u4e32\u5339\u914d\u548c\u66ff\u6362\u4efb\u52a1\u3002<\/p>\n<p><strong>\u9002\u7528\u573a\u666f<\/strong>\uff1a\u9002\u7528\u4e8e\u9700\u8981\u9ad8\u6548\u5904\u7406\u548c\u590d\u6742\u6a21\u5f0f\u5339\u914d\u7684\u60c5\u51b5\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u4f7f\u7528\u5b57\u7b26\u4e32\u66ff\u6362<\/h3>\n<\/p>\n<p><p>Python\u5b57\u7b26\u4e32\u65b9\u6cd5\u63d0\u4f9b\u4e86\u7b80\u5355\u76f4\u63a5\u7684\u66ff\u6362\u529f\u80fd\uff0c\u53ef\u4ee5\u5faa\u73af\u904d\u5386\u5b57\u7b26\u4e32\u4e2d\u7684\u6bcf\u4e00\u4e2a\u5b57\u7b26\u5e76\u8fdb\u884c\u5224\u65ad\u548c\u5904\u7406\u3002<\/p>\n<\/p>\n<p><h4>2.1 \u57fa\u672c\u7528\u6cd5<\/h4>\n<\/p>\n<p><p>\u901a\u8fc7\u9010\u4e2a\u68c0\u67e5\u5b57\u7b26\u4e32\u4e2d\u7684\u5b57\u7b26\u5e76\u5224\u65ad\u5176\u662f\u5426\u4e3a\u6570\u5b57\uff0c\u53ef\u4ee5\u5b9e\u73b0\u53bb\u9664\u6570\u5b57\u7684\u529f\u80fd\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def remove_digits(input_string):<\/p>\n<p>    result = &#39;&#39;.join([char for char in input_string if not char.isdigit()])<\/p>\n<p>    return result<\/p>\n<h2><strong>\u793a\u4f8b<\/strong><\/h2>\n<p>input_string = &quot;Hello123World456&quot;<\/p>\n<p>output_string = remove_digits(input_string)<\/p>\n<p>print(output_string)  # Output: HelloWorld<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2.2 \u4f18\u70b9\u548c\u9002\u7528\u573a\u666f<\/h4>\n<\/p>\n<p><p><strong>\u4f18\u70b9<\/strong>\uff1a\u4ee3\u7801\u7b80\u5355\u6613\u61c2\uff0c\u4e0d\u9700\u8981\u989d\u5916\u5f15\u5165\u6a21\u5757\u3002<\/p>\n<p><strong>\u9002\u7528\u573a\u666f<\/strong>\uff1a\u9002\u7528\u4e8e\u7b80\u5355\u9700\u6c42\u548c\u521d\u5b66\u8005\u5b66\u4e60\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001\u4f7f\u7528\u8fc7\u6ee4\u5668\uff08filter\uff09<\/h3>\n<\/p>\n<p><p>\u8fc7\u6ee4\u5668\u662f\u4e00\u79cd\u51fd\u6570\u5f0f\u7f16\u7a0b\u7684\u65b9\u6cd5\uff0c\u53ef\u4ee5\u4f7f\u7528\u5185\u7f6e\u7684<code>filter<\/code>\u51fd\u6570\u6765\u7b5b\u9009\u51fa\u975e\u6570\u5b57\u5b57\u7b26\u3002<\/p>\n<\/p>\n<p><h4>3.1 \u57fa\u672c\u7528\u6cd5<\/h4>\n<\/p>\n<p><p>\u901a\u8fc7<code>filter<\/code>\u51fd\u6570\u548c<code>str.isdigit<\/code>\u65b9\u6cd5\u53ef\u4ee5\u5b9e\u73b0\u53bb\u9664\u5b57\u7b26\u4e32\u4e2d\u7684\u6570\u5b57\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def remove_digits(input_string):<\/p>\n<p>    result = &#39;&#39;.join(filter(lambda x: not x.isdigit(), input_string))<\/p>\n<p>    return result<\/p>\n<h2><strong>\u793a\u4f8b<\/strong><\/h2>\n<p>input_string = &quot;Hello123World456&quot;<\/p>\n<p>output_string = remove_digits(input_string)<\/p>\n<p>print(output_string)  # Output: HelloWorld<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>3.2 \u4f18\u70b9\u548c\u9002\u7528\u573a\u666f<\/h4>\n<\/p>\n<p><p><strong>\u4f18\u70b9<\/strong>\uff1a\u4f7f\u7528\u51fd\u6570\u5f0f\u7f16\u7a0b\u65b9\u6cd5\uff0c\u4ee3\u7801\u7b80\u6d01\u3002<\/p>\n<p><strong>\u9002\u7528\u573a\u666f<\/strong>\uff1a\u9002\u7528\u4e8e\u559c\u6b22\u51fd\u6570\u5f0f\u7f16\u7a0b\u98ce\u683c\u7684\u5f00\u53d1\u8005\u3002<\/p>\n<\/p>\n<p><h3>\u56db\u3001\u6027\u80fd\u6bd4\u8f83<\/h3>\n<\/p>\n<p><p>\u4e0d\u540c\u65b9\u6cd5\u5728\u5904\u7406\u5b57\u7b26\u4e32\u65f6\u7684\u6027\u80fd\u8868\u73b0\u53ef\u80fd\u6709\u6240\u4e0d\u540c\uff0c\u7279\u522b\u662f\u5728\u5904\u7406\u5927\u89c4\u6a21\u6570\u636e\u65f6\u3002\u4e0b\u9762\u901a\u8fc7\u4e00\u4e2a\u7b80\u5355\u7684\u6027\u80fd\u6d4b\u8bd5\u6765\u6bd4\u8f83\u51e0\u79cd\u65b9\u6cd5\u7684\u6548\u7387\u3002<\/p>\n<\/p>\n<p><h4>4.1 \u6027\u80fd\u6d4b\u8bd5\u4ee3\u7801<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\">import re<\/p>\n<p>import timeit<\/p>\n<p>input_string = &quot;Hello123World456&quot; * 1000<\/p>\n<p>def using_regex(input_string):<\/p>\n<p>    return re.sub(r&#39;\\d+&#39;, &#39;&#39;, input_string)<\/p>\n<p>def using_list_comprehension(input_string):<\/p>\n<p>    return &#39;&#39;.join([char for char in input_string if not char.isdigit()])<\/p>\n<p>def using_filter(input_string):<\/p>\n<p>    return &#39;&#39;.join(filter(lambda x: not x.isdigit(), input_string))<\/p>\n<h2><strong>\u6d4b\u8bd5\u6bcf\u79cd\u65b9\u6cd5\u7684\u6267\u884c\u65f6\u95f4<\/strong><\/h2>\n<p>regex_time = timeit.timeit(lambda: using_regex(input_string), number=100)<\/p>\n<p>list_comp_time = timeit.timeit(lambda: using_list_comprehension(input_string), number=100)<\/p>\n<p>filter_time = timeit.timeit(lambda: using_filter(input_string), number=100)<\/p>\n<p>print(f&quot;Regex Time: {regex_time}&quot;)<\/p>\n<p>print(f&quot;List Comprehension Time: {list_comp_time}&quot;)<\/p>\n<p>print(f&quot;Filter Time: {filter_time}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>4.2 \u7ed3\u679c\u5206\u6790<\/h4>\n<\/p>\n<p><p>\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u6b63\u5219\u8868\u8fbe\u5f0f\u65b9\u6cd5\u5728\u5904\u7406\u590d\u6742\u6a21\u5f0f\u5339\u914d\u65f6\u4f1a\u66f4\u5feb\uff0c\u800c\u5217\u8868\u89e3\u6790\u65b9\u6cd5\u5728\u5904\u7406\u8f83\u5c0f\u89c4\u6a21\u6570\u636e\u65f6\u6027\u80fd\u4e5f\u4e0d\u9519\u3002\u5177\u4f53\u7684\u6027\u80fd\u7ed3\u679c\u4f1a\u56e0\u5b57\u7b26\u4e32\u7684\u957f\u5ea6\u548c\u590d\u6742\u5ea6\u6709\u6240\u4e0d\u540c\u3002<\/p>\n<\/p>\n<p><h3>\u4e94\u3001\u6269\u5c55\u5e94\u7528<\/h3>\n<\/p>\n<p><h4>5.1 \u53bb\u9664\u7279\u5b9a\u7c7b\u578b\u7684\u5b57\u7b26<\/h4>\n<\/p>\n<p><p>\u9664\u4e86\u53bb\u9664\u6570\u5b57\uff0c\u6709\u65f6\u6211\u4eec\u53ef\u80fd\u9700\u8981\u53bb\u9664\u7279\u5b9a\u7c7b\u578b\u7684\u5b57\u7b26\uff0c\u5982\u5b57\u6bcd\u3001\u6807\u70b9\u7b26\u53f7\u7b49\u3002\u6b63\u5219\u8868\u8fbe\u5f0f\u53ef\u4ee5\u975e\u5e38\u65b9\u4fbf\u5730\u5b9e\u73b0\u8fd9\u4e00\u70b9\u3002\u4f8b\u5982\uff0c\u8981\u53bb\u9664\u6240\u6709\u975e\u5b57\u6bcd\u5b57\u7b26\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def remove_non_alpha(input_string):<\/p>\n<p>    return re.sub(r&#39;[^a-zA-Z]&#39;, &#39;&#39;, input_string)<\/p>\n<h2><strong>\u793a\u4f8b<\/strong><\/h2>\n<p>input_string = &quot;Hello123! World456.&quot;<\/p>\n<p>output_string = remove_non_alpha(input_string)<\/p>\n<p>print(output_string)  # Output: HelloWorld<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>5.2 \u4fdd\u7559\u7279\u5b9a\u5b57\u7b26<\/h4>\n<\/p>\n<p><p>\u7c7b\u4f3c\u5730\uff0c\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u53cd\u5411\u64cd\u4f5c\u6765\u4fdd\u7559\u7279\u5b9a\u7c7b\u578b\u7684\u5b57\u7b26\uff0c\u4f8b\u5982\u53ea\u4fdd\u7559\u5b57\u6bcd\u548c\u7a7a\u683c\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def keep_alpha_and_space(input_string):<\/p>\n<p>    return re.sub(r&#39;[^a-zA-Z\\s]&#39;, &#39;&#39;, input_string)<\/p>\n<h2><strong>\u793a\u4f8b<\/strong><\/h2>\n<p>input_string = &quot;Hello123! World456.&quot;<\/p>\n<p>output_string = keep_alpha_and_space(input_string)<\/p>\n<p>print(output_string)  # Output: Hello World<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u516d\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u672c\u6587\u8be6\u7ec6\u4ecb\u7ecd\u4e86Python\u4e2d\u53bb\u9664\u5b57\u7b26\u4e32\u4e2d\u7684\u6570\u5b57\u7684\u591a\u79cd\u65b9\u6cd5\uff0c\u5305\u62ec\u6b63\u5219\u8868\u8fbe\u5f0f\u3001\u5b57\u7b26\u4e32\u66ff\u6362\u3001\u548c\u8fc7\u6ee4\u5668\u7b49\uff0c\u5e76\u5bf9\u6bcf\u79cd\u65b9\u6cd5\u7684\u4f18\u7f3a\u70b9\u548c\u9002\u7528\u573a\u666f\u8fdb\u884c\u4e86\u5206\u6790\u3002\u540c\u65f6\uff0c\u901a\u8fc7\u6027\u80fd\u6d4b\u8bd5\u6bd4\u8f83\u4e86\u4e0d\u540c\u65b9\u6cd5\u7684\u6548\u7387\uff0c\u5e76\u6269\u5c55\u4e86\u53bb\u9664\u7279\u5b9a\u7c7b\u578b\u5b57\u7b26\u7684\u5e94\u7528\u3002<\/p>\n<\/p>\n<p><p><strong>\u6838\u5fc3\u603b\u7ed3<\/strong>\uff1a<strong>\u6b63\u5219\u8868\u8fbe\u5f0f\u5f3a\u5927\u4e14\u9ad8\u6548\u3001\u5b57\u7b26\u4e32\u66ff\u6362\u65b9\u6cd5\u7b80\u5355\u76f4\u63a5\u3001\u8fc7\u6ee4\u5668\u65b9\u6cd5\u9002\u7528\u4e8e\u51fd\u6570\u5f0f\u7f16\u7a0b\u98ce\u683c<\/strong>\u3002\u6839\u636e\u4e0d\u540c\u9700\u6c42\u548c\u573a\u666f\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\uff0c\u53ef\u4ee5\u66f4\u9ad8\u6548\u5730\u5904\u7406\u5b57\u7b26\u4e32\u64cd\u4f5c\u4efb\u52a1\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u8bc6\u522b\u5e76\u5904\u7406\u5b57\u7b26\u4e32\u4e2d\u7684\u6570\u5b57\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u6a21\u5757<code>re<\/code>\u6765\u8bc6\u522b\u548c\u5904\u7406\u5b57\u7b26\u4e32\u4e2d\u7684\u6570\u5b57\u3002\u901a\u8fc7\u7f16\u5199\u4e00\u4e2a\u7b80\u5355\u7684\u6b63\u5219\u8868\u8fbe\u5f0f\uff0c\u60a8\u53ef\u4ee5\u65b9\u4fbf\u5730\u627e\u5230\u5e76\u66ff\u6362\u6216\u5220\u9664\u6570\u5b57\u3002\u4f8b\u5982\uff0c\u4f7f\u7528<code>re.sub(r&#39;\\d+&#39;, &#39;&#39;, your_string)<\/code>\u53ef\u4ee5\u5220\u9664\u6240\u6709\u6570\u5b57\u3002<\/p>\n<p><strong>\u662f\u5426\u53ef\u4ee5\u4fdd\u7559\u5b57\u7b26\u4e32\u4e2d\u7684\u5176\u4ed6\u7279\u6b8a\u5b57\u7b26\uff1f<\/strong><br \/>\u5f53\u7136\u53ef\u4ee5\uff01\u5728\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u65f6\uff0c\u60a8\u53ef\u4ee5\u9009\u62e9\u6027\u5730\u53ea\u53bb\u9664\u6570\u5b57\uff0c\u800c\u4fdd\u7559\u5176\u4ed6\u5b57\u7b26\uff0c\u5305\u62ec\u5b57\u6bcd\u548c\u7279\u6b8a\u7b26\u53f7\u3002\u53ea\u9700\u786e\u4fdd\u60a8\u7684\u6b63\u5219\u8868\u8fbe\u5f0f\u53ea\u5339\u914d\u6570\u5b57\uff0c\u4f8b\u5982\uff1a<code>re.sub(r&#39;\\d+&#39;, &#39;&#39;, your_string)<\/code>\u5c06\u53ea\u5f71\u54cd\u6570\u5b57\u90e8\u5206\uff0c\u800c\u4e0d\u6539\u53d8\u5176\u4ed6\u5b57\u7b26\u3002<\/p>\n<p><strong>\u4f7f\u7528\u5217\u8868\u63a8\u5bfc\u5f0f\u662f\u5426\u80fd\u6709\u6548\u53bb\u9664\u5b57\u7b26\u4e32\u4e2d\u7684\u6570\u5b57\uff1f<\/strong><br \/>\u5217\u8868\u63a8\u5bfc\u5f0f\u4e5f\u662f\u4e00\u79cd\u6709\u6548\u7684\u65b9\u6cd5\u6765\u53bb\u9664\u5b57\u7b26\u4e32\u4e2d\u7684\u6570\u5b57\u3002\u60a8\u53ef\u4ee5\u901a\u8fc7\u904d\u5386\u5b57\u7b26\u4e32\u4e2d\u7684\u6bcf\u4e2a\u5b57\u7b26\uff0c\u7b5b\u9009\u51fa\u975e\u6570\u5b57\u5b57\u7b26\u5e76\u91cd\u65b0\u7ec4\u5408\u6210\u65b0\u7684\u5b57\u7b26\u4e32\u3002\u4f8b\u5982\uff0c<code>&#39;&#39;.join([char for char in your_string if not char.isdigit()])<\/code>\u53ef\u4ee5\u8fbe\u5230\u76f8\u540c\u7684\u6548\u679c\uff0c\u4e14\u4ee3\u7801\u7b80\u6d01\u6613\u61c2\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\uff0c\u53bb\u9664\u5b57\u7b26\u4e32\u4e2d\u7684\u6570\u5b57\u53ef\u4ee5\u901a\u8fc7\u591a\u79cd\u65b9\u6cd5\u5b9e\u73b0\uff0c\u5305\u62ec\u6b63\u5219\u8868\u8fbe\u5f0f\u3001\u5b57\u7b26\u4e32\u65b9\u6cd5\u53ca\u5217\u8868\u89e3\u6790\u7b49\u3002\u4f7f\u7528\u6b63\u5219\u8868\u8fbe [&hellip;]","protected":false},"author":3,"featured_media":1138955,"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\/1138947"}],"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=1138947"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1138947\/revisions"}],"predecessor-version":[{"id":1138956,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1138947\/revisions\/1138956"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1138955"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1138947"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1138947"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1138947"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}