{"id":1129711,"date":"2025-01-08T20:31:58","date_gmt":"2025-01-08T12:31:58","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1129711.html"},"modified":"2025-01-08T20:32:01","modified_gmt":"2025-01-08T12:32:01","slug":"python%e5%a6%82%e4%bd%95%e6%88%aa%e5%8f%96%e5%ad%97%e7%ac%a6%e4%b8%b2%e4%b8%ad%e7%9a%84%e6%95%b0%e5%ad%97","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1129711.html","title":{"rendered":"python\u5982\u4f55\u622a\u53d6\u5b57\u7b26\u4e32\u4e2d\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\/25100040\/918e6ea8-2e0a-45b1-b75b-bd6dcb9fc3e8.webp\" alt=\"python\u5982\u4f55\u622a\u53d6\u5b57\u7b26\u4e32\u4e2d\u7684\u6570\u5b57\" \/><\/p>\n<p><p> <strong>\u5728Python\u4e2d\u622a\u53d6\u5b57\u7b26\u4e32\u4e2d\u7684\u6570\u5b57\uff0c\u53ef\u4ee5\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u3001\u5b57\u7b26\u4e32\u65b9\u6cd5\u3001\u5217\u8868\u89e3\u6790\u7b49\u591a\u79cd\u65b9\u6cd5<\/strong>\u3002\u5176\u4e2d\uff0c\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u662f\u6700\u5e38\u89c1\u548c\u6700\u7075\u6d3b\u7684\u65b9\u5f0f\uff0c\u56e0\u4e3a\u5b83\u53ef\u4ee5\u5904\u7406\u590d\u6742\u7684\u5b57\u7b26\u4e32\u5339\u914d\u3002<strong>\u6b63\u5219\u8868\u8fbe\u5f0f\u3001\u5b57\u7b26\u4e32\u65b9\u6cd5\u3001\u5217\u8868\u89e3\u6790<\/strong>\u662f\u4e09\u79cd\u5e38\u7528\u7684\u65b9\u6cd5\uff0c\u4e0b\u9762\u6211\u4eec\u8be6\u7ec6\u4ecb\u7ecd\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u7684\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<p><p>\u6b63\u5219\u8868\u8fbe\u5f0f\uff08Regular Expression\uff0c\u7b80\u79f0\u6b63\u5219\uff09\u662f\u4e00\u79cd\u6a21\u5f0f\u5339\u914d\u5de5\u5177\uff0c\u901a\u8fc7\u5b9a\u4e49\u7279\u5b9a\u7684\u5339\u914d\u89c4\u5219\uff0c\u53ef\u4ee5\u5728\u6587\u672c\u4e2d\u5feb\u901f\u627e\u5230\u60f3\u8981\u7684\u5185\u5bb9\u3002Python\u63d0\u4f9b\u4e86\u5185\u7f6e\u7684re\u6a21\u5757\u6765\u5904\u7406\u6b63\u5219\u8868\u8fbe\u5f0f\u64cd\u4f5c\u3002<\/p>\n<\/p>\n<p><h2>\u4e00\u3001\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u63d0\u53d6\u6570\u5b57<\/h2>\n<\/p>\n<p><p>\u6b63\u5219\u8868\u8fbe\u5f0f\u662f\u5904\u7406\u5b57\u7b26\u4e32\u7684\u5f3a\u5927\u5de5\u5177\uff0c\u7279\u522b\u9002\u7528\u4e8e\u590d\u6742\u7684\u6a21\u5f0f\u5339\u914d\u9700\u6c42\u3002\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528<code>re<\/code>\u6a21\u5757\u6765\u5904\u7406\u6b63\u5219\u8868\u8fbe\u5f0f\u3002\u4e0b\u9762\u662f\u5982\u4f55\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u63d0\u53d6\u5b57\u7b26\u4e32\u4e2d\u7684\u6570\u5b57\u7684\u8be6\u7ec6\u6b65\u9aa4\u3002<\/p>\n<\/p>\n<p><h3>1\u3001\u5f15\u5165\u6b63\u5219\u8868\u8fbe\u5f0f\u6a21\u5757<\/h3>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u9700\u8981\u5f15\u5165Python\u7684re\u6a21\u5757\uff0c\u8fd9\u662f\u5904\u7406\u6b63\u5219\u8868\u8fbe\u5f0f\u7684\u6807\u51c6\u5e93\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import re<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>2\u3001\u7f16\u5199\u6b63\u5219\u8868\u8fbe\u5f0f\u6a21\u5f0f<\/h3>\n<\/p>\n<p><p>\u6b63\u5219\u8868\u8fbe\u5f0f\u7684\u6a21\u5f0f\u662f\u5339\u914d\u89c4\u5219\u7684\u6838\u5fc3\u3002\u8981\u5339\u914d\u5b57\u7b26\u4e32\u4e2d\u7684\u6240\u6709\u6570\u5b57\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u6a21\u5f0f\uff1a<\/p>\n<\/p>\n<ul>\n<li><code>\\d<\/code>\uff1a\u8868\u793a\u5339\u914d\u4e00\u4e2a\u6570\u5b57\u5b57\u7b26\uff080-9\uff09\u3002<\/li>\n<li><code>\\d+<\/code>\uff1a\u8868\u793a\u5339\u914d\u4e00\u4e2a\u6216\u591a\u4e2a\u8fde\u7eed\u7684\u6570\u5b57\u5b57\u7b26\u3002<\/li>\n<\/ul>\n<p><pre><code class=\"language-python\">pattern = r&#39;\\d+&#39;<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>3\u3001\u4f7f\u7528re.findall()\u51fd\u6570<\/h3>\n<\/p>\n<p><p><code>re.findall()<\/code>\u51fd\u6570\u7528\u4e8e\u5728\u5b57\u7b26\u4e32\u4e2d\u627e\u5230\u6240\u6709\u5339\u914d\u7684\u5b50\u4e32\uff0c\u5e76\u4ee5\u5217\u8868\u7684\u5f62\u5f0f\u8fd4\u56de\u3002\u5982\u679c\u53ea\u9700\u8981\u7b2c\u4e00\u4e2a\u5339\u914d\u7684\u6570\u5b57\uff0c\u53ef\u4ee5\u4f7f\u7528<code>re.search()<\/code>\u51fd\u6570\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">string = &quot;abc123def456ghi789&quot;<\/p>\n<p>numbers = re.findall(pattern, string)<\/p>\n<p>print(numbers)  # \u8f93\u51fa: [&#39;123&#39;, &#39;456&#39;, &#39;789&#39;]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>4\u3001\u8f6c\u6362\u4e3a\u6570\u5b57\u7c7b\u578b<\/h3>\n<\/p>\n<p><p>findall\u8fd4\u56de\u7684\u662f\u4e00\u4e2a\u5b57\u7b26\u4e32\u5217\u8868\uff0c\u5982\u679c\u9700\u8981\u5c06\u5176\u8f6c\u6362\u4e3a\u6570\u5b57\u7c7b\u578b\uff0c\u53ef\u4ee5\u4f7f\u7528\u5217\u8868\u89e3\u6790\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">numbers = [int(num) for num in numbers]<\/p>\n<p>print(numbers)  # \u8f93\u51fa: [123, 456, 789]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h2>\u4e8c\u3001\u4f7f\u7528\u5b57\u7b26\u4e32\u65b9\u6cd5\u63d0\u53d6\u6570\u5b57<\/h2>\n<\/p>\n<p><p>\u867d\u7136\u6b63\u5219\u8868\u8fbe\u5f0f\u662f\u63d0\u53d6\u5b57\u7b26\u4e32\u4e2d\u6570\u5b57\u7684\u5f3a\u5927\u5de5\u5177\uff0c\u4f46\u6709\u65f6\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528\u66f4\u7b80\u5355\u7684\u5b57\u7b26\u4e32\u65b9\u6cd5\u6765\u5b8c\u6210\u4efb\u52a1\uff0c\u7279\u522b\u662f\u5728\u5904\u7406\u7b80\u5355\u7684\u5b57\u7b26\u4e32\u65f6\u3002<\/p>\n<\/p>\n<p><h3>1\u3001\u4f7f\u7528\u5b57\u7b26\u4e32\u7684isnumeric()\u65b9\u6cd5<\/h3>\n<\/p>\n<p><p><code>isnumeric()<\/code>\u65b9\u6cd5\u53ef\u4ee5\u7528\u6765\u5224\u65ad\u5b57\u7b26\u4e32\u4e2d\u7684\u5b57\u7b26\u662f\u5426\u4e3a\u6570\u5b57\u3002\u901a\u8fc7\u904d\u5386\u5b57\u7b26\u4e32\u4e2d\u7684\u6bcf\u4e2a\u5b57\u7b26\uff0c\u53ef\u4ee5\u63d0\u53d6\u51fa\u6240\u6709\u7684\u6570\u5b57\u5b57\u7b26\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">string = &quot;abc123def456ghi789&quot;<\/p>\n<p>numbers = &#39;&#39;.join([char for char in string if char.isnumeric()])<\/p>\n<p>print(numbers)  # \u8f93\u51fa: 123456789<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>2\u3001\u5c06\u5b57\u7b26\u4e32\u5206\u5272\u4e3a\u5355\u72ec\u7684\u6570\u5b57<\/h3>\n<\/p>\n<p><p>\u5982\u679c\u9700\u8981\u5c06\u63d0\u53d6\u5230\u7684\u6570\u5b57\u5206\u5272\u5f00\uff0c\u53ef\u4ee5\u4f7f\u7528<code>split()<\/code>\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import re<\/p>\n<p>string = &quot;abc123def456ghi789&quot;<\/p>\n<p>numbers = re.findall(r&#39;\\d+&#39;, string)<\/p>\n<p>print(numbers)  # \u8f93\u51fa: [&#39;123&#39;, &#39;456&#39;, &#39;789&#39;]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h2>\u4e09\u3001\u4f7f\u7528\u5217\u8868\u89e3\u6790\u63d0\u53d6\u6570\u5b57<\/h2>\n<\/p>\n<p><p>\u5217\u8868\u89e3\u6790\u662f\u4e00\u79cd\u7b80\u6d01\u800c\u9ad8\u6548\u7684\u65b9\u6cd5\uff0c\u53ef\u4ee5\u7528\u6765\u5904\u7406\u5e8f\u5217\u4e2d\u7684\u5143\u7d20\u3002\u901a\u8fc7\u5217\u8868\u89e3\u6790\uff0c\u53ef\u4ee5\u5f88\u5bb9\u6613\u5730\u4ece\u5b57\u7b26\u4e32\u4e2d\u63d0\u53d6\u51fa\u6570\u5b57\u5b57\u7b26\u3002<\/p>\n<\/p>\n<p><h3>1\u3001\u63d0\u53d6\u5355\u4e2a\u6570\u5b57\u5b57\u7b26<\/h3>\n<\/p>\n<p><pre><code class=\"language-python\">string = &quot;abc123def456ghi789&quot;<\/p>\n<p>numbers = [char for char in string if char.isdigit()]<\/p>\n<p>print(numbers)  # \u8f93\u51fa: [&#39;1&#39;, &#39;2&#39;, &#39;3&#39;, &#39;4&#39;, &#39;5&#39;, &#39;6&#39;, &#39;7&#39;, &#39;8&#39;, &#39;9&#39;]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>2\u3001\u5c06\u6570\u5b57\u5b57\u7b26\u5408\u5e76\u4e3a\u6574\u4f53\u6570\u5b57<\/h3>\n<\/p>\n<p><pre><code class=\"language-python\">string = &quot;abc123def456ghi789&quot;<\/p>\n<p>numbers = &#39;&#39;.join([char for char in string if char.isdigit()])<\/p>\n<p>print(numbers)  # \u8f93\u51fa: 123456789<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h2>\u56db\u3001\u7efc\u5408\u5e94\u7528\u793a\u4f8b<\/h2>\n<\/p>\n<p><p>\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u53ef\u80fd\u4f1a\u9047\u5230\u9700\u8981\u5904\u7406\u66f4\u590d\u6742\u7684\u5b57\u7b26\u4e32\u548c\u63d0\u53d6\u89c4\u5219\u3002\u4e0b\u9762\u662f\u4e00\u4e2a\u7efc\u5408\u5e94\u7528\u793a\u4f8b\uff0c\u5c55\u793a\u5982\u4f55\u7ed3\u5408\u6b63\u5219\u8868\u8fbe\u5f0f\u548c\u5176\u4ed6\u5b57\u7b26\u4e32\u65b9\u6cd5\u6765\u63d0\u53d6\u5b57\u7b26\u4e32\u4e2d\u7684\u6570\u5b57\u3002<\/p>\n<\/p>\n<p><h3>\u793a\u4f8b\uff1a\u63d0\u53d6\u5e76\u8ba1\u7b97\u5b57\u7b26\u4e32\u4e2d\u7684\u6570\u5b57\u548c<\/h3>\n<\/p>\n<p><p>\u5047\u8bbe\u6709\u4e00\u4e2a\u5305\u542b\u591a\u4e2a\u6570\u5b57\u7684\u5b57\u7b26\u4e32\uff0c\u6211\u4eec\u5e0c\u671b\u63d0\u53d6\u51fa\u6240\u6709\u6570\u5b57\u5e76\u8ba1\u7b97\u5b83\u4eec\u7684\u548c\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import re<\/p>\n<p>def extract_and_sum_numbers(string):<\/p>\n<p>    # \u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u63d0\u53d6\u6570\u5b57<\/p>\n<p>    pattern = r&#39;\\d+&#39;<\/p>\n<p>    numbers = re.findall(pattern, string)<\/p>\n<p>    # \u5c06\u63d0\u53d6\u5230\u7684\u6570\u5b57\u8f6c\u6362\u4e3a\u6574\u6570\u7c7b\u578b<\/p>\n<p>    numbers = [int(num) for num in numbers]<\/p>\n<p>    # \u8ba1\u7b97\u6570\u5b57\u7684\u548c<\/p>\n<p>    total_sum = sum(numbers)<\/p>\n<p>    return total_sum<\/p>\n<h2><strong>\u793a\u4f8b\u5b57\u7b26\u4e32<\/strong><\/h2>\n<p>string = &quot;abc123def456ghi789&quot;<\/p>\n<p>result = extract_and_sum_numbers(string)<\/p>\n<p>print(result)  # \u8f93\u51fa: 1368<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u6211\u4eec\u9996\u5148\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u63d0\u53d6\u51fa\u5b57\u7b26\u4e32\u4e2d\u7684\u6240\u6709\u6570\u5b57\uff0c\u7136\u540e\u5c06\u8fd9\u4e9b\u6570\u5b57\u8f6c\u6362\u4e3a\u6574\u6570\u7c7b\u578b\uff0c\u6700\u540e\u8ba1\u7b97\u5b83\u4eec\u7684\u548c\u5e76\u8fd4\u56de\u7ed3\u679c\u3002<\/p>\n<\/p>\n<p><p>\u901a\u8fc7\u4ee5\u4e0a\u65b9\u6cd5\uff0c\u53ef\u4ee5\u6709\u6548\u5730\u5728Python\u4e2d\u622a\u53d6\u5b57\u7b26\u4e32\u4e2d\u7684\u6570\u5b57\u3002\u6839\u636e\u4e0d\u540c\u7684\u9700\u6c42\uff0c\u53ef\u4ee5\u9009\u62e9\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u3001\u5b57\u7b26\u4e32\u65b9\u6cd5\u6216\u5217\u8868\u89e3\u6790\u7b49\u4e0d\u540c\u7684\u6280\u672f\u6765\u5b9e\u73b0\u3002\u6b63\u5219\u8868\u8fbe\u5f0f\u9002\u7528\u4e8e\u590d\u6742\u7684\u6a21\u5f0f\u5339\u914d\u9700\u6c42\uff0c\u800c\u5b57\u7b26\u4e32\u65b9\u6cd5\u548c\u5217\u8868\u89e3\u6790\u5219\u9002\u7528\u4e8e\u7b80\u5355\u7684\u5b57\u7b26\u4e32\u5904\u7406\u4efb\u52a1\u3002\u65e0\u8bba\u9009\u62e9\u54ea\u79cd\u65b9\u6cd5\uff0c\u90fd\u53ef\u4ee5\u6839\u636e\u5177\u4f53\u7684\u5e94\u7528\u573a\u666f\u7075\u6d3b\u8fd0\u7528\u3002<\/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\u6765\u63d0\u53d6\u5b57\u7b26\u4e32\u4e2d\u7684\u6240\u6709\u6570\u5b57\u3002\u4f7f\u7528<code>re<\/code>\u6a21\u5757\u4e2d\u7684<code>findall<\/code>\u51fd\u6570\uff0c\u53ef\u4ee5\u8f7b\u677e\u5b9e\u73b0\u3002\u4f8b\u5982\uff0c<code>re.findall(r&#39;\\d+&#39;, your_string)<\/code>\u5c06\u8fd4\u56de\u5b57\u7b26\u4e32\u4e2d\u6240\u6709\u6570\u5b57\u7684\u5217\u8868\u3002<\/p>\n<p><strong>Python\u4e2d\u662f\u5426\u6709\u5185\u7f6e\u51fd\u6570\u53ef\u4ee5\u76f4\u63a5\u83b7\u53d6\u5b57\u7b26\u4e32\u4e2d\u7684\u6570\u5b57\uff1f<\/strong><br \/>\u867d\u7136Python\u6ca1\u6709\u5185\u7f6e\u51fd\u6570\u4e13\u95e8\u7528\u4e8e\u63d0\u53d6\u6570\u5b57\uff0c\u4f46\u53ef\u4ee5\u7ed3\u5408\u5b57\u7b26\u4e32\u65b9\u6cd5\u548c\u5217\u8868\u63a8\u5bfc\u5f0f\u5b9e\u73b0\u3002\u4f8b\u5982\uff0c\u53ef\u4ee5\u4f7f\u7528<code>isdigit()<\/code>\u65b9\u6cd5\u68c0\u67e5\u5b57\u7b26\u662f\u5426\u4e3a\u6570\u5b57\uff0c\u4ece\u800c\u7b5b\u9009\u51fa\u5b57\u7b26\u4e32\u4e2d\u7684\u6570\u5b57\u3002<\/p>\n<p><strong>\u5982\u4f55\u5c06\u63d0\u53d6\u5230\u7684\u6570\u5b57\u8f6c\u6362\u4e3a\u6574\u6570\u6216\u6d6e\u70b9\u6570\uff1f<\/strong><br \/>\u63d0\u53d6\u5230\u7684\u6570\u5b57\u901a\u5e38\u4ee5\u5b57\u7b26\u4e32\u5f62\u5f0f\u5b58\u5728\u3002\u53ef\u4ee5\u4f7f\u7528<code>int()<\/code>\u6216<code>float()<\/code>\u51fd\u6570\u5c06\u5176\u8f6c\u6362\u4e3a\u76f8\u5e94\u7684\u6570\u5b57\u7c7b\u578b\u3002\u4f8b\u5982\uff0c<code>int(&#39;123&#39;)<\/code>\u5c06\u8fd4\u56de\u6574\u6570123\uff0c\u800c<code>float(&#39;123.45&#39;)<\/code>\u5c06\u8fd4\u56de\u6d6e\u70b9\u6570123.45\u3002\u5728\u63d0\u53d6\u6570\u5b57\u540e\uff0c\u786e\u4fdd\u5728\u8f6c\u6362\u4e4b\u524d\u8fdb\u884c\u9002\u5f53\u7684\u683c\u5f0f\u68c0\u67e5\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\u622a\u53d6\u5b57\u7b26\u4e32\u4e2d\u7684\u6570\u5b57\uff0c\u53ef\u4ee5\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u3001\u5b57\u7b26\u4e32\u65b9\u6cd5\u3001\u5217\u8868\u89e3\u6790\u7b49\u591a\u79cd\u65b9\u6cd5\u3002\u5176\u4e2d\uff0c\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u662f [&hellip;]","protected":false},"author":3,"featured_media":1129721,"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\/1129711"}],"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=1129711"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1129711\/revisions"}],"predecessor-version":[{"id":1129724,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1129711\/revisions\/1129724"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1129721"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1129711"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1129711"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1129711"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}