{"id":1007014,"date":"2024-12-27T10:49:30","date_gmt":"2024-12-27T02:49:30","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1007014.html"},"modified":"2024-12-27T10:49:33","modified_gmt":"2024-12-27T02:49:33","slug":"python%e5%a6%82%e4%bd%95%e5%88%86%e7%b1%bb%e7%bb%9f%e8%ae%a1%e4%b8%aa%e6%95%b0","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1007014.html","title":{"rendered":"python\u5982\u4f55\u5206\u7c7b\u7edf\u8ba1\u4e2a\u6570"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25082905\/d4540189-3c55-4510-9947-b11622c10222.webp\" alt=\"python\u5982\u4f55\u5206\u7c7b\u7edf\u8ba1\u4e2a\u6570\" \/><\/p>\n<p><p> <strong>\u5728Python\u4e2d\uff0c\u5206\u7c7b\u7edf\u8ba1\u4e2a\u6570\u7684\u5e38\u7528\u65b9\u6cd5\u6709\uff1a\u4f7f\u7528\u5b57\u5178\u3001\u4f7f\u7528\u96c6\u5408\u3001\u4f7f\u7528pandas\u5e93\u3001\u4f7f\u7528collections\u6a21\u5757\u3002<\/strong>\u5176\u4e2d\uff0c<strong>\u4f7f\u7528\u5b57\u5178<\/strong>\u662f\u6700\u57fa\u7840\u7684\u65b9\u6cd5\uff0c\u800c<strong>\u4f7f\u7528pandas\u5e93<\/strong>\u548c<strong>collections\u6a21\u5757<\/strong>\u5219\u63d0\u4f9b\u4e86\u66f4\u9ad8\u6548\u548c\u4fbf\u5229\u7684\u65b9\u5f0f\u3002\u4e0b\u9762\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u8fd9\u51e0\u79cd\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u4f7f\u7528\u5b57\u5178<\/p>\n<\/p>\n<p><p>\u4f7f\u7528\u5b57\u5178\u8fdb\u884c\u5206\u7c7b\u7edf\u8ba1\u662fPython\u4e2d\u6700\u57fa\u672c\u7684\u65b9\u6cd5\u4e4b\u4e00\u3002\u5b57\u5178\u7684\u6570\u636e\u7ed3\u6784\u4f7f\u5176\u975e\u5e38\u9002\u5408\u7528\u4e8e\u8ba1\u6570\u4efb\u52a1\u3002\u901a\u8fc7\u5c06\u6bcf\u4e2a\u7c7b\u522b\u4f5c\u4e3a\u5b57\u5178\u7684\u952e\uff0c\u5e76\u5c06\u8ba1\u6570\u4f5c\u4e3a\u5b57\u5178\u7684\u503c\u6765\u5b9e\u73b0\u5206\u7c7b\u7edf\u8ba1\u3002<\/p>\n<\/p>\n<p><p>\u4f8b\u5982\uff0c\u5047\u8bbe\u6211\u4eec\u6709\u4e00\u4e2a\u5305\u542b\u591a\u4e2a\u6c34\u679c\u540d\u79f0\u7684\u5217\u8868\uff0c\u6211\u4eec\u60f3\u8981\u7edf\u8ba1\u6bcf\u79cd\u6c34\u679c\u7684\u6570\u91cf\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">fruits = [&#39;apple&#39;, &#39;banana&#39;, &#39;apple&#39;, &#39;orange&#39;, &#39;banana&#39;, &#39;apple&#39;]<\/p>\n<p>fruit_count = {}<\/p>\n<p>for fruit in fruits:<\/p>\n<p>    if fruit in fruit_count:<\/p>\n<p>        fruit_count[fruit] += 1<\/p>\n<p>    else:<\/p>\n<p>        fruit_count[fruit] = 1<\/p>\n<p>print(fruit_count)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u5b57\u5178 <code>fruit_count<\/code> \u5b58\u50a8\u4e86\u6bcf\u79cd\u6c34\u679c\u7684\u8ba1\u6570\u3002\u6bcf\u6b21\u9047\u5230\u4e00\u4e2a\u6c34\u679c\u540d\u79f0\u65f6\uff0c\u6211\u4eec\u68c0\u67e5\u5b83\u662f\u5426\u5728\u5b57\u5178\u4e2d\u3002\u5982\u679c\u662f\uff0c\u6211\u4eec\u5c06\u76f8\u5e94\u7684\u503c\u52a01\uff1b\u5982\u679c\u4e0d\u662f\uff0c\u6211\u4eec\u5c06\u5176\u6dfb\u52a0\u5230\u5b57\u5178\u4e2d\uff0c\u5e76\u5c06\u503c\u8bbe\u7f6e\u4e3a1\u3002<\/p>\n<\/p>\n<p><p><strong>\u4f18\u70b9<\/strong>\uff1a\u8fd9\u79cd\u65b9\u6cd5\u7b80\u5355\u76f4\u89c2\uff0c\u9002\u5408\u5904\u7406\u5c0f\u89c4\u6a21\u7684\u6570\u636e\u96c6\u3002<br \/><strong>\u7f3a\u70b9<\/strong>\uff1a\u5f53\u6570\u636e\u91cf\u8f83\u5927\u65f6\uff0c\u624b\u52a8\u66f4\u65b0\u8ba1\u6570\u53ef\u80fd\u4f1a\u53d8\u5f97\u9ebb\u70e6\uff0c\u4ee3\u7801\u4e5f\u4e0d\u591f\u7b80\u6d01\u3002<\/p>\n<\/p>\n<p><p>\u4e8c\u3001\u4f7f\u7528\u96c6\u5408<\/p>\n<\/p>\n<p><p>\u96c6\u5408\u7684\u4f7f\u7528\u5728\u5206\u7c7b\u7edf\u8ba1\u4e2d\u5e76\u4e0d\u76f4\u63a5\u8fdb\u884c\u8ba1\u6570\uff0c\u4f46\u96c6\u5408\u53ef\u4ee5\u5e2e\u52a9\u8bc6\u522b\u552f\u4e00\u7684\u5206\u7c7b\u9879\uff0c\u7136\u540e\u7ed3\u5408\u5b57\u5178\u6216\u5176\u4ed6\u65b9\u6cd5\u8fdb\u884c\u8ba1\u6570\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">fruits = [&#39;apple&#39;, &#39;banana&#39;, &#39;apple&#39;, &#39;orange&#39;, &#39;banana&#39;, &#39;apple&#39;]<\/p>\n<p>unique_fruits = set(fruits)<\/p>\n<p>fruit_count = {fruit: 0 for fruit in unique_fruits}<\/p>\n<p>for fruit in fruits:<\/p>\n<p>    fruit_count[fruit] += 1<\/p>\n<p>print(fruit_count)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u4f18\u70b9<\/strong>\uff1a\u4f7f\u7528\u96c6\u5408\u53ef\u4ee5\u5feb\u901f\u8bc6\u522b\u5217\u8868\u4e2d\u7684\u552f\u4e00\u9879\u3002<br \/><strong>\u7f3a\u70b9<\/strong>\uff1a\u4ecd\u9700\u7ed3\u5408\u5176\u4ed6\u6570\u636e\u7ed3\u6784\uff08\u5982\u5b57\u5178\uff09\u6765\u5b8c\u6210\u8ba1\u6570\u3002<\/p>\n<\/p>\n<p><p>\u4e09\u3001\u4f7f\u7528 pandas \u5e93<\/p>\n<\/p>\n<p><p>pandas\u662fPython\u4e2d\u4e00\u4e2a\u529f\u80fd\u5f3a\u5927\u7684\u6570\u636e\u5206\u6790\u5e93\uff0c\u63d0\u4f9b\u4e86\u8bb8\u591a\u4fbf\u6377\u7684\u65b9\u6cd5\u8fdb\u884c\u6570\u636e\u64cd\u4f5c\u548c\u5206\u6790\u3002pandas\u7684<code>value_counts()<\/code>\u51fd\u6570\u53ef\u4ee5\u5feb\u901f\u8fdb\u884c\u5206\u7c7b\u7edf\u8ba1\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import pandas as pd<\/p>\n<p>fruits = [&#39;apple&#39;, &#39;banana&#39;, &#39;apple&#39;, &#39;orange&#39;, &#39;banana&#39;, &#39;apple&#39;]<\/p>\n<p>fruits_series = pd.Series(fruits)<\/p>\n<p>fruit_count = fruits_series.value_counts()<\/p>\n<p>print(fruit_count)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u6211\u4eec\u9996\u5148\u5c06\u5217\u8868\u8f6c\u6362\u4e3apandas\u7684Series\u5bf9\u8c61\uff0c\u7136\u540e\u4f7f\u7528<code>value_counts()<\/code>\u51fd\u6570\u6765\u8ba1\u7b97\u6bcf\u4e2a\u7c7b\u522b\u7684\u6570\u91cf\u3002<\/p>\n<\/p>\n<p><p><strong>\u4f18\u70b9<\/strong>\uff1apandas\u63d0\u4f9b\u4e86\u5f3a\u5927\u7684\u6570\u636e\u5904\u7406\u529f\u80fd\uff0c\u80fd\u591f\u8f7b\u677e\u5904\u7406\u5927\u89c4\u6a21\u6570\u636e\u96c6\uff0c\u4e14\u4ee3\u7801\u7b80\u6d01\u3002<br \/><strong>\u7f3a\u70b9<\/strong>\uff1a\u9700\u8981\u5b89\u88c5pandas\u5e93\uff0c\u4e14\u5bf9\u4e8e\u975e\u5e38\u7b80\u5355\u7684\u4efb\u52a1\u53ef\u80fd\u663e\u5f97\u8fc7\u4e8e\u590d\u6742\u3002<\/p>\n<\/p>\n<p><p>\u56db\u3001\u4f7f\u7528 collections \u6a21\u5757<\/p>\n<\/p>\n<p><p>collections\u6a21\u5757\u4e2d\u7684Counter\u7c7b\u4e13\u95e8\u7528\u4e8e\u8ba1\u6570\u4efb\u52a1\u3002\u5b83\u63d0\u4f9b\u4e86\u4e00\u79cd\u7b80\u5355\u9ad8\u6548\u7684\u65b9\u6cd5\u6765\u7edf\u8ba1\u9879\u76ee\u7684\u6570\u91cf\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from collections import Counter<\/p>\n<p>fruits = [&#39;apple&#39;, &#39;banana&#39;, &#39;apple&#39;, &#39;orange&#39;, &#39;banana&#39;, &#39;apple&#39;]<\/p>\n<p>fruit_count = Counter(fruits)<\/p>\n<p>print(fruit_count)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>Counter\u7c7b\u81ea\u52a8\u5904\u7406\u8ba1\u6570\u903b\u8f91\uff0c\u5e76\u8fd4\u56de\u4e00\u4e2a\u5b57\u5178\u5f62\u5f0f\u7684\u5bf9\u8c61\uff0c\u5176\u4e2d\u952e\u4e3a\u9879\u76ee\uff0c\u503c\u4e3a\u8ba1\u6570\u3002<\/p>\n<\/p>\n<p><p><strong>\u4f18\u70b9<\/strong>\uff1a\u4f7f\u7528Counter\u53ef\u4ee5\u4f7f\u4ee3\u7801\u66f4\u7b80\u6d01\u548c\u9ad8\u6548\uff0c\u975e\u5e38\u9002\u5408\u8ba1\u6570\u4efb\u52a1\u3002<br \/><strong>\u7f3a\u70b9<\/strong>\uff1a\u9700\u8981\u5bfc\u5165collections\u6a21\u5757\uff0c\u4f46\u8fd9\u901a\u5e38\u4e0d\u662f\u95ee\u9898\u3002<\/p>\n<\/p>\n<p><p>\u4e94\u3001\u7ed3\u5408\u5e94\u7528<\/p>\n<\/p>\n<p><p>\u5f53\u6211\u4eec\u9700\u8981\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\u4f7f\u7528\u8fd9\u4e9b\u65b9\u6cd5\u65f6\uff0c\u53ef\u4ee5\u6839\u636e\u5177\u4f53\u60c5\u51b5\u9009\u62e9\u6700\u9002\u5408\u7684\u65b9\u6cd5\u3002\u4f8b\u5982\uff0c\u5728\u6570\u636e\u9884\u5904\u7406\u9636\u6bb5\uff0c\u53ef\u4ee5\u4f7f\u7528pandas\u8fdb\u884c\u5feb\u901f\u63a2\u7d22\u548c\u5904\u7406\uff1b\u5728\u5185\u5b58\u6709\u9650\u7684\u73af\u5883\u4e2d\uff0c\u53ef\u4ee5\u9009\u62e9\u5b57\u5178\u6216collections\u6a21\u5757\u8fdb\u884c\u7b80\u5355\u7684\u8ba1\u6570\u4efb\u52a1\u3002<\/p>\n<\/p>\n<p><p>\u6b64\u5916\uff0c\u4e86\u89e3\u5982\u4f55\u5c06\u8fd9\u4e9b\u65b9\u6cd5\u7ed3\u5408\u5728\u4e00\u8d77\u4f7f\u7528\uff0c\u4e5f\u80fd\u591f\u63d0\u9ad8\u4ee3\u7801\u7684\u7075\u6d3b\u6027\u548c\u6548\u7387\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import pandas as pd<\/p>\n<p>from collections import Counter<\/p>\n<h2><strong>\u5047\u8bbe\u6211\u4eec\u6709\u4e00\u4e2aDataFrame<\/strong><\/h2>\n<p>data = pd.DataFrame({<\/p>\n<p>    &#39;fruits&#39;: [&#39;apple&#39;, &#39;banana&#39;, &#39;apple&#39;, &#39;orange&#39;, &#39;banana&#39;, &#39;apple&#39;],<\/p>\n<p>    &#39;quantity&#39;: [5, 3, 2, 4, 1, 6]<\/p>\n<p>})<\/p>\n<h2><strong>\u4f7f\u7528pandas\u8fdb\u884c\u5206\u7ec4\u7edf\u8ba1<\/strong><\/h2>\n<p>grouped = data.groupby(&#39;fruits&#39;).sum()<\/p>\n<p>print(grouped)<\/p>\n<h2><strong>\u4f7f\u7528Counter\u8fdb\u884c\u8ba1\u6570\u7edf\u8ba1<\/strong><\/h2>\n<p>fruit_count = Counter(data[&#39;fruits&#39;])<\/p>\n<p>print(fruit_count)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u6211\u4eec\u9996\u5148\u4f7f\u7528pandas\u5bf9DataFrame\u8fdb\u884c\u4e86\u5206\u7ec4\u7edf\u8ba1\uff0c\u7136\u540e\u4f7f\u7528Counter\u5bf9\u540c\u4e00\u5217\u8fdb\u884c\u4e86\u8ba1\u6570\u7edf\u8ba1\u3002\u8fd9\u79cd\u7ed3\u5408\u4f7f\u7528\u7684\u65b9\u6cd5\u53ef\u4ee5\u8ba9\u6211\u4eec\u5728\u5904\u7406\u590d\u6742\u6570\u636e\u96c6\u65f6\u66f4\u52a0\u5f97\u5fc3\u5e94\u624b\u3002<\/p>\n<\/p>\n<p><p>\u603b\u7ed3\u6765\u8bf4\uff0cPython\u63d0\u4f9b\u4e86\u591a\u79cd\u65b9\u6cd5\u7528\u4e8e\u5206\u7c7b\u7edf\u8ba1\u4e2a\u6570\uff0c\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\u53ef\u4ee5\u5e2e\u52a9\u6211\u4eec\u66f4\u9ad8\u6548\u5730\u5904\u7406\u6570\u636e\u3002\u7406\u89e3\u6bcf\u79cd\u65b9\u6cd5\u7684\u4f18\u7f3a\u70b9\uff0c\u5e76\u6839\u636e\u5177\u4f53\u9700\u6c42\u8fdb\u884c\u9009\u62e9\uff0c\u662f\u63d0\u9ad8\u6570\u636e\u5904\u7406\u80fd\u529b\u7684\u5173\u952e\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u8fdb\u884c\u5206\u7c7b\u7edf\u8ba1\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528<code>pandas<\/code>\u5e93\u8fdb\u884c\u5206\u7c7b\u7edf\u8ba1\u3002\u9996\u5148\uff0c\u4f60\u9700\u8981\u5b89\u88c5<code>pandas<\/code>\uff0c\u7136\u540e\u5c06\u6570\u636e\u52a0\u8f7d\u4e3aDataFrame\u3002\u4f7f\u7528<code>groupby()<\/code>\u51fd\u6570\u53ef\u4ee5\u8f7b\u677e\u5bf9\u6570\u636e\u8fdb\u884c\u5206\u7ec4\uff0c\u5e76\u4f7f\u7528<code>count()<\/code>\u65b9\u6cd5\u6765\u7edf\u8ba1\u6bcf\u7ec4\u7684\u4e2a\u6570\u3002\u4f8b\u5982\uff1a  <\/p>\n<pre><code class=\"language-python\">import pandas as pd\n\ndata = {&#39;\u7c7b\u522b&#39;: [&#39;A&#39;, &#39;B&#39;, &#39;A&#39;, &#39;C&#39;, &#39;B&#39;, &#39;A&#39;], &#39;\u503c&#39;: [1, 2, 3, 4, 5, 6]}\ndf = pd.DataFrame(data)\n\u7edf\u8ba1\u7ed3\u679c = df.groupby(&#39;\u7c7b\u522b&#39;).count()\nprint(\u7edf\u8ba1\u7ed3\u679c)\n<\/code><\/pre>\n<p><strong>\u5728Python\u4e2d\u5982\u4f55\u5904\u7406\u7f3a\u5931\u503c\u4ee5\u8fdb\u884c\u5206\u7c7b\u7edf\u8ba1\uff1f<\/strong><br \/>\u5904\u7406\u7f3a\u5931\u503c\u662f\u8fdb\u884c\u5206\u7c7b\u7edf\u8ba1\u7684\u91cd\u8981\u4e00\u6b65\u3002\u53ef\u4ee5\u4f7f\u7528<code>pandas<\/code>\u7684<code>dropna()<\/code>\u65b9\u6cd5\u5220\u9664\u7f3a\u5931\u503c\uff0c\u4e5f\u53ef\u4ee5\u4f7f\u7528<code>fillna()<\/code>\u65b9\u6cd5\u586b\u5145\u7f3a\u5931\u503c\u3002\u9009\u62e9\u9002\u5408\u4f60\u7684\u6570\u636e\u5206\u6790\u76ee\u6807\u7684\u65b9\u6cd5\u3002\u4f8b\u5982\uff1a  <\/p>\n<pre><code class=\"language-python\">df_cleaned = df.dropna()  # \u5220\u9664\u7f3a\u5931\u503c\n# \u6216\u8005\ndf_filled = df.fillna(0)  # \u75280\u586b\u5145\u7f3a\u5931\u503c\n<\/code><\/pre>\n<p>\u6e05\u7406\u6570\u636e\u540e\uff0c\u53ef\u4ee5\u8fdb\u884c\u5206\u7c7b\u7edf\u8ba1\u3002<\/p>\n<p><strong>\u5982\u4f55\u5728Python\u4e2d\u8fdb\u884c\u591a\u91cd\u5206\u7c7b\u7edf\u8ba1\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7<code>groupby()<\/code>\u7ed3\u5408\u591a\u4e2a\u5217\u8fdb\u884c\u591a\u91cd\u5206\u7c7b\u7edf\u8ba1\u3002\u8fd9\u53ef\u4ee5\u5e2e\u52a9\u4f60\u66f4\u6df1\u5165\u5730\u5206\u6790\u6570\u636e\u3002\u4f8b\u5982\uff0c\u5982\u679c\u6709\u591a\u4e2a\u5206\u7c7b\u53d8\u91cf\uff0c\u53ef\u4ee5\u6309\u591a\u4e2a\u5217\u5206\u7ec4\u8fdb\u884c\u7edf\u8ba1\uff1a  <\/p>\n<pre><code class=\"language-python\">\u7edf\u8ba1\u7ed3\u679c = df.groupby([&#39;\u7c7b\u522b&#39;, &#39;\u503c&#39;]).size()\nprint(\u7edf\u8ba1\u7ed3\u679c)\n<\/code><\/pre>\n<p>\u8fd9\u79cd\u65b9\u6cd5\u80fd\u8ba9\u4f60\u83b7\u53d6\u66f4\u590d\u6742\u7684\u6570\u636e\u89c6\u56fe\uff0c\u4fbf\u4e8e\u6df1\u5165\u5206\u6790\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\uff0c\u5206\u7c7b\u7edf\u8ba1\u4e2a\u6570\u7684\u5e38\u7528\u65b9\u6cd5\u6709\uff1a\u4f7f\u7528\u5b57\u5178\u3001\u4f7f\u7528\u96c6\u5408\u3001\u4f7f\u7528pandas\u5e93\u3001\u4f7f\u7528collections [&hellip;]","protected":false},"author":3,"featured_media":1007023,"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\/1007014"}],"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=1007014"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1007014\/revisions"}],"predecessor-version":[{"id":1007028,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1007014\/revisions\/1007028"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1007023"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1007014"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1007014"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1007014"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}