{"id":1018399,"date":"2024-12-27T12:42:03","date_gmt":"2024-12-27T04:42:03","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1018399.html"},"modified":"2024-12-27T12:42:08","modified_gmt":"2024-12-27T04:42:08","slug":"python%e5%a6%82%e4%bd%95%e6%b1%82%e5%b9%b3%e5%9d%87%e8%af%8d%e9%95%bf","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1018399.html","title":{"rendered":"python\u5982\u4f55\u6c42\u5e73\u5747\u8bcd\u957f"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25161113\/efda1dc7-060d-4188-98ce-41928a8f61a8.webp\" alt=\"python\u5982\u4f55\u6c42\u5e73\u5747\u8bcd\u957f\" \/><\/p>\n<p><p> \u5728Python\u4e2d\uff0c<strong>\u6c42\u5e73\u5747\u8bcd\u957f\u7684\u65b9\u6cd5\u4e3b\u8981\u5305\u62ec\u5206\u5272\u53e5\u5b50\u6210\u5355\u8bcd\u3001\u8ba1\u7b97\u6bcf\u4e2a\u5355\u8bcd\u7684\u957f\u5ea6\u3001\u6c42\u6240\u6709\u5355\u8bcd\u957f\u5ea6\u7684\u548c\u3001\u7136\u540e\u9664\u4ee5\u5355\u8bcd\u603b\u6570<\/strong>\u3002\u5176\u4e2d\uff0c\u4f7f\u7528Python\u7684\u5185\u7f6e\u51fd\u6570\u548c\u5e93\u53ef\u4ee5\u7b80\u5316\u8fd9\u4e9b\u6b65\u9aa4\u3002\u4f8b\u5982\uff0c\u53ef\u4ee5\u4f7f\u7528\u5b57\u7b26\u4e32\u7684<code>split()<\/code>\u65b9\u6cd5\u5c06\u53e5\u5b50\u5206\u5272\u6210\u5355\u8bcd\uff0c\u4f7f\u7528\u5217\u8868\u89e3\u6790\u548c<code>len()<\/code>\u51fd\u6570\u8ba1\u7b97\u6bcf\u4e2a\u5355\u8bcd\u7684\u957f\u5ea6\uff0c\u6700\u540e\u901a\u8fc7<code>sum()<\/code>\u51fd\u6570\u6c42\u603b\u957f\u5ea6\u5e76\u8ba1\u7b97\u5e73\u5747\u503c\u3002\u63a5\u4e0b\u6765\uff0c\u6211\u5c06\u8be6\u7ec6\u63cf\u8ff0\u5982\u4f55\u5b9e\u73b0\u8fd9\u4e00\u8fc7\u7a0b\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u5206\u5272\u53e5\u5b50\u6210\u5355\u8bcd<\/h3>\n<\/p>\n<p><p>\u5728Python\u4e2d\uff0c\u5b57\u7b26\u4e32\u7684<code>split()<\/code>\u65b9\u6cd5\u53ef\u4ee5\u8f7b\u677e\u5730\u5c06\u53e5\u5b50\u5206\u5272\u6210\u5355\u8bcd\u3002\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c<code>split()<\/code>\u65b9\u6cd5\u4f1a\u6839\u636e\u7a7a\u683c\u8fdb\u884c\u5206\u5272\u3002\u5982\u679c\u53e5\u5b50\u5305\u542b\u6807\u70b9\u7b26\u53f7\uff0c\u8fd8\u9700\u8981\u8fdb\u4e00\u6b65\u5904\u7406\u4ee5\u786e\u4fdd\u8fd9\u4e9b\u7b26\u53f7\u4e0d\u4f1a\u5f71\u54cd\u5355\u8bcd\u7684\u5206\u5272\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">sentence = &quot;Hello, this is a test sentence.&quot;<\/p>\n<p>words = sentence.split()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u4e0a\u9762\u7684\u4f8b\u5b50\u4e2d\uff0c<code>split()<\/code>\u65b9\u6cd5\u4f1a\u5c06\u53e5\u5b50\u6309\u7a7a\u683c\u5206\u5272\u6210\u5355\u8bcd\u3002\u4f46\u662f\uff0c\u7531\u4e8e\u6807\u70b9\u7b26\u53f7\u201c,\u201d\u548c\u201c.\u201d\uff0c\u6211\u4eec\u53ef\u80fd\u9700\u8981\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u8fdb\u884c\u66f4\u7cbe\u7ec6\u7684\u5206\u5272\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u53bb\u9664\u6807\u70b9\u7b26\u53f7<\/h3>\n<\/p>\n<p><p>\u6807\u70b9\u7b26\u53f7\u4f1a\u5f71\u54cd\u5355\u8bcd\u7684\u957f\u5ea6\u8ba1\u7b97\uff0c\u56e0\u6b64\u5728\u8ba1\u7b97\u5e73\u5747\u8bcd\u957f\u4e4b\u524d\uff0c\u9700\u8981\u53bb\u9664\u8fd9\u4e9b\u7b26\u53f7\u3002\u53ef\u4ee5\u4f7f\u7528Python\u7684<code>re<\/code>\u6a21\u5757\u6765\u5b9e\u73b0\u8fd9\u4e00\u70b9\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import re<\/p>\n<p>sentence = &quot;Hello, this is a test sentence.&quot;<\/p>\n<p>words = re.findall(r&#39;\\b\\w+\\b&#39;, sentence)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c<code>re.findall()<\/code>\u51fd\u6570\u4f1a\u6839\u636e\u6b63\u5219\u8868\u8fbe\u5f0f<code>\\b\\w+\\b<\/code>\u627e\u5230\u6240\u6709\u5355\u8bcd\uff0c\u5ffd\u7565\u6807\u70b9\u7b26\u53f7\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001\u8ba1\u7b97\u6bcf\u4e2a\u5355\u8bcd\u7684\u957f\u5ea6<\/h3>\n<\/p>\n<p><p>\u4e00\u65e6\u6211\u4eec\u5f97\u5230\u4e86\u6240\u6709\u5355\u8bcd\uff0c\u5c31\u53ef\u4ee5\u4f7f\u7528<code>len()<\/code>\u51fd\u6570\u6765\u8ba1\u7b97\u6bcf\u4e2a\u5355\u8bcd\u7684\u957f\u5ea6\u3002\u901a\u8fc7\u5217\u8868\u89e3\u6790\uff0c\u53ef\u4ee5\u7b80\u5316\u8fd9\u4e00\u6b65\u9aa4\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">word_lengths = [len(word) for word in words]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u4e2a\u5217\u8868\u89e3\u6790\u8bed\u53e5\u4f1a\u904d\u5386\u6bcf\u4e2a\u5355\u8bcd\uff0c\u5e76\u8ba1\u7b97\u5176\u957f\u5ea6\uff0c\u6700\u7ec8\u8fd4\u56de\u4e00\u4e2a\u5305\u542b\u6240\u6709\u5355\u8bcd\u957f\u5ea6\u7684\u5217\u8868\u3002<\/p>\n<\/p>\n<p><h3>\u56db\u3001\u6c42\u6240\u6709\u5355\u8bcd\u957f\u5ea6\u7684\u548c<\/h3>\n<\/p>\n<p><p>\u63a5\u4e0b\u6765\uff0c\u4f7f\u7528<code>sum()<\/code>\u51fd\u6570\u8ba1\u7b97\u6240\u6709\u5355\u8bcd\u957f\u5ea6\u7684\u603b\u548c\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">total_length = sum(word_lengths)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e94\u3001\u8ba1\u7b97\u5e73\u5747\u8bcd\u957f<\/h3>\n<\/p>\n<p><p>\u6700\u540e\uff0c\u901a\u8fc7\u5c06\u603b\u957f\u5ea6\u9664\u4ee5\u5355\u8bcd\u603b\u6570\uff0c\u5f97\u5230\u5e73\u5747\u8bcd\u957f\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">average_length = total_length \/ len(words)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u786e\u4fdd\u5728\u8ba1\u7b97\u4e4b\u524d\u68c0\u67e5\u5355\u8bcd\u5217\u8868\u662f\u5426\u4e3a\u7a7a\uff0c\u4ee5\u907f\u514d\u9664\u4ee5\u96f6\u7684\u9519\u8bef\u3002<\/p>\n<\/p>\n<p><h3>\u516d\u3001\u5b8c\u6574\u7684Python\u4ee3\u7801\u793a\u4f8b<\/h3>\n<\/p>\n<p><p>\u4e0b\u9762\u662f\u4e00\u4e2a\u5b8c\u6574\u7684Python\u4ee3\u7801\u793a\u4f8b\uff0c\u5c55\u793a\u4e86\u5982\u4f55\u8ba1\u7b97\u5e73\u5747\u8bcd\u957f\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import re<\/p>\n<p>def calculate_average_word_length(sentence):<\/p>\n<p>    # \u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u53bb\u9664\u6807\u70b9\u7b26\u53f7\u5e76\u5206\u5272\u5355\u8bcd<\/p>\n<p>    words = re.findall(r&#39;\\b\\w+\\b&#39;, sentence)<\/p>\n<p>    # \u8ba1\u7b97\u6bcf\u4e2a\u5355\u8bcd\u7684\u957f\u5ea6<\/p>\n<p>    word_lengths = [len(word) for word in words]<\/p>\n<p>    # \u8ba1\u7b97\u603b\u957f\u5ea6<\/p>\n<p>    total_length = sum(word_lengths)<\/p>\n<p>    # \u8ba1\u7b97\u5e73\u5747\u957f\u5ea6<\/p>\n<p>    average_length = total_length \/ len(words) if words else 0<\/p>\n<p>    return average_length<\/p>\n<p>sentence = &quot;Hello, this is a test sentence.&quot;<\/p>\n<p>average_length = calculate_average_word_length(sentence)<\/p>\n<p>print(f&quot;Average word length: {average_length}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e03\u3001\u5904\u7406\u7a7a\u5b57\u7b26\u4e32\u548c\u7279\u6b8a\u60c5\u51b5<\/h3>\n<\/p>\n<p><p>\u5728\u5b9e\u8df5\u4e2d\uff0c\u5904\u7406\u7a7a\u5b57\u7b26\u4e32\u548c\u5176\u4ed6\u7279\u6b8a\u60c5\u51b5\u662f\u5fc5\u8981\u7684\u3002\u4ee3\u7801\u793a\u4f8b\u4e2d\u5df2\u901a\u8fc7<code>if words else 0<\/code>\u6765\u907f\u514d\u9664\u4ee5\u96f6\u7684\u9519\u8bef\u3002\u5f53\u8f93\u5165\u5b57\u7b26\u4e32\u4e3a\u7a7a\u65f6\uff0c\u8fd4\u56de\u7684\u5e73\u5747\u957f\u5ea6\u4e3a0\u3002<\/p>\n<\/p>\n<p><h3>\u516b\u3001\u8003\u8651\u4e0d\u540c\u8bed\u8a00\u7684\u8bcd\u957f\u8ba1\u7b97<\/h3>\n<\/p>\n<p><p>\u5728\u591a\u8bed\u8a00\u73af\u5883\u4e0b\uff0c\u8bcd\u957f\u8ba1\u7b97\u53ef\u80fd\u4f1a\u53d7\u5230\u8bed\u8a00\u7279\u70b9\u7684\u5f71\u54cd\u3002\u4f8b\u5982\uff0c\u5728\u4e2d\u6587\u4e2d\uff0c\u4e00\u4e2a\u5b57\u7b26\u901a\u5e38\u4ee3\u8868\u4e00\u4e2a\u8bcd\uff0c\u56e0\u6b64\u9700\u8981\u9488\u5bf9\u4e0d\u540c\u8bed\u8a00\u8fdb\u884c\u8c03\u6574\u3002\u53ef\u4ee5\u4f7f\u7528\u4e13\u95e8\u7684\u5206\u8bcd\u5e93\uff08\u5982<code>jieba<\/code>\uff09\u6765\u5904\u7406\u4e2d\u6587\u6587\u672c\u3002<\/p>\n<\/p>\n<p><h3>\u4e5d\u3001\u6027\u80fd\u4f18\u5316\u548c\u5927\u6587\u672c\u5904\u7406<\/h3>\n<\/p>\n<p><p>\u5728\u5904\u7406\u5927\u6587\u672c\u65f6\uff0c\u6027\u80fd\u4f18\u5316\u662f\u4e00\u4e2a\u91cd\u8981\u8003\u8651\u56e0\u7d20\u3002\u53ef\u4ee5\u901a\u8fc7\u4f7f\u7528\u751f\u6210\u5668\u8868\u8fbe\u5f0f\u6765\u51cf\u5c11\u5185\u5b58\u6d88\u8017\uff0c\u6216\u8005\u4f7f\u7528\u591a\u7ebf\u7a0b\u6280\u672f\u6765\u52a0\u5feb\u5904\u7406\u901f\u5ea6\u3002\u6b64\u5916\uff0c\u9605\u8bfb\u5927\u6587\u672c\u65f6\uff0c\u53ef\u4ee5\u9010\u884c\u5904\u7406\u4ee5\u907f\u514d\u5185\u5b58\u6ea2\u51fa\u3002<\/p>\n<\/p>\n<p><h3>\u5341\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u8ba1\u7b97\u5e73\u5747\u8bcd\u957f\u5728\u6587\u672c\u5206\u6790\u4e2d\u662f\u4e00\u4e2a\u57fa\u7840\u4e14\u91cd\u8981\u7684\u6b65\u9aa4\uff0c\u901a\u8fc7Python\u7684\u5185\u7f6e\u529f\u80fd\u548c\u5e93\u53ef\u4ee5\u8f7b\u677e\u5b9e\u73b0\u3002\u5173\u952e\u6b65\u9aa4\u5305\u62ec\u5206\u5272\u53e5\u5b50\u6210\u5355\u8bcd\u3001\u53bb\u9664\u6807\u70b9\u7b26\u53f7\u3001\u8ba1\u7b97\u6bcf\u4e2a\u5355\u8bcd\u7684\u957f\u5ea6\u3001\u6c42\u603b\u957f\u5ea6\u5e76\u8ba1\u7b97\u5e73\u5747\u503c\u3002\u901a\u8fc7\u4f18\u5316\u548c\u5b9a\u5236\uff0c\u53ef\u4ee5\u5904\u7406\u4e0d\u540c\u8bed\u8a00\u548c\u5927\u6587\u672c\u7684\u60c5\u51b5\uff0c\u6ee1\u8db3\u591a\u6837\u5316\u7684\u9700\u6c42\u3002<\/p>\n<\/p>\n<p><p>\u8fd9\u79cd\u5206\u6790\u53ef\u4ee5\u7528\u4e8e\u6587\u672c\u590d\u6742\u5ea6\u8bc4\u4f30\u3001\u8bed\u8a00\u6a21\u578b\u6784\u5efa\u4ee5\u53ca\u81ea\u7136\u8bed\u8a00\u5904\u7406\u7684\u5176\u4ed6\u9886\u57df\uff0c\u63d0\u9ad8\u6587\u672c\u7406\u89e3\u548c\u5904\u7406\u7684\u6548\u7387\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u7528Python\u8ba1\u7b97\u6587\u672c\u4e2d\u7684\u5e73\u5747\u8bcd\u957f\uff1f<\/strong><br \/>\u8981\u8ba1\u7b97\u6587\u672c\u4e2d\u6bcf\u4e2a\u8bcd\u7684\u5e73\u5747\u957f\u5ea6\uff0c\u53ef\u4ee5\u5c06\u6587\u672c\u5206\u5272\u4e3a\u8bcd\u6c47\uff0c\u7136\u540e\u8ba1\u7b97\u6bcf\u4e2a\u8bcd\u7684\u5b57\u7b26\u6570\uff0c\u6700\u540e\u6c42\u51fa\u5e73\u5747\u503c\u3002\u53ef\u4ee5\u4f7f\u7528<code>split()<\/code>\u65b9\u6cd5\u5c06\u6587\u672c\u5206\u8bcd\uff0c\u7ed3\u5408\u5217\u8868\u63a8\u5bfc\u5f0f\u548c<code>len()<\/code>\u51fd\u6570\u6765\u5b9e\u73b0\u3002\u793a\u4f8b\u4ee3\u7801\u5982\u4e0b\uff1a  <\/p>\n<pre><code class=\"language-python\">text = &quot;\u8fd9\u662f\u4e00\u4e2a\u7528Python\u8ba1\u7b97\u5e73\u5747\u8bcd\u957f\u7684\u793a\u4f8b\u6587\u672c&quot;\nwords = text.split()\naverage_length = sum(len(word) for word in words) \/ len(words)\nprint(&quot;\u5e73\u5747\u8bcd\u957f\u4e3a:&quot;, average_length)\n<\/code><\/pre>\n<p><strong>\u5728Python\u4e2d\u5982\u4f55\u5904\u7406\u6807\u70b9\u7b26\u53f7\u4ee5\u51c6\u786e\u8ba1\u7b97\u5e73\u5747\u8bcd\u957f\uff1f<\/strong><br \/>\u5728\u8ba1\u7b97\u5e73\u5747\u8bcd\u957f\u65f6\uff0c\u6807\u70b9\u7b26\u53f7\u53ef\u80fd\u4f1a\u5f71\u54cd\u7ed3\u679c\u3002\u53ef\u4ee5\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u6765\u79fb\u9664\u6807\u70b9\u7b26\u53f7\uff0c\u786e\u4fdd\u8bcd\u6c47\u7684\u51c6\u786e\u6027\u3002\u4f7f\u7528<code>re<\/code>\u6a21\u5757\u53ef\u4ee5\u8f7b\u677e\u5b9e\u73b0\u8fd9\u4e00\u70b9\u3002\u793a\u4f8b\u4ee3\u7801\u5982\u4e0b\uff1a  <\/p>\n<pre><code class=\"language-python\">import re\n\ntext = &quot;\u8fd9\u662f\u4e00\u4e2a\u6d4b\u8bd5\u6587\u672c\uff0c\u770b\u770b\u5982\u4f55\u8ba1\u7b97\u5e73\u5747\u8bcd\u957f\uff01&quot;\ncleaned_text = re.sub(r&#39;[^\\w\\s]&#39;, &#39;&#39;, text)\nwords = cleaned_text.split()\naverage_length = sum(len(word) for word in words) \/ len(words)\nprint(&quot;\u6e05\u7406\u540e\u7684\u5e73\u5747\u8bcd\u957f\u4e3a:&quot;, average_length)\n<\/code><\/pre>\n<p><strong>\u5982\u4f55\u5728Python\u4e2d\u5904\u7406\u591a\u8bed\u8a00\u6587\u672c\u4ee5\u8ba1\u7b97\u5e73\u5747\u8bcd\u957f\uff1f<\/strong><br \/>\u5bf9\u4e8e\u591a\u8bed\u8a00\u6587\u672c\uff0c\u76f4\u63a5\u4f7f\u7528<code>split()<\/code>\u53ef\u80fd\u4f1a\u5bfc\u81f4\u4e0d\u51c6\u786e\u7684\u7ed3\u679c\u3002\u53ef\u4ee5\u4f7f\u7528<code>nltk<\/code>\u5e93\u6765\u5904\u7406\u591a\u8bed\u8a00\u6587\u672c\uff0c\u786e\u4fdd\u80fd\u6b63\u786e\u8bc6\u522b\u548c\u5206\u5272\u8bcd\u6c47\u3002\u9996\u5148\u9700\u8981\u5b89\u88c5<code>nltk<\/code>\u5e93\uff0c\u5e76\u4e0b\u8f7d\u76f8\u5e94\u7684\u8bed\u8a00\u5305\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u793a\u4f8b\uff1a  <\/p>\n<pre><code class=\"language-python\">import nltk\nfrom nltk.tokenize import word_tokenize\n\nnltk.download(&#39;punkt&#39;)  # \u4e0b\u8f7d\u5206\u8bcd\u5668\ntext = &quot;This is an example. \u8fd9\u662f\u4e00\u4e2a\u793a\u4f8b\u3002&quot;\nwords = word_tokenize(text)\naverage_length = sum(len(word) for word in words) \/ len(words)\nprint(&quot;\u591a\u8bed\u8a00\u6587\u672c\u7684\u5e73\u5747\u8bcd\u957f\u4e3a:&quot;, average_length)\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\uff0c\u6c42\u5e73\u5747\u8bcd\u957f\u7684\u65b9\u6cd5\u4e3b\u8981\u5305\u62ec\u5206\u5272\u53e5\u5b50\u6210\u5355\u8bcd\u3001\u8ba1\u7b97\u6bcf\u4e2a\u5355\u8bcd\u7684\u957f\u5ea6\u3001\u6c42\u6240\u6709\u5355\u8bcd\u957f\u5ea6\u7684\u548c\u3001\u7136\u540e\u9664\u4ee5\u5355\u8bcd [&hellip;]","protected":false},"author":3,"featured_media":1018407,"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\/1018399"}],"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=1018399"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1018399\/revisions"}],"predecessor-version":[{"id":1018413,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1018399\/revisions\/1018413"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1018407"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1018399"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1018399"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1018399"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}