{"id":1107088,"date":"2025-01-08T16:46:22","date_gmt":"2025-01-08T08:46:22","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1107088.html"},"modified":"2025-01-08T16:46:25","modified_gmt":"2025-01-08T08:46:25","slug":"python%e5%a6%82%e4%bd%95%e5%8f%96%e5%87%ba%e5%ad%97%e7%ac%a6%e4%b8%b2%e7%9a%84%e6%95%b0%e5%ad%97","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1107088.html","title":{"rendered":"python\u5982\u4f55\u53d6\u51fa\u5b57\u7b26\u4e32\u7684\u6570\u5b57"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25071305\/2bbb815e-72a6-45cd-801e-fc9374396501.webp\" alt=\"python\u5982\u4f55\u53d6\u51fa\u5b57\u7b26\u4e32\u7684\u6570\u5b57\" \/><\/p>\n<p><p> <strong>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u591a\u79cd\u65b9\u6cd5\u4ece\u5b57\u7b26\u4e32\u4e2d\u63d0\u53d6\u6570\u5b57\uff0c\u6bd4\u5982\u4f7f\u7528\u5217\u8868\u89e3\u6790\u3001\u6b63\u5219\u8868\u8fbe\u5f0f\u3001filter\u51fd\u6570\u7b49\u3002\u5e38\u89c1\u7684\u65b9\u6cd5\u5305\u62ec\uff1a\u5217\u8868\u89e3\u6790\u3001\u6b63\u5219\u8868\u8fbe\u5f0f\u3001filter\u51fd\u6570\u3002<\/strong>\u5176\u4e2d\uff0c<strong>\u6b63\u5219\u8868\u8fbe\u5f0f<\/strong>\u662f\u4e00\u79cd\u975e\u5e38\u5f3a\u5927\u7684\u5de5\u5177\uff0c\u53ef\u4ee5\u7075\u6d3b\u5730\u5339\u914d\u5b57\u7b26\u4e32\u4e2d\u7684\u6a21\u5f0f\uff0c\u662f\u63d0\u53d6\u6570\u5b57\u7684\u6700\u5e38\u7528\u65b9\u6cd5\u4e4b\u4e00\u3002\u63a5\u4e0b\u6765\uff0c\u6211\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u8fd9\u4e9b\u65b9\u6cd5\u53ca\u5176\u5177\u4f53\u4f7f\u7528\u573a\u666f\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u4f7f\u7528\u5217\u8868\u89e3\u6790<\/h3>\n<\/p>\n<p><p>\u5217\u8868\u89e3\u6790\u662f\u4e00\u79cd\u7b80\u6d01\u4e14\u9ad8\u6548\u7684\u65b9\u6cd5\uff0c\u53ef\u4ee5\u76f4\u63a5\u5728\u4e00\u884c\u4ee3\u7801\u4e2d\u5b9e\u73b0\u4ece\u5b57\u7b26\u4e32\u4e2d\u63d0\u53d6\u6570\u5b57\u3002\u4e0b\u9762\u662f\u4e00\u4e2a\u4f8b\u5b50\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">s = &quot;abc123def456ghi789&quot;<\/p>\n<p>numbers = [int(char) for char in s if char.isdigit()]<\/p>\n<p>print(numbers)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u6211\u4eec\u4f7f\u7528\u5217\u8868\u89e3\u6790\u904d\u5386\u5b57\u7b26\u4e32\u7684\u6bcf\u4e00\u4e2a\u5b57\u7b26\uff0c\u5e76\u4f7f\u7528<code>isdigit()<\/code>\u65b9\u6cd5\u68c0\u67e5\u6bcf\u4e2a\u5b57\u7b26\u662f\u5426\u4e3a\u6570\u5b57\u3002\u5982\u679c\u662f\u6570\u5b57\uff0c\u5c31\u5c06\u5176\u8f6c\u6362\u4e3a\u6574\u6570\u5e76\u6dfb\u52a0\u5230\u5217\u8868\u4e2d\u3002<\/p>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u7684\u4f18\u70b9\u662f\u7b80\u5355\u76f4\u89c2\uff0c\u7279\u522b\u9002\u5408\u5904\u7406\u5305\u542b\u5355\u4e2a\u6570\u5b57\u5b57\u7b26\u7684\u5b57\u7b26\u4e32\u3002\u4f46\u662f\uff0c\u5982\u679c\u5b57\u7b26\u4e32\u4e2d\u5305\u542b\u8fde\u7eed\u7684\u6570\u5b57\u5757\uff0c\u8fd9\u79cd\u65b9\u6cd5\u5c31\u4e0d\u592a\u9002\u7528\u4e86\u3002\u4e0b\u9762\u5c06\u4ecb\u7ecd\u66f4\u590d\u6742\u7684\u60c5\u51b5\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f<\/h3>\n<\/p>\n<p><p>\u6b63\u5219\u8868\u8fbe\u5f0f\u662f\u4e00\u79cd\u5f3a\u5927\u7684\u5b57\u7b26\u4e32\u5339\u914d\u5de5\u5177\uff0c\u53ef\u4ee5\u7528\u6765\u67e5\u627e\u5b57\u7b26\u4e32\u4e2d\u7684\u7279\u5b9a\u6a21\u5f0f\u3002Python \u63d0\u4f9b\u4e86 <code>re<\/code> \u6a21\u5757\u6765\u652f\u6301\u6b63\u5219\u8868\u8fbe\u5f0f\u3002\u4e0b\u9762\u662f\u4e00\u4e2a\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u4ece\u5b57\u7b26\u4e32\u4e2d\u63d0\u53d6\u6570\u5b57\u7684\u4f8b\u5b50\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import re<\/p>\n<p>s = &quot;abc123def456ghi789&quot;<\/p>\n<p>numbers = re.findall(r&#39;\\d+&#39;, s)<\/p>\n<p>numbers = [int(num) for num in numbers]<\/p>\n<p>print(numbers)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c<code>\\d+<\/code> \u662f\u4e00\u4e2a\u6b63\u5219\u8868\u8fbe\u5f0f\u6a21\u5f0f\uff0c\u8868\u793a\u4e00\u4e2a\u6216\u591a\u4e2a\u6570\u5b57\u5b57\u7b26\u3002<code>re.findall()<\/code> \u51fd\u6570\u4f1a\u8fd4\u56de\u4e00\u4e2a\u5305\u542b\u6240\u6709\u5339\u914d\u5b50\u4e32\u7684\u5217\u8868\u3002\u7136\u540e\uff0c\u6211\u4eec\u5c06\u8fd9\u4e9b\u5b50\u4e32\u8f6c\u6362\u4e3a\u6574\u6570\u3002<\/p>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u4e0d\u4ec5\u53ef\u4ee5\u63d0\u53d6\u5355\u4e2a\u6570\u5b57\u5b57\u7b26\uff0c\u8fd8\u53ef\u4ee5\u63d0\u53d6\u8fde\u7eed\u7684\u6570\u5b57\u5757\uff0c\u975e\u5e38\u7075\u6d3b\u548c\u5f3a\u5927\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001\u4f7f\u7528 filter() \u51fd\u6570<\/h3>\n<\/p>\n<p><p><code>filter()<\/code> \u51fd\u6570\u7528\u4e8e\u4ece\u5e8f\u5217\u4e2d\u8fc7\u6ee4\u51fa\u7b26\u5408\u6761\u4ef6\u7684\u5143\u7d20\u3002\u6211\u4eec\u53ef\u4ee5\u7ed3\u5408 <code>str.isdigit()<\/code> \u65b9\u6cd5\u548c <code>filter()<\/code> \u51fd\u6570\u6765\u63d0\u53d6\u5b57\u7b26\u4e32\u4e2d\u7684\u6570\u5b57\u3002\u4e0b\u9762\u662f\u4e00\u4e2a\u4f8b\u5b50\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">s = &quot;abc123def456ghi789&quot;<\/p>\n<p>numbers = list(filter(str.isdigit, s))<\/p>\n<p>numbers = [int(num) for num in numbers]<\/p>\n<p>print(numbers)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c<code>filter(str.isdigit, s)<\/code> \u5c06\u8fd4\u56de\u4e00\u4e2a\u8fed\u4ee3\u5668\uff0c\u5305\u542b\u5b57\u7b26\u4e32\u4e2d\u6240\u6709\u7684\u6570\u5b57\u5b57\u7b26\u3002\u7136\u540e\uff0c\u6211\u4eec\u5c06\u8fd9\u4e9b\u5b57\u7b26\u8f6c\u6362\u4e3a\u6574\u6570\u5e76\u5b58\u50a8\u5728\u5217\u8868\u4e2d\u3002<\/p>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u4e0e\u5217\u8868\u89e3\u6790\u7c7b\u4f3c\uff0c\u9002\u7528\u4e8e\u5904\u7406\u5305\u542b\u5355\u4e2a\u6570\u5b57\u5b57\u7b26\u7684\u5b57\u7b26\u4e32\u3002<\/p>\n<\/p>\n<p><h3>\u56db\u3001\u4f7f\u7528 itertools \u6a21\u5757<\/h3>\n<\/p>\n<p><p><code>itertools<\/code> \u6a21\u5757\u63d0\u4f9b\u4e86\u8bb8\u591a\u7528\u4e8e\u64cd\u4f5c\u8fed\u4ee3\u5bf9\u8c61\u7684\u51fd\u6570\u3002\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528 <code>itertools.groupby()<\/code> \u51fd\u6570\u6765\u4ece\u5b57\u7b26\u4e32\u4e2d\u63d0\u53d6\u8fde\u7eed\u7684\u6570\u5b57\u5757\u3002\u4e0b\u9762\u662f\u4e00\u4e2a\u4f8b\u5b50\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from itertools import groupby<\/p>\n<p>s = &quot;abc123def456ghi789&quot;<\/p>\n<p>numbers = [&#39;&#39;.join(g) for k, g in groupby(s, key=str.isdigit) if k]<\/p>\n<p>numbers = [int(num) for num in numbers]<\/p>\n<p>print(numbers)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c<code>groupby(s, key=str.isdigit)<\/code> \u5c06\u5b57\u7b26\u4e32\u5206\u7ec4\uff0c\u5176\u4e2d\u6bcf\u7ec4\u5143\u7d20\u7684\u952e\u503c\u662f <code>str.isdigit()<\/code> \u7684\u8fd4\u56de\u503c\u3002\u7136\u540e\uff0c\u6211\u4eec\u5c06\u6240\u6709\u952e\u503c\u4e3a <code>True<\/code> \u7684\u7ec4\u8fde\u63a5\u6210\u5b57\u7b26\u4e32\u5e76\u8f6c\u6362\u4e3a\u6574\u6570\u3002<\/p>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u9002\u7528\u4e8e\u5904\u7406\u5305\u542b\u8fde\u7eed\u6570\u5b57\u5757\u7684\u5b57\u7b26\u4e32\u3002<\/p>\n<\/p>\n<p><h3>\u4e94\u3001\u4f7f\u7528\u81ea\u5b9a\u4e49\u51fd\u6570<\/h3>\n<\/p>\n<p><p>\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u6211\u4eec\u53ef\u80fd\u9700\u8981\u66f4\u590d\u6742\u7684\u903b\u8f91\u6765\u63d0\u53d6\u6570\u5b57\u3002\u8fd9\u65f6\uff0c\u53ef\u4ee5\u7f16\u5199\u81ea\u5b9a\u4e49\u51fd\u6570\u6765\u5b9e\u73b0\u3002\u4e0b\u9762\u662f\u4e00\u4e2a\u4f8b\u5b50\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def extract_numbers(s):<\/p>\n<p>    numbers = []<\/p>\n<p>    num = &#39;&#39;<\/p>\n<p>    for char in s:<\/p>\n<p>        if char.isdigit():<\/p>\n<p>            num += char<\/p>\n<p>        elif num:<\/p>\n<p>            numbers.append(int(num))<\/p>\n<p>            num = &#39;&#39;<\/p>\n<p>    if num:<\/p>\n<p>        numbers.append(int(num))<\/p>\n<p>    return numbers<\/p>\n<p>s = &quot;abc123def456ghi789&quot;<\/p>\n<p>numbers = extract_numbers(s)<\/p>\n<p>print(numbers)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u6211\u4eec\u5b9a\u4e49\u4e86\u4e00\u4e2a <code>extract_numbers()<\/code> \u51fd\u6570\uff0c\u901a\u8fc7\u904d\u5386\u5b57\u7b26\u4e32\u6765\u63d0\u53d6\u6570\u5b57\u3002\u6bcf\u5f53\u9047\u5230\u4e00\u4e2a\u975e\u6570\u5b57\u5b57\u7b26\u65f6\uff0c\u5982\u679c\u4e4b\u524d\u5df2\u7ecf\u79ef\u7d2f\u4e86\u4e00\u4e9b\u6570\u5b57\u5b57\u7b26\uff0c\u5c31\u5c06\u5b83\u4eec\u8f6c\u6362\u4e3a\u6574\u6570\u5e76\u6dfb\u52a0\u5230\u5217\u8868\u4e2d\u3002<\/p>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u975e\u5e38\u7075\u6d3b\uff0c\u53ef\u4ee5\u6839\u636e\u9700\u8981\u8fdb\u884c\u8c03\u6574\uff0c\u9002\u7528\u4e8e\u5904\u7406\u5305\u542b\u590d\u6742\u6a21\u5f0f\u7684\u5b57\u7b26\u4e32\u3002<\/p>\n<\/p>\n<p><h3>\u7ed3\u8bba<\/h3>\n<\/p>\n<p><p>\u4ece\u5b57\u7b26\u4e32\u4e2d\u63d0\u53d6\u6570\u5b57\u6709\u591a\u79cd\u65b9\u6cd5\uff0c\u5305\u62ec\u5217\u8868\u89e3\u6790\u3001\u6b63\u5219\u8868\u8fbe\u5f0f\u3001filter\u51fd\u6570\u3001itertools\u6a21\u5757\u548c\u81ea\u5b9a\u4e49\u51fd\u6570\u3002\u6bcf\u79cd\u65b9\u6cd5\u90fd\u6709\u5176\u4f18\u70b9\u548c\u9002\u7528\u573a\u666f\uff0c\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\u53ef\u4ee5\u63d0\u9ad8\u4ee3\u7801\u7684\u53ef\u8bfb\u6027\u548c\u6548\u7387\u3002<\/p>\n<\/p>\n<p><p><strong>\u6b63\u5219\u8868\u8fbe\u5f0f\u662f\u63d0\u53d6\u6570\u5b57\u7684\u6700\u5e38\u7528\u65b9\u6cd5\u4e4b\u4e00<\/strong>\uff0c\u56e0\u4e3a\u5b83\u975e\u5e38\u5f3a\u5927\u4e14\u7075\u6d3b\uff0c\u53ef\u4ee5\u5904\u7406\u5404\u79cd\u590d\u6742\u7684\u6a21\u5f0f\u3002\u5bf9\u4e8e\u7b80\u5355\u7684\u60c5\u51b5\uff0c\u5217\u8868\u89e3\u6790\u548cfilter\u51fd\u6570\u4e5f\u975e\u5e38\u65b9\u4fbf\u3002\u5bf9\u4e8e\u66f4\u590d\u6742\u7684\u60c5\u51b5\uff0c\u81ea\u5b9a\u4e49\u51fd\u6570\u53ef\u80fd\u662f\u6700\u597d\u7684\u9009\u62e9\u3002<\/p>\n<\/p>\n<p><p>\u65e0\u8bba\u9009\u62e9\u54ea\u79cd\u65b9\u6cd5\uff0c\u90fd\u53ef\u4ee5\u6839\u636e\u5177\u4f53\u9700\u6c42\u8fdb\u884c\u8c03\u6574\uff0c\u4ee5\u83b7\u5f97\u6700\u4f73\u7684\u7ed3\u679c\u3002\u5e0c\u671b\u8fd9\u7bc7\u6587\u7ae0\u5bf9\u4f60\u6709\u6240\u5e2e\u52a9\uff01<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u63d0\u53d6\u5b57\u7b26\u4e32\u4e2d\u7684\u6240\u6709\u6570\u5b57\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u5e93<code>re<\/code>\u6765\u63d0\u53d6\u5b57\u7b26\u4e32\u4e2d\u7684\u6240\u6709\u6570\u5b57\u3002\u901a\u8fc7<code>re.findall()<\/code>\u51fd\u6570\uff0c\u53ef\u4ee5\u627e\u5230\u5b57\u7b26\u4e32\u4e2d\u6240\u6709\u7b26\u5408\u7279\u5b9a\u6a21\u5f0f\u7684\u6570\u5b57\uff0c\u4f8b\u5982\uff1a  <\/p>\n<pre><code class=\"language-python\">import re\n\ntext = &quot;\u6211\u67092\u4e2a\u82f9\u679c\u548c3\u4e2a\u6a59\u5b50&quot;\nnumbers = re.findall(r&#39;\\d+&#39;, text)\nprint(numbers)  # \u8f93\u51fa: [&#39;2&#39;, &#39;3&#39;]\n<\/code><\/pre>\n<p>\u6b64\u4ee3\u7801\u5c06\u8fd4\u56de\u4e00\u4e2a\u5305\u542b\u6240\u6709\u6570\u5b57\u7684\u5217\u8868\u3002<\/p>\n<p><strong>\u5728Python\u4e2d\uff0c\u6709\u54ea\u4e9b\u65b9\u6cd5\u53ef\u4ee5\u4ece\u5b57\u7b26\u4e32\u4e2d\u63d0\u53d6\u5355\u4e2a\u6570\u5b57\uff1f<\/strong><br \/>\u9664\u4e86\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\uff0c\u8fd8\u53ef\u4ee5\u901a\u8fc7\u5b57\u7b26\u4e32\u7684\u904d\u5386\u6765\u63d0\u53d6\u6570\u5b57\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u793a\u4f8b\uff1a  <\/p>\n<pre><code class=\"language-python\">text = &quot;abc123xyz&quot;\nnumbers = [char for char in text if char.isdigit()]\nprint(numbers)  # \u8f93\u51fa: [&#39;1&#39;, &#39;2&#39;, &#39;3&#39;]\n<\/code><\/pre>\n<p>\u8fd9\u79cd\u65b9\u6cd5\u901a\u8fc7\u904d\u5386\u6bcf\u4e2a\u5b57\u7b26\uff0c\u68c0\u67e5\u5176\u662f\u5426\u4e3a\u6570\u5b57\uff0c\u5f62\u6210\u4e00\u4e2a\u6570\u5b57\u5217\u8868\u3002<\/p>\n<p><strong>\u4e3a\u4ec0\u4e48\u5728\u63d0\u53d6\u6570\u5b57\u65f6\u9700\u8981\u8003\u8651\u6570\u5b57\u7684\u683c\u5f0f\uff1f<\/strong><br \/>\u5728\u4e00\u4e9b\u60c5\u51b5\u4e0b\uff0c\u6570\u5b57\u53ef\u80fd\u4ee5\u4e0d\u540c\u7684\u683c\u5f0f\u51fa\u73b0\uff0c\u6bd4\u5982\u5e26\u6709\u5343\u4f4d\u5206\u9694\u7b26\u6216\u5c0f\u6570\u70b9\u3002\u5982\u679c\u9700\u8981\u63d0\u53d6\u8fd9\u6837\u7684\u6570\u5b57\uff0c\u5c31\u9700\u8981\u76f8\u5e94\u5730\u8c03\u6574\u6b63\u5219\u8868\u8fbe\u5f0f\u6216\u5904\u7406\u903b\u8f91\u3002\u4f8b\u5982\uff1a  <\/p>\n<pre><code class=\"language-python\">text = &quot;\u4ef7\u683c\u662f1,234.56\u5143&quot;\nnumbers = re.findall(r&#39;\\d+[,.]?\\d*&#39;, text)\nprint(numbers)  # \u8f93\u51fa: [&#39;1,234.56&#39;]\n<\/code><\/pre>\n<p>\u8fd9\u79cd\u65b9\u6cd5\u80fd\u591f\u63d0\u53d6\u51fa\u5e26\u6709\u5343\u4f4d\u5206\u9694\u7b26\u548c\u5c0f\u6570\u70b9\u7684\u6570\u5b57\uff0c\u786e\u4fdd\u83b7\u53d6\u5230\u5b8c\u6574\u7684\u6570\u503c\u4fe1\u606f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u591a\u79cd\u65b9\u6cd5\u4ece\u5b57\u7b26\u4e32\u4e2d\u63d0\u53d6\u6570\u5b57\uff0c\u6bd4\u5982\u4f7f\u7528\u5217\u8868\u89e3\u6790\u3001\u6b63\u5219\u8868\u8fbe\u5f0f\u3001filter\u51fd\u6570\u7b49\u3002\u5e38\u89c1\u7684 [&hellip;]","protected":false},"author":3,"featured_media":1107095,"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\/1107088"}],"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=1107088"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1107088\/revisions"}],"predecessor-version":[{"id":1107096,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1107088\/revisions\/1107096"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1107095"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1107088"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1107088"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1107088"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}