{"id":981311,"date":"2024-12-27T07:01:37","date_gmt":"2024-12-26T23:01:37","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/981311.html"},"modified":"2024-12-27T07:01:39","modified_gmt":"2024-12-26T23:01:39","slug":"python%e5%a6%82%e4%bd%95%e5%8f%aa%e7%95%99%e4%b8%8b%e6%95%b0%e5%ad%97","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/981311.html","title":{"rendered":"python\u5982\u4f55\u53ea\u7559\u4e0b\u6570\u5b57"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24210313\/6fa8602f-f5a2-4f67-b603-27e8903bc63e.webp\" alt=\"python\u5982\u4f55\u53ea\u7559\u4e0b\u6570\u5b57\" \/><\/p>\n<p><p> <strong>\u5728Python\u4e2d\uff0c\u53ea\u4fdd\u7559\u5b57\u7b26\u4e32\u4e2d\u7684\u6570\u5b57\uff0c\u53ef\u4ee5\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u3001\u5217\u8868\u89e3\u6790\u6216\u5b57\u7b26\u4e32\u65b9\u6cd5\u7b49\u591a\u79cd\u65b9\u5f0f\u3002\u6700\u5e38\u7528\u7684\u65b9\u6cd5\u662f\u5229\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u8fdb\u884c\u5339\u914d\u548c\u66ff\u6362\u3002<\/strong>\u6b63\u5219\u8868\u8fbe\u5f0f\u63d0\u4f9b\u4e86\u4e00\u79cd\u7075\u6d3b\u800c\u5f3a\u5927\u7684\u5de5\u5177\u6765\u5904\u7406\u5b57\u7b26\u4e32\u6570\u636e\u3002\u901a\u8fc7\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\uff0c\u6211\u4eec\u53ef\u4ee5\u8f7b\u677e\u5730\u627e\u5230\u5e76\u63d0\u53d6\u5b57\u7b26\u4e32\u4e2d\u7684\u6570\u5b57\u90e8\u5206\u3002\u5177\u4f53\u6765\u8bf4\uff0c\u53ef\u4ee5\u4f7f\u7528<code>re<\/code>\u6a21\u5757\u4e2d\u7684<code>findall<\/code>\u6216<code>sub<\/code>\u51fd\u6570\u6765\u5b9e\u73b0\u8fd9\u4e00\u529f\u80fd\u3002<\/p>\n<\/p>\n<p><p>\u5728\u8fd9\u91cc\uff0c\u6211\u4eec\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u51e0\u79cd\u65b9\u6cd5\uff0c\u5e2e\u52a9\u60a8\u5728Python\u4e2d\u53ea\u4fdd\u7559\u5b57\u7b26\u4e32\u4e2d\u7684\u6570\u5b57\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f<\/p>\n<\/p>\n<p><p>\u6b63\u5219\u8868\u8fbe\u5f0f\u662f\u4e00\u79cd\u5f3a\u5927\u7684\u5b57\u7b26\u4e32\u5904\u7406\u5de5\u5177\u3002\u5728Python\u4e2d\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528<code>re<\/code>\u6a21\u5757\u6765\u5229\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u3002\u4ee5\u4e0b\u662f\u5982\u4f55\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u6765\u63d0\u53d6\u5b57\u7b26\u4e32\u4e2d\u7684\u6570\u5b57\u3002<\/p>\n<\/p>\n<ol>\n<li><strong>\u4f7f\u7528<code>re.findall<\/code>\u65b9\u6cd5<\/strong><\/li>\n<\/ol>\n<p><p><code>re.findall<\/code>\u65b9\u6cd5\u7528\u4e8e\u5728\u5b57\u7b26\u4e32\u4e2d\u67e5\u627e\u6240\u6709\u5339\u914d\u7684\u5b50\u4e32\uff0c\u5e76\u8fd4\u56de\u4e00\u4e2a\u5217\u8868\u3002\u901a\u8fc7\u6b63\u5219\u8868\u8fbe\u5f0f<code>\\d+<\/code>\uff0c\u6211\u4eec\u53ef\u4ee5\u627e\u5230\u5b57\u7b26\u4e32\u4e2d\u7684\u6240\u6709\u6570\u5b57\u90e8\u5206\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import re<\/p>\n<p>def extract_numbers_with_findall(s):<\/p>\n<p>    numbers = re.findall(r&#39;\\d+&#39;, s)<\/p>\n<p>    return &#39;&#39;.join(numbers)<\/p>\n<p>text = &quot;abc123def456&quot;<\/p>\n<p>result = extract_numbers_with_findall(text)<\/p>\n<p>print(result)  # \u8f93\u51fa\uff1a123456<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u4e0a\u9762\u7684\u4ee3\u7801\u4e2d\uff0c<code>\\d+<\/code>\u5339\u914d\u4e00\u4e2a\u6216\u591a\u4e2a\u8fde\u7eed\u7684\u6570\u5b57\u5b57\u7b26\u3002<code>re.findall<\/code>\u8fd4\u56de\u4e00\u4e2a\u5305\u542b\u6240\u6709\u5339\u914d\u9879\u7684\u5217\u8868\uff0c\u4f7f\u7528<code>join<\/code>\u65b9\u6cd5\u5c06\u8fd9\u4e9b\u5339\u914d\u9879\u8fde\u63a5\u6210\u4e00\u4e2a\u5b57\u7b26\u4e32\u3002<\/p>\n<\/p>\n<ol start=\"2\">\n<li><strong>\u4f7f\u7528<code>re.sub<\/code>\u65b9\u6cd5<\/strong><\/li>\n<\/ol>\n<p><p><code>re.sub<\/code>\u65b9\u6cd5\u7528\u4e8e\u66ff\u6362\u5b57\u7b26\u4e32\u4e2d\u4e0e\u6b63\u5219\u8868\u8fbe\u5f0f\u5339\u914d\u7684\u90e8\u5206\u3002\u5728\u8fd9\u91cc\uff0c\u6211\u4eec\u53ef\u4ee5\u7528<code>re.sub<\/code>\u6765\u79fb\u9664\u6240\u6709\u975e\u6570\u5b57\u5b57\u7b26\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import re<\/p>\n<p>def extract_numbers_with_sub(s):<\/p>\n<p>    return re.sub(r&#39;\\D&#39;, &#39;&#39;, s)<\/p>\n<p>text = &quot;abc123def456&quot;<\/p>\n<p>result = extract_numbers_with_sub(text)<\/p>\n<p>print(result)  # \u8f93\u51fa\uff1a123456<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u6bb5\u4ee3\u7801\u4e2d\uff0c<code>\\D<\/code>\u5339\u914d\u4efb\u4f55\u975e\u6570\u5b57\u5b57\u7b26\u3002<code>re.sub<\/code>\u7528\u7a7a\u5b57\u7b26\u4e32\u66ff\u6362\u6240\u6709\u975e\u6570\u5b57\u5b57\u7b26\uff0c\u4ece\u800c\u53ea\u7559\u4e0b\u6570\u5b57\u3002<\/p>\n<\/p>\n<p><p>\u4e8c\u3001\u4f7f\u7528\u5b57\u7b26\u4e32\u65b9\u6cd5<\/p>\n<\/p>\n<p><p>\u9664\u4e86\u6b63\u5219\u8868\u8fbe\u5f0f\uff0c\u6211\u4eec\u8fd8\u53ef\u4ee5\u4f7f\u7528\u5b57\u7b26\u4e32\u65b9\u6cd5\u6765\u8fc7\u6ee4\u6389\u975e\u6570\u5b57\u5b57\u7b26\u3002<\/p>\n<\/p>\n<ol>\n<li><strong>\u4f7f\u7528<code>filter<\/code>\u65b9\u6cd5<\/strong><\/li>\n<\/ol>\n<p><p><code>filter<\/code>\u65b9\u6cd5\u7ed3\u5408<code>str.isdigit<\/code>\u53ef\u4ee5\u7528\u4e8e\u7b5b\u9009\u51fa\u5b57\u7b26\u4e32\u4e2d\u7684\u6570\u5b57\u5b57\u7b26\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def extract_numbers_with_filter(s):<\/p>\n<p>    return &#39;&#39;.join(filter(str.isdigit, s))<\/p>\n<p>text = &quot;abc123def456&quot;<\/p>\n<p>result = extract_numbers_with_filter(text)<\/p>\n<p>print(result)  # \u8f93\u51fa\uff1a123456<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u6bb5\u4ee3\u7801\u4e2d\uff0c<code>filter<\/code>\u51fd\u6570\u904d\u5386\u5b57\u7b26\u4e32\u4e2d\u7684\u6bcf\u4e2a\u5b57\u7b26\uff0c\u5e76\u4ec5\u4fdd\u7559\u90a3\u4e9b\u901a\u8fc7<code>str.isdigit<\/code>\u65b9\u6cd5\u5224\u65ad\u4e3a\u6570\u5b57\u7684\u5b57\u7b26\u3002<\/p>\n<\/p>\n<ol start=\"2\">\n<li><strong>\u4f7f\u7528\u5217\u8868\u89e3\u6790<\/strong><\/li>\n<\/ol>\n<p><p>\u5217\u8868\u89e3\u6790\u662f\u4e00\u79cd\u7b80\u6d01\u7684\u8bed\u6cd5\uff0c\u7528\u4e8e\u5728\u4e00\u4e2a\u8868\u8fbe\u5f0f\u4e2d\u751f\u6210\u5217\u8868\u3002\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528\u5b83\u6765\u63d0\u53d6\u5b57\u7b26\u4e32\u4e2d\u7684\u6570\u5b57\u5b57\u7b26\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def extract_numbers_with_list_comprehension(s):<\/p>\n<p>    return &#39;&#39;.join([char for char in s if char.isdigit()])<\/p>\n<p>text = &quot;abc123def456&quot;<\/p>\n<p>result = extract_numbers_with_list_comprehension(text)<\/p>\n<p>print(result)  # \u8f93\u51fa\uff1a123456<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u6bb5\u4ee3\u7801\u4e2d\uff0c\u5217\u8868\u89e3\u6790\u904d\u5386\u5b57\u7b26\u4e32\u4e2d\u7684\u6bcf\u4e2a\u5b57\u7b26\uff0c\u5e76\u4ec5\u5305\u542b\u90a3\u4e9b<code>isdigit<\/code>\u65b9\u6cd5\u8fd4\u56de<code>True<\/code>\u7684\u5b57\u7b26\u3002\u7136\u540e\u4f7f\u7528<code>join<\/code>\u65b9\u6cd5\u5c06\u8fd9\u4e9b\u5b57\u7b26\u8fde\u63a5\u6210\u4e00\u4e2a\u5b57\u7b26\u4e32\u3002<\/p>\n<\/p>\n<p><p>\u4e09\u3001\u6027\u80fd\u6bd4\u8f83<\/p>\n<\/p>\n<p><p>\u5728\u9009\u62e9\u65b9\u6cd5\u65f6\uff0c\u6027\u80fd\u53ef\u80fd\u662f\u4e00\u4e2a\u8003\u8651\u56e0\u7d20\u3002\u5bf9\u4e8e\u8f83\u77ed\u7684\u5b57\u7b26\u4e32\uff0c\u6240\u6709\u65b9\u6cd5\u7684\u6027\u80fd\u5dee\u5f02\u53ef\u80fd\u5e76\u4e0d\u660e\u663e\u3002\u7136\u800c\uff0c\u5bf9\u4e8e\u8f83\u957f\u7684\u5b57\u7b26\u4e32\u6216\u9700\u8981\u5904\u7406\u5927\u91cf\u6570\u636e\u7684\u5e94\u7528\u7a0b\u5e8f\uff0c\u9009\u62e9\u6027\u80fd\u66f4\u597d\u7684\u65b9\u6cd5\u4f1a\u6709\u6240\u5e2e\u52a9\u3002<\/p>\n<\/p>\n<p><p>\u901a\u8fc7\u4ee5\u4e0b\u4ee3\u7801\uff0c\u6211\u4eec\u53ef\u4ee5\u6bd4\u8f83\u4e0d\u540c\u65b9\u6cd5\u7684\u6027\u80fd\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import timeit<\/p>\n<p>text = &quot;abc123def456&quot; * 1000<\/p>\n<p>print(&quot;Using findall:&quot;, timeit.timeit(lambda: extract_numbers_with_findall(text), number=1000))<\/p>\n<p>print(&quot;Using sub:&quot;, timeit.timeit(lambda: extract_numbers_with_sub(text), number=1000))<\/p>\n<p>print(&quot;Using filter:&quot;, timeit.timeit(lambda: extract_numbers_with_filter(text), number=1000))<\/p>\n<p>print(&quot;Using list comprehension:&quot;, timeit.timeit(lambda: extract_numbers_with_list_comprehension(text), number=1000))<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u901a\u8fc7\u8fd0\u884c\u8fd9\u6bb5\u4ee3\u7801\uff0c\u60a8\u53ef\u4ee5\u89c2\u5bdf\u5230\u5404\u65b9\u6cd5\u5728\u5904\u7406\u5927\u91cf\u6570\u636e\u65f6\u7684\u76f8\u5bf9\u6027\u80fd\u3002\u901a\u5e38\uff0c\u6b63\u5219\u8868\u8fbe\u5f0f\u65b9\u6cd5\u53ef\u80fd\u7a0d\u6162\u4e8e\u5176\u4ed6\u65b9\u6cd5\uff0c\u800c<code>filter<\/code>\u548c\u5217\u8868\u89e3\u6790\u5728\u5904\u7406\u5927\u91cf\u6570\u636e\u65f6\u901a\u5e38\u66f4\u5feb\u3002<\/p>\n<\/p>\n<p><p>\u56db\u3001\u5e94\u7528\u573a\u666f<\/p>\n<\/p>\n<p><p>\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u63d0\u53d6\u5b57\u7b26\u4e32\u4e2d\u7684\u6570\u5b57\u53ef\u80fd\u7528\u4e8e\u591a\u4e2a\u573a\u666f\uff1a<\/p>\n<\/p>\n<ol>\n<li><strong>\u6570\u636e\u6e05\u6d17\u548c\u9884\u5904\u7406<\/strong><\/li>\n<\/ol>\n<p><p>\u5728\u5904\u7406\u6765\u81ea\u4e0d\u540c\u6765\u6e90\u7684\u6570\u636e\u65f6\uff0c\u901a\u5e38\u9700\u8981\u6e05\u6d17\u548c\u89c4\u8303\u5316\u6570\u636e\u3002\u63d0\u53d6\u6570\u5b57\u662f\u5176\u4e2d\u4e00\u9879\u5e38\u89c1\u4efb\u52a1\uff0c\u4f8b\u5982\u4ece\u7535\u8bdd\u53f7\u7801\u3001\u8eab\u4efd\u8bc1\u53f7\u7801\u6216\u4ea7\u54c1\u7f16\u7801\u4e2d\u63d0\u53d6\u6570\u5b57\u3002<\/p>\n<\/p>\n<ol start=\"2\">\n<li><strong>\u89e3\u6790\u65e5\u5fd7\u548c\u6587\u672c\u6587\u4ef6<\/strong><\/li>\n<\/ol>\n<p><p>\u5728\u89e3\u6790\u65e5\u5fd7\u6587\u4ef6\u6216\u6587\u672c\u6587\u4ef6\u65f6\uff0c\u53ef\u80fd\u9700\u8981\u63d0\u53d6\u5176\u4e2d\u7684\u6570\u503c\u4fe1\u606f\uff0c\u5982\u65f6\u95f4\u6233\u3001\u7edf\u8ba1\u6570\u636e\u6216\u8ba1\u6570\u5668\u3002<\/p>\n<\/p>\n<ol start=\"3\">\n<li><strong>\u7528\u6237\u8f93\u5165\u7684\u9a8c\u8bc1\u548c\u5904\u7406<\/strong><\/li>\n<\/ol>\n<p><p>\u5728\u5904\u7406\u7528\u6237\u8f93\u5165\u65f6\uff0c\u53ef\u80fd\u9700\u8981\u63d0\u53d6\u548c\u9a8c\u8bc1\u8f93\u5165\u7684\u6570\u5b57\u90e8\u5206\uff0c\u4ee5\u786e\u4fdd\u6570\u636e\u7684\u6709\u6548\u6027\u548c\u5b8c\u6574\u6027\u3002<\/p>\n<\/p>\n<p><p>\u4e94\u3001\u603b\u7ed3<\/p>\n<\/p>\n<p><p>\u5728Python\u4e2d\uff0c\u63d0\u53d6\u5b57\u7b26\u4e32\u4e2d\u7684\u6570\u5b57\u6709\u591a\u79cd\u65b9\u6cd5\uff0c\u5305\u62ec\u6b63\u5219\u8868\u8fbe\u5f0f\u3001\u5b57\u7b26\u4e32\u65b9\u6cd5\u548c\u5217\u8868\u89e3\u6790\u3002\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\u53d6\u51b3\u4e8e\u5177\u4f53\u7684\u5e94\u7528\u573a\u666f\u548c\u6027\u80fd\u9700\u6c42\u3002\u6b63\u5219\u8868\u8fbe\u5f0f\u63d0\u4f9b\u4e86\u5f3a\u5927\u7684\u529f\u80fd\u548c\u7075\u6d3b\u6027\uff0c\u800c\u5b57\u7b26\u4e32\u65b9\u6cd5\u548c\u5217\u8868\u89e3\u6790\u5219\u63d0\u4f9b\u4e86\u7b80\u6d01\u548c\u9ad8\u6548\u7684\u89e3\u51b3\u65b9\u6848\u3002\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u6839\u636e\u6570\u636e\u7279\u6027\u548c\u5904\u7406\u9700\u6c42\uff0c\u7075\u6d3b\u5e94\u7528\u8fd9\u4e9b\u65b9\u6cd5\u53ef\u4ee5\u6709\u6548\u5730\u89e3\u51b3\u95ee\u9898\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u4ece\u5b57\u7b26\u4e32\u4e2d\u63d0\u53d6\u6570\u5b57\uff1f<\/strong><br \/>\u8981\u4ece\u5b57\u7b26\u4e32\u4e2d\u63d0\u53d6\u6570\u5b57\uff0c\u53ef\u4ee5\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u3002\u4f7f\u7528<code>re<\/code>\u6a21\u5757\u4e2d\u7684<code>findall<\/code>\u51fd\u6570\uff0c\u53ef\u4ee5\u8f7b\u677e\u627e\u5230\u6240\u6709\u7684\u6570\u5b57\u3002\u4f8b\u5982\uff0c<code>re.findall(r&#39;\\d+&#39;, your_string)<\/code>\u4f1a\u8fd4\u56de\u4e00\u4e2a\u5305\u542b\u6240\u6709\u6570\u5b57\u7684\u5217\u8868\u3002<\/p>\n<p><strong>Python\u4e2d\u6709\u54ea\u4e9b\u65b9\u6cd5\u53ef\u4ee5\u8fc7\u6ee4\u975e\u6570\u5b57\u5b57\u7b26\uff1f<\/strong><br \/>\u9664\u4e86\u6b63\u5219\u8868\u8fbe\u5f0f\uff0cPython\u8fd8\u63d0\u4f9b\u4e86\u5176\u4ed6\u65b9\u6cd5\u3002\u4f8b\u5982\uff0c\u53ef\u4ee5\u4f7f\u7528\u5217\u8868\u63a8\u5bfc\u5f0f\u7ed3\u5408<code>str.isdigit()<\/code>\u65b9\u6cd5\uff0c\u6765\u7b5b\u9009\u5b57\u7b26\u4e32\u4e2d\u7684\u6570\u5b57\u5b57\u7b26\u3002\u4ee3\u7801\u793a\u4f8b\uff1a<code>&#39;&#39;.join([char for char in your_string if char.isdigit()])<\/code>\uff0c\u8fd9\u4f1a\u8fd4\u56de\u4e00\u4e2a\u4ec5\u5305\u542b\u6570\u5b57\u7684\u5b57\u7b26\u4e32\u3002<\/p>\n<p><strong>\u5982\u4f55\u5728Python\u4e2d\u5c06\u5b57\u7b26\u4e32\u8f6c\u6362\u4e3a\u6574\u6570\uff1f<\/strong><br \/>\u5728\u786e\u8ba4\u5b57\u7b26\u4e32\u53ea\u5305\u542b\u6570\u5b57\u540e\uff0c\u53ef\u4ee5\u4f7f\u7528<code>int()<\/code>\u51fd\u6570\u5c06\u5176\u8f6c\u6362\u4e3a\u6574\u6570\u3002\u4f8b\u5982\uff0c<code>num = int(numeric_string)<\/code>\u5c06\u628a\u5b57\u7b26\u4e32<code>numeric_string<\/code>\u8f6c\u6362\u4e3a\u6574\u6570\u3002\u5982\u679c\u5b57\u7b26\u4e32\u4e2d\u542b\u6709\u975e\u6570\u5b57\u5b57\u7b26\uff0c\u9700\u8981\u5148\u4f7f\u7528\u4e0a\u8ff0\u65b9\u6cd5\u8fc7\u6ee4\u6389\u8fd9\u4e9b\u5b57\u7b26\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\uff0c\u53ea\u4fdd\u7559\u5b57\u7b26\u4e32\u4e2d\u7684\u6570\u5b57\uff0c\u53ef\u4ee5\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u3001\u5217\u8868\u89e3\u6790\u6216\u5b57\u7b26\u4e32\u65b9\u6cd5\u7b49\u591a\u79cd\u65b9\u5f0f\u3002\u6700\u5e38\u7528\u7684\u65b9\u6cd5\u662f\u5229\u7528 [&hellip;]","protected":false},"author":3,"featured_media":981316,"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\/981311"}],"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=981311"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/981311\/revisions"}],"predecessor-version":[{"id":981319,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/981311\/revisions\/981319"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/981316"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=981311"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=981311"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=981311"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}