{"id":987245,"date":"2024-12-27T07:51:47","date_gmt":"2024-12-26T23:51:47","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/987245.html"},"modified":"2024-12-27T07:51:49","modified_gmt":"2024-12-26T23:51:49","slug":"python%e5%a6%82%e4%bd%95%e6%95%b0%e6%b1%89%e5%ad%97%e4%b8%aa%e6%95%b0","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/987245.html","title":{"rendered":"python\u5982\u4f55\u6570\u6c49\u5b57\u4e2a\u6570"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25063438\/800eba5c-483e-4313-bb3a-1c9c2468af5c.webp\" alt=\"python\u5982\u4f55\u6570\u6c49\u5b57\u4e2a\u6570\" \/><\/p>\n<p><p> <strong>\u5728Python\u4e2d\uff0c\u6570\u6c49\u5b57\u4e2a\u6570\u7684\u65b9\u6cd5\u6709\u591a\u79cd\uff0c\u5e38\u7528\u7684\u6709\uff1a\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u3001\u5229\u7528Unicode\u7f16\u7801\u8303\u56f4\u3001\u7ed3\u5408\u5b57\u7b26\u4e32\u51fd\u6570\u7b49\u3002<\/strong>\u5176\u4e2d\uff0c\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u8fdb\u884c\u5339\u914d\u662f\u6bd4\u8f83\u76f4\u63a5\u548c\u9ad8\u6548\u7684\u65b9\u6cd5\uff0c\u56e0\u4e3a\u5b83\u53ef\u4ee5\u7cbe\u786e\u5730\u5339\u914d\u51fa\u6c49\u5b57\u5b57\u7b26\u3002\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u8fd9\u4e9b\u65b9\u6cd5\u53ca\u5176\u5b9e\u73b0\u7ec6\u8282\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\u6587\u672c\u5904\u7406\u5de5\u5177\uff0c\u80fd\u591f\u7cbe\u786e\u5339\u914d\u5404\u79cd\u6a21\u5f0f\u3002\u8981\u6570\u51fa\u5b57\u7b26\u4e32\u4e2d\u7684\u6c49\u5b57\u4e2a\u6570\uff0c\u53ef\u4ee5\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u5339\u914d\u6c49\u5b57\u7684Unicode\u8303\u56f4\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u6b63\u5219\u8868\u8fbe\u5f0f\u5339\u914d\u6c49\u5b57<\/strong><\/p>\n<\/p>\n<p><p>\u5728\u6b63\u5219\u8868\u8fbe\u5f0f\u4e2d\uff0c\u6c49\u5b57\u7684Unicode\u8303\u56f4\u4e00\u822c\u662f <code>[\\u4e00-\\u9fff]<\/code>\u3002\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7 <code>re<\/code> \u6a21\u5757\u6765\u5b9e\u73b0\u8fd9\u4e00\u529f\u80fd\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import re<\/p>\n<p>def count_chinese_characters(text):<\/p>\n<p>    pattern = re.compile(r&#39;[\\u4e00-\\u9fff]&#39;)<\/p>\n<p>    matches = pattern.findall(text)<\/p>\n<p>    return len(matches)<\/p>\n<p>text = &quot;\u4f60\u597d\uff0c\u4e16\u754c\uff01Hello, World!&quot;<\/p>\n<p>print(count_chinese_characters(text))  # \u8f93\u51fa: 4<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u8be6\u7ec6\u8bf4\u660e\uff1a<\/strong>\u5728\u4e0a\u8ff0\u4ee3\u7801\u4e2d\uff0c<code>re.compile<\/code> \u521b\u5efa\u4e86\u4e00\u4e2a\u6b63\u5219\u8868\u8fbe\u5f0f\u6a21\u5f0f\uff0c<code>findall<\/code> \u65b9\u6cd5\u7528\u4e8e\u627e\u5230\u6240\u6709\u5339\u914d\u7684\u6c49\u5b57\u5e76\u8fd4\u56de\u5b83\u4eec\u7684\u5217\u8868\u3002\u6700\u540e\uff0c\u901a\u8fc7\u8ba1\u7b97\u5217\u8868\u7684\u957f\u5ea6\u6765\u5f97\u5230\u6c49\u5b57\u7684\u4e2a\u6570\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e8c\u3001\u5229\u7528Unicode\u7f16\u7801\u8303\u56f4<\/p>\n<\/p>\n<p><p>Python\u4e2d\u7684\u5b57\u7b26\u4e32\u662fUnicode\u7f16\u7801\u7684\uff0c\u56e0\u6b64\u53ef\u4ee5\u76f4\u63a5\u4f7f\u7528Unicode\u8303\u56f4\u6765\u5224\u65ad\u4e00\u4e2a\u5b57\u7b26\u662f\u5426\u4e3a\u6c49\u5b57\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u901a\u8fc7\u5b57\u7b26\u7684Unicode\u5224\u65ad<\/strong><\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def count_chinese_characters_v2(text):<\/p>\n<p>    count = 0<\/p>\n<p>    for char in text:<\/p>\n<p>        if &#39;\\u4e00&#39; &lt;= char &lt;= &#39;\\u9fff&#39;:<\/p>\n<p>            count += 1<\/p>\n<p>    return count<\/p>\n<p>text = &quot;\u4f60\u597d\uff0c\u4e16\u754c\uff01Hello, World!&quot;<\/p>\n<p>print(count_chinese_characters_v2(text))  # \u8f93\u51fa: 4<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u8be6\u7ec6\u8bf4\u660e\uff1a<\/strong>\u5728\u8fd9\u4e2a\u65b9\u6cd5\u4e2d\uff0c\u6211\u4eec\u904d\u5386\u5b57\u7b26\u4e32\u4e2d\u7684\u6bcf\u4e2a\u5b57\u7b26\uff0c\u5229\u7528Unicode\u503c\u5224\u65ad\u8be5\u5b57\u7b26\u662f\u5426\u5728\u6c49\u5b57\u7684\u8303\u56f4\u5185\uff0c\u5982\u679c\u662f\u5219\u8ba1\u6570\u5668\u52a0\u4e00\u3002\u8be5\u65b9\u6cd5\u7b80\u5355\u76f4\u89c2\uff0c\u4f46\u5bf9\u4e8e\u590d\u6742\u5b57\u7b26\u4e32\u7684\u5904\u7406\u53ef\u80fd\u4e0d\u5982\u6b63\u5219\u8868\u8fbe\u5f0f\u7075\u6d3b\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e09\u3001\u7ed3\u5408\u5b57\u7b26\u4e32\u51fd\u6570<\/p>\n<\/p>\n<p><p>\u6709\u65f6\u5019\uff0c\u6211\u4eec\u53ef\u4ee5\u7ed3\u5408\u5b57\u7b26\u4e32\u7684\u4e00\u4e9b\u5185\u5efa\u51fd\u6570\uff0c\u6765\u5b9e\u73b0\u5bf9\u7279\u5b9a\u5b57\u7b26\u7684\u7edf\u8ba1\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u4f7f\u7528filter\u51fd\u6570<\/strong><\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def count_chinese_characters_v3(text):<\/p>\n<p>    return len(list(filter(lambda char: &#39;\\u4e00&#39; &lt;= char &lt;= &#39;\\u9fff&#39;, text)))<\/p>\n<p>text = &quot;\u4f60\u597d\uff0c\u4e16\u754c\uff01Hello, World!&quot;<\/p>\n<p>print(count_chinese_characters_v3(text))  # \u8f93\u51fa: 4<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u8be6\u7ec6\u8bf4\u660e\uff1a<\/strong><code>filter<\/code> \u51fd\u6570\u7528\u4e8e\u8fc7\u6ee4\u51fa\u7b26\u5408\u6761\u4ef6\u7684\u5b57\u7b26\uff0c\u7136\u540e\u901a\u8fc7 <code>list<\/code> \u548c <code>len<\/code> \u8ba1\u7b97\u7b26\u5408\u6761\u4ef6\u7684\u5b57\u7b26\u4e2a\u6570\u3002\u8fd9\u79cd\u65b9\u6cd5\u76f8\u5bf9\u7b80\u6d01\uff0c\u4f46\u4e0e\u524d\u9762\u7684\u65b9\u6cd5\u76f8\u6bd4\uff0c\u53ef\u80fd\u5728\u6548\u7387\u4e0a\u7a0d\u900a\u4e00\u7b79\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u56db\u3001\u7ed3\u5408\u5916\u90e8\u5e93<\/p>\n<\/p>\n<p><p>\u5728Python\u4e2d\uff0c\u6709\u4e00\u4e9b\u7b2c\u4e09\u65b9\u5e93\u53ef\u4ee5\u5e2e\u52a9\u5904\u7406\u6587\u672c\u4e2d\u7684\u591a\u79cd\u8bed\u8a00\u548c\u5b57\u7b26\uff0c\u8fd9\u4e9b\u5e93\u6709\u65f6\u53ef\u4ee5\u66f4\u9ad8\u6548\u5730\u89e3\u51b3\u95ee\u9898\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u4f7f\u7528\u7b2c\u4e09\u65b9\u5e93\u4f8b\u5982 <code>jieba<\/code><\/strong><\/p>\n<\/p>\n<p><p>\u867d\u7136 <code>jieba<\/code> \u901a\u5e38\u7528\u4e8e\u5206\u8bcd\uff0c\u4f46\u6211\u4eec\u4e5f\u53ef\u4ee5\u5229\u7528\u5176\u5bf9\u6c49\u5b57\u7684\u8bc6\u522b\u7279\u6027\u8fdb\u884c\u7edf\u8ba1\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import jieba<\/p>\n<p>def count_chinese_characters_v4(text):<\/p>\n<p>    words = jieba.lcut(text)<\/p>\n<p>    count = sum(1 for word in words if any(&#39;\\u4e00&#39; &lt;= char &lt;= &#39;\\u9fff&#39; for char in word))<\/p>\n<p>    return count<\/p>\n<p>text = &quot;\u4f60\u597d\uff0c\u4e16\u754c\uff01Hello, World!&quot;<\/p>\n<p>print(count_chinese_characters_v4(text))  # \u8f93\u51fa: 4<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u8be6\u7ec6\u8bf4\u660e\uff1a<\/strong><code>jieba.lcut<\/code> \u4f1a\u5206\u5272\u6587\u672c\u4e3a\u8bcd\u8bed\u5217\u8868\uff0c\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u904d\u5386\u8fd9\u4e9b\u8bcd\u8bed\u6765\u5224\u65ad\u5176\u4e2d\u662f\u5426\u5305\u542b\u6c49\u5b57\u3002\u8fd9\u79cd\u65b9\u6cd5\u7075\u6d3b\u6027\u8f83\u9ad8\uff0c\u9002\u5408\u5bf9\u6df7\u5408\u6587\u672c\u8fdb\u884c\u590d\u6742\u5904\u7406\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e94\u3001\u6027\u80fd\u4e0e\u5e94\u7528\u573a\u666f<\/p>\n<\/p>\n<p><p>\u5728\u9009\u62e9\u5177\u4f53\u7684\u65b9\u6cd5\u65f6\uff0c\u6211\u4eec\u9700\u8981\u8003\u8651\u5177\u4f53\u7684\u5e94\u7528\u573a\u666f\u548c\u6027\u80fd\u9700\u6c42\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u6b63\u5219\u8868\u8fbe\u5f0f\u7684\u4f18\u52bf<\/strong><\/p>\n<\/p>\n<p><p>\u5f53\u5904\u7406\u7684\u6587\u672c\u8f83\u5927\u4e14\u9700\u8981\u9891\u7e41\u5339\u914d\u4e0d\u540c\u6a21\u5f0f\u65f6\uff0c\u6b63\u5219\u8868\u8fbe\u5f0f\u7684\u6548\u7387\u548c\u7b80\u6d01\u6027\u975e\u5e38\u7a81\u51fa\u3002\u5b83\u80fd\u591f\u5feb\u901f\u9002\u5e94\u590d\u6742\u7684\u5339\u914d\u89c4\u5219\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>Unicode\u8303\u56f4\u5224\u65ad\u7684\u4f18\u52bf<\/strong><\/p>\n<\/p>\n<p><p>\u5982\u679c\u4f60\u5728\u610f\u6027\u80fd\uff0c\u4e14\u5904\u7406\u7684\u6587\u672c\u73af\u5883\u7b80\u5355\uff0c\u76f4\u63a5\u4f7f\u7528Unicode\u8303\u56f4\u5224\u65ad\u662f\u975e\u5e38\u9ad8\u6548\u7684\uff0c\u56e0\u4e3a\u5b83\u907f\u514d\u4e86\u6b63\u5219\u8868\u8fbe\u5f0f\u7684\u7f16\u8bd1\u8fc7\u7a0b\uff0c\u76f4\u63a5\u5728\u5b57\u7b26\u5c42\u9762\u8fdb\u884c\u5224\u65ad\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u7ed3\u5408\u5b57\u7b26\u4e32\u51fd\u6570\u7684\u7075\u6d3b\u6027<\/strong><\/p>\n<\/p>\n<p><p>\u5b57\u7b26\u4e32\u51fd\u6570\u548c <code>filter<\/code> \u7684\u7ed3\u5408\u4f7f\u7528\uff0c\u9002\u5408\u9700\u8981\u7ed3\u5408\u5176\u4ed6\u5b57\u7b26\u89c4\u5219\u8fdb\u884c\u5904\u7406\u7684\u573a\u666f\uff0c\u867d\u7136\u53ef\u80fd\u4e0d\u5982\u6b63\u5219\u8868\u8fbe\u5f0f\u548c\u76f4\u63a5\u5224\u65ad\u9ad8\u6548\uff0c\u4f46\u5728\u67d0\u4e9b\u81ea\u5b9a\u4e49\u89c4\u5219\u4e0b\u975e\u5e38\u7075\u6d3b\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u7b2c\u4e09\u65b9\u5e93\u7684\u6269\u5c55\u6027<\/strong><\/p>\n<\/p>\n<p><p>\u5f53\u9700\u8981\u5904\u7406\u66f4\u590d\u6742\u7684\u4e2d\u6587\u6587\u672c\uff0c\u751a\u81f3\u5305\u62ec\u5206\u8bcd\u3001\u8bcd\u6027\u6807\u6ce8\u7b49\u529f\u80fd\u65f6\uff0c\u7b2c\u4e09\u65b9\u5e93\u5982 <code>jieba<\/code> \u63d0\u4f9b\u4e86\u826f\u597d\u7684\u652f\u6301\uff0c\u5c3d\u7ba1\u4ec5\u7528\u4e8e\u6c49\u5b57\u8ba1\u6570\u65f6\u53ef\u80fd\u663e\u5f97\u591a\u4f59\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u603b\u7ed3\u6765\u8bf4\uff0cPython\u4e2d\u7edf\u8ba1\u6c49\u5b57\u4e2a\u6570\u7684\u65b9\u6cd5\u591a\u79cd\u591a\u6837\uff0c\u6bcf\u79cd\u65b9\u6cd5\u6709\u5176\u7279\u5b9a\u7684\u4f18\u52bf\u548c\u9002\u7528\u573a\u666f\u3002\u6839\u636e\u5177\u4f53\u9700\u6c42\uff0c\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\u80fd\u591f\u6709\u6548\u63d0\u9ad8\u4ee3\u7801\u7684\u53ef\u8bfb\u6027\u548c\u6267\u884c\u6548\u7387\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u8bc6\u522b\u548c\u8ba1\u6570\u6c49\u5b57\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u6765\u8bc6\u522b\u6c49\u5b57\u3002\u901a\u8fc7\u4f7f\u7528<code>re<\/code>\u6a21\u5757\uff0c\u60a8\u53ef\u4ee5\u8f7b\u677e\u5730\u7f16\u5199\u4e00\u4e2a\u51fd\u6570\uff0c\u6765\u904d\u5386\u5b57\u7b26\u4e32\u5e76\u7edf\u8ba1\u6c49\u5b57\u7684\u6570\u91cf\u3002\u5177\u4f53\u65b9\u6cd5\u662f\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f<code>[\\u4e00-\\u9fa5]<\/code>\u6765\u5339\u914d\u6c49\u5b57\u5b57\u7b26\u3002<\/p>\n<p><strong>\u6709\u6ca1\u6709\u7b80\u5355\u7684Python\u5e93\u53ef\u4ee5\u5e2e\u52a9\u6211\u7edf\u8ba1\u6c49\u5b57\u4e2a\u6570\uff1f<\/strong><br \/>\u662f\u7684\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528\u4e00\u4e9b\u7b2c\u4e09\u65b9\u5e93\uff0c\u4f8b\u5982<code>jieba<\/code>\uff0c\u8be5\u5e93\u4e3b\u8981\u7528\u4e8e\u4e2d\u6587\u5206\u8bcd\uff0c\u4f46\u4e5f\u53ef\u4ee5\u7528\u6765\u7edf\u8ba1\u6c49\u5b57\u6570\u91cf\u3002\u901a\u8fc7\u5bf9\u5b57\u7b26\u4e32\u8fdb\u884c\u5206\u8bcd\uff0c\u60a8\u53ef\u4ee5\u8f7b\u677e\u5730\u8fc7\u6ee4\u51fa\u6c49\u5b57\u5e76\u8fdb\u884c\u8ba1\u6570\u3002<\/p>\n<p><strong>\u5982\u4f55\u5904\u7406\u5305\u542b\u7279\u6b8a\u5b57\u7b26\u548c\u6570\u5b57\u7684\u5b57\u7b26\u4e32\uff0c\u4ee5\u786e\u4fdd\u53ea\u7edf\u8ba1\u6c49\u5b57\uff1f<\/strong><br \/>\u5728\u5904\u7406\u5b57\u7b26\u4e32\u65f6\uff0c\u60a8\u53ef\u4ee5\u7ed3\u5408\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u548c\u5b57\u7b26\u4e32\u65b9\u6cd5\u3002\u901a\u8fc7\u5148\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u8fc7\u6ee4\u51fa\u6240\u6709\u6c49\u5b57\uff0c\u518d\u8fdb\u884c\u8ba1\u6570\uff0c\u53ef\u4ee5\u786e\u4fdd\u53ea\u7edf\u8ba1\u6c49\u5b57\uff0c\u5ffd\u7565\u5176\u4ed6\u5b57\u7b26\u548c\u6570\u5b57\u3002\u8fd9\u79cd\u65b9\u6cd5\u80fd\u591f\u6709\u6548\u63d0\u5347\u7edf\u8ba1\u7684\u51c6\u786e\u6027\u3002<\/p>\n<p><strong>\u5728Python\u4e2d\u5982\u4f55\u5904\u7406\u591a\u884c\u6587\u672c\u4ee5\u7edf\u8ba1\u5176\u4e2d\u7684\u6c49\u5b57\uff1f<\/strong><br \/>\u53ef\u4ee5\u901a\u8fc7\u9010\u884c\u8bfb\u53d6\u6587\u672c\u6587\u4ef6\u6216\u591a\u884c\u5b57\u7b26\u4e32\uff0c\u5c06\u6bcf\u884c\u4f20\u9012\u7ed9\u6c49\u5b57\u8ba1\u6570\u51fd\u6570\uff0c\u6700\u7ec8\u5c06\u6240\u6709\u884c\u7684\u8ba1\u6570\u7ed3\u679c\u76f8\u52a0\u3002\u8fd9\u6837\u60a8\u5c31\u53ef\u4ee5\u5f97\u5230\u6574\u4e2a\u6587\u672c\u4e2d\u7684\u6c49\u5b57\u603b\u6570\u3002\u8fd9\u79cd\u65b9\u5f0f\u9002\u5408\u5904\u7406\u8f83\u5927\u6587\u672c\u6216\u6587\u4ef6\u4e2d\u7684\u6570\u636e\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\uff0c\u6570\u6c49\u5b57\u4e2a\u6570\u7684\u65b9\u6cd5\u6709\u591a\u79cd\uff0c\u5e38\u7528\u7684\u6709\uff1a\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u3001\u5229\u7528Unicode\u7f16\u7801\u8303\u56f4\u3001\u7ed3\u5408\u5b57\u7b26\u4e32\u51fd\u6570 [&hellip;]","protected":false},"author":3,"featured_media":987251,"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\/987245"}],"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=987245"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/987245\/revisions"}],"predecessor-version":[{"id":987252,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/987245\/revisions\/987252"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/987251"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=987245"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=987245"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=987245"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}