{"id":150012,"date":"2024-05-06T10:52:46","date_gmt":"2024-05-06T02:52:46","guid":{"rendered":""},"modified":"2024-05-06T10:52:50","modified_gmt":"2024-05-06T02:52:50","slug":"python%e6%80%8e%e4%b9%88%e5%81%9a%e8%a1%a8","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/150012.html","title":{"rendered":"python\u600e\u4e48\u505a\u8868"},"content":{"rendered":"<p style=\"text-align:center\"><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/27143545\/b7217f74-6de9-403e-966d-9f309b2d4078.webp\" alt=\"python\u600e\u4e48\u505a\u8868\" \/><\/p>\n<p><p>\u5728\u7f16\u7a0b\u9886\u57df\uff0cPython\u662f\u4e00\u79cd\u5e7f\u6cdb\u4f7f\u7528\u7684\u3001\u9ad8\u7ea7\u7684\u7f16\u7a0b\u8bed\u8a00\uff0c\u5b83\u63d0\u4f9b\u4e86\u591a\u79cd\u65b9\u5f0f\u6765\u521b\u5efa\u548c\u64cd\u4f5c\u8868\u683c\u6570\u636e\u3002<strong>\u521b\u5efa\u548c\u64cd\u4f5c\u8868\u683c\u6570\u636e\u5728Python\u4e2d\u53ef\u4ee5\u901a\u8fc7\u5185\u7f6e\u6570\u636e\u7ed3\u6784\u5982\u5217\u8868\uff08List\uff09\u548c\u5b57\u5178\uff08Dictionary\uff09\uff0c\u6216\u8005\u4f7f\u7528\u7b2c\u4e09\u65b9\u5e93\u5982Pandas\u8fdb\u884c\u5904\u7406<\/strong>\u3002\u8fd9\u4e9b\u65b9\u6cd5\u63d0\u4f9b\u4e86\u7075\u6d3b\u3001\u9ad8\u6548\u7684\u6570\u636e\u7ed3\u6784\u6765\u5904\u7406\u590d\u6742\u7684\u6570\u636e\u96c6\u3002<strong>\u7279\u522b\u662fPandas\u5e93\uff0c\u5b83\u88ab\u5e7f\u6cdb\u7528\u4e8e\u6570\u636e\u5206\u6790\u548c\u79d1\u5b66\u8ba1\u7b97\u4e2d\uff0c\u63d0\u4f9b\u4e86DataFrame\u5bf9\u8c61\uff0c\u4e13\u95e8\u7528\u4e8e\u5904\u7406\u8868\u683c\u6570\u636e\u3002<\/strong> DataFrame\u5bf9\u8c61\u4e0d\u4ec5\u53ef\u4ee5\u8bfb\u53d6\u591a\u79cd\u683c\u5f0f\u7684\u6570\u636e\u6587\u4ef6\uff0c\u751f\u6210\u8868\u683c\uff0c\u8fd8\u53ef\u4ee5\u5bf9\u8868\u683c\u6570\u636e\u8fdb\u884c\u6e05\u6d17\u3001\u7b5b\u9009\u3001\u4fee\u6539\u548c\u6c47\u603b\u7b49\u64cd\u4f5c\u3002<\/p>\n<\/p>\n<p><h2>\u4e00\u3001\u4f7f\u7528\u5217\u8868\u548c\u5b57\u5178\u521b\u5efa\u7b80\u5355\u7684\u8868\u683c\u6570\u636e<\/h2>\n<\/p>\n<p><p>Python\u7684\u5217\u8868\u548c\u5b57\u5178\u662f\u5904\u7406\u7b80\u5355\u8868\u683c\u6570\u636e\u65f6\u6700\u57fa\u672c\u7684\u6570\u636e\u7ed3\u6784\u3002<\/p>\n<\/p>\n<ul>\n<li><strong>\u5217\u8868\uff08List\uff09<\/strong> \u53ef\u4ee5\u7528\u6765\u8868\u793a\u6570\u636e\u7684\u4e00\u884c\u6216\u4e00\u5217\u3002\u901a\u8fc7\u5d4c\u5957\u5217\u8868\uff0c\u5373\u5728\u4e00\u4e2a\u5217\u8868\u5185\u90e8\u518d\u5305\u542b\u5176\u4ed6\u5217\u8868\uff0c\u53ef\u4ee5\u8868\u793a\u6574\u4e2a\u8868\u683c\u3002\u6bcf\u4e2a\u5185\u90e8\u5217\u8868\u4ee3\u8868\u8868\u683c\u4e2d\u7684\u4e00\u884c\u3002<\/li>\n<\/ul>\n<p><p>\u6bd4\u5982\uff0c\u6211\u4eec\u53ef\u4ee5\u521b\u5efa\u4e00\u4e2a\u7b80\u5355\u7684\u4e8c\u7ef4\u5217\u8868\u6765\u8868\u793a\u4e00\u4e2a\u8868\u683c\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">table = [[&quot;Name&quot;, &quot;Age&quot;, &quot;Gender&quot;], [&quot;Alice&quot;, 24, &quot;Female&quot;], [&quot;Bob&quot;, 30, &quot;Male&quot;]]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ul>\n<li><strong>\u5b57\u5178\uff08Dictionary\uff09<\/strong> \u5219\u53ef\u4ee5\u66f4\u76f4\u89c2\u5730\u8868\u793a\u4e00\u884c\u6570\u636e\uff0c\u5176\u4e2d\u952e\uff08key\uff09\u5bf9\u5e94\u5217\u540d\uff0c\u503c\uff08value\uff09\u5bf9\u5e94\u8be5\u5217\u7684\u5177\u4f53\u6570\u636e\u3002\u901a\u8fc7\u5217\u8868\u5305\u542b\u5b57\u5178\u7684\u65b9\u5f0f\uff0c\u53ef\u4ee5\u521b\u5efa\u51fa\u7531\u591a\u884c\u7ec4\u6210\u7684\u8868\u683c\u3002<\/li>\n<\/ul>\n<p><p>\u4e3e\u4e2a\u4f8b\u5b50\uff0c\u7528\u5b57\u5178\u5217\u8868\u7684\u65b9\u5f0f\u8868\u793a\u8868\u683c\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">table = [<\/p>\n<p>    {&quot;Name&quot;: &quot;Alice&quot;, &quot;Age&quot;: 24, &quot;Gender&quot;: &quot;Female&quot;},<\/p>\n<p>    {&quot;Name&quot;: &quot;Bob&quot;, &quot;Age&quot;: 30, &quot;Gender&quot;: &quot;Male&quot;}<\/p>\n<p>]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4f7f\u7528\u5217\u8868\u548c\u5b57\u5178\u521b\u5efa\u7684\u8868\u683c\u867d\u7136\u7b80\u5355\u4f46\u5728\u5904\u7406\u590d\u6742\u6570\u636e\u65f6\u4f1a\u663e\u5f97\u529b\u4e0d\u4ece\u5fc3\uff0c\u6bd4\u5982\u96be\u4ee5\u6267\u884c\u5217\u64cd\u4f5c\u3001\u5408\u5e76\u8868\u683c\u7b49\u590d\u6742\u64cd\u4f5c\u3002<\/p>\n<\/p>\n<p><h2>\u4e8c\u3001\u4f7f\u7528Pandas\u5e93\u521b\u5efa\u548c\u64cd\u4f5c\u8868\u683c\u6570\u636e<\/h2>\n<\/p>\n<p><p>Pandas\u662fPython\u4e2d\u7528\u4e8e\u6570\u636e\u5206\u6790\u6700\u4e3a\u5f3a\u5927\u7684\u5e93\u4e4b\u4e00\uff0c\u5b83\u63d0\u4f9b\u7684DataFrame\u5bf9\u8c61\u4e13\u95e8\u7528\u4e8e\u5904\u7406\u8868\u683c\u6570\u636e\u3002<\/p>\n<\/p>\n<ul>\n<li><strong>\u5b89\u88c5Pandas<\/strong>\uff1a\u9996\u5148\uff0c\u9700\u8981\u5b89\u88c5Pandas\u5e93\u3002\u5982\u679c\u4f60\u7684Python\u73af\u5883\u4e2d\u8fd8\u6ca1\u6709Pandas\uff0c\u53ef\u4ee5\u901a\u8fc7pip\u5b89\u88c5\uff1a<\/li>\n<\/ul>\n<p><pre><code class=\"language-bash\">pip install pandas<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ul>\n<li><strong>\u521b\u5efaDataFrame<\/strong>\uff1aPandas\u7684DataFrame\u662f\u4e00\u4e2a\u4e8c\u7ef4\u8868\u683c\u578b\u7684\u6570\u636e\u7ed3\u6784\uff0c\u65e2\u53ef\u4ee5\u5b58\u50a8\u4e0d\u540c\u7c7b\u578b\u7684\u6570\u636e\uff0c\u4e5f\u652f\u6301\u4e30\u5bcc\u7684\u6570\u636e\u64cd\u4f5c\u3002<\/li>\n<\/ul>\n<p><p>\u521b\u5efaDataFrame\u6700\u7b80\u5355\u7684\u65b9\u6cd5\u662f\u4f20\u9012\u4e00\u4e2a\u5b57\u5178\u5bf9\u8c61\u7ed9<code>DataFrame()<\/code>\u6784\u9020\u51fd\u6570\uff0c\u5176\u4e2d\u5b57\u5178\u7684\u952e\u5c06\u6210\u4e3a\u8868\u683c\u7684\u5217\u540d\uff0c\u5b57\u5178\u7684\u503c\uff08\u4e00\u4e2a\u5217\u8868\uff09\u6210\u4e3a\u5217\u7684\u6570\u636e\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import pandas as pd<\/p>\n<p>data = {<\/p>\n<p>    &quot;Name&quot;: [&quot;Alice&quot;, &quot;Bob&quot;],<\/p>\n<p>    &quot;Age&quot;: [24, 30],<\/p>\n<p>    &quot;Gender&quot;: [&quot;Female&quot;, &quot;Male&quot;]<\/p>\n<p>}<\/p>\n<p>df = pd.DataFrame(data)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u8fd9\u79cd\u65b9\u6cd5\u7b80\u4fbf\u6613\u884c\uff0c\u5c24\u5176\u9002\u5408\u5728\u5185\u5b58\u4e2d\u5feb\u901f\u6784\u5efa\u548c\u64cd\u4f5c\u5c0f\u5230\u4e2d\u7b49\u89c4\u6a21\u7684\u6570\u636e\u96c6<\/strong>\u3002<\/p>\n<\/p>\n<p><h2>\u4e09\u3001\u8868\u683c\u6570\u636e\u7684\u8bfb\u53d6\u548c\u5199\u5165<\/h2>\n<\/p>\n<p><p>Pandas\u63d0\u4f9b\u4e86\u5f3a\u5927\u7684\u6570\u636e\u8bfb\u53d6\u548c\u5199\u5165\u529f\u80fd\uff0c\u652f\u6301\u591a\u79cd\u683c\u5f0f\u7684\u6587\u4ef6\uff0c\u5305\u62ecCSV\u3001Excel\u3001SQL\u6570\u636e\u5e93\u7b49\u3002<\/p>\n<\/p>\n<ul>\n<li><strong>\u8bfb\u53d6\u6570\u636e<\/strong>\uff1a\u4f7f\u7528<code>pd.read_csv()<\/code>\u51fd\u6570\u53ef\u4ee5\u8bfb\u53d6CSV\u6587\u4ef6\uff0c<code>pd.read_excel()<\/code>\u51fd\u6570\u7528\u4e8e\u8bfb\u53d6Excel\u6587\u4ef6\uff0c\u8fd9\u4e9b\u51fd\u6570\u8fd4\u56de\u4e00\u4e2aDataFrame\u5bf9\u8c61\u3002<\/li>\n<\/ul>\n<p><pre><code class=\"language-python\">df_csv = pd.read_csv(&#039;path\/to\/your\/csvfile.csv&#039;)<\/p>\n<p>df_excel = pd.read_excel(&#039;path\/to\/your\/excelfile.xlsx&#039;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ul>\n<li><strong>\u5199\u5165\u6570\u636e<\/strong>\uff1aDataFrame\u5bf9\u8c61\u63d0\u4f9b<code>.to_csv()<\/code>\u548c<code>.to_excel()<\/code>\u65b9\u6cd5\uff0c\u53ef\u4ee5\u5c06\u6570\u636e\u5bfc\u51fa\u5230CSV\u548cExcel\u6587\u4ef6\u4e2d\u3002<\/li>\n<\/ul>\n<p><pre><code class=\"language-python\">df.to_csv(&#039;path\/to\/your\/new_csvfile.csv&#039;)<\/p>\n<p>df.to_excel(&#039;path\/to\/your\/new_excelfile.xlsx&#039;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h2>\u56db\u3001\u8868\u683c\u6570\u636e\u7684\u5904\u7406\u548c\u5206\u6790<\/h2>\n<\/p>\n<p><p>Pandas\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u529f\u80fd\u6765\u5904\u7406\u548c\u5206\u6790\u8868\u683c\u6570\u636e\uff0c\u5305\u62ec\u6570\u636e\u6e05\u6d17\u3001\u7b5b\u9009\u3001\u6392\u5e8f\u3001\u6c47\u603b\u7b49\u3002<\/p>\n<\/p>\n<ul>\n<li><strong>\u6570\u636e\u6e05\u6d17<\/strong>\uff1a\u5728\u6570\u636e\u5206\u6790\u524d\uff0c\u901a\u5e38\u9700\u8981\u5bf9\u6570\u636e\u8fdb\u884c\u6e05\u6d17\uff0c\u6bd4\u5982\u586b\u5145\u7f3a\u5931\u503c\u3001\u5220\u9664\u91cd\u590d\u884c\u7b49\u3002<\/li>\n<\/ul>\n<p><pre><code class=\"language-python\">df.fillna(0, inplace=True)  # \u586b\u5145\u7f3a\u5931\u503c\u4e3a0<\/p>\n<p>df.drop_duplicates(inplace=True)  # \u5220\u9664\u91cd\u590d\u884c<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ul>\n<li><strong>\u6570\u636e\u7b5b\u9009\u548c\u6392\u5e8f<\/strong>\uff1aPandas\u63d0\u4f9b\u4e86\u7075\u6d3b\u7684\u65b9\u5f0f\u6765\u7b5b\u9009\u548c\u6392\u5e8f\u6570\u636e\u3002\u53ef\u4ee5\u6839\u636e\u6761\u4ef6\u7b5b\u9009\u51fa\u6ee1\u8db3\u6761\u4ef6\u7684\u884c\uff0c\u6216\u8005\u6309\u7167\u67d0\u5217\u7684\u503c\u8fdb\u884c\u6392\u5e8f\u3002<\/li>\n<\/ul>\n<p><pre><code class=\"language-python\">filtered_df = df[df[&#039;Age&#039;] &gt; 25]  # \u7b5b\u9009\u5e74\u9f84\u5927\u4e8e25\u7684\u884c<\/p>\n<p>sorted_df = df.sort_values(by=&#039;Age&#039;)  # \u6839\u636e\u5e74\u9f84\u6392\u5e8f<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u901a\u8fc7\u8fd9\u4e9b\u5f3a\u5927\u7684\u529f\u80fd\uff0cPandas\u53ef\u4ee5\u5e2e\u52a9\u6570\u636e\u5206\u6790\u5e08\u9ad8\u6548\u5730\u5b8c\u6210\u4ece\u6570\u636e\u5bfc\u5165\u3001\u6e05\u6d17\u3001\u5904\u7406\u5230\u5206\u6790\u7684\u6574\u4e2a\u8fc7\u7a0b<\/strong>\u3002<\/p>\n<\/p>\n<p><p>\u603b\u4e4b\uff0cPython\u901a\u8fc7\u5185\u7f6e\u6570\u636e\u7ed3\u6784\u548c\u7b2c\u4e09\u65b9\u5e93\u5982Pandas\uff0c\u63d0\u4f9b\u4e86\u591a\u79cd\u7075\u6d3b\u3001\u9ad8\u6548\u7684\u65b9\u6cd5\u6765\u5904\u7406\u8868\u683c\u6570\u636e\u3002\u65e0\u8bba\u662f\u7b80\u5355\u7684\u6570\u636e\u7ec4\u7ec7\u8fd8\u662f\u590d\u6742\u7684\u6570\u636e\u5206\u6790\uff0cPython\u90fd\u80fd\u80dc\u4efb\uff0c\u8fd9\u4e5f\u662f\u4e3a\u4ec0\u4e48Python\u5728\u6570\u636e\u79d1\u5b66\u9886\u57df\u5982\u6b64\u53d7\u6b22\u8fce\u7684\u539f\u56e0\u4e4b\u4e00\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p><strong>1. \u5982\u4f55\u4f7f\u7528Python\u521b\u5efa\u8868\u683c\uff1f<\/strong><\/p>\n<p>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u4e0d\u540c\u7684\u65b9\u6cd5\u6765\u521b\u5efa\u8868\u683c\u3002\u4e00\u79cd\u5e38\u89c1\u7684\u65b9\u6cd5\u662f\u4f7f\u7528pandas\u5e93\u3002\u9996\u5148\uff0c\u4f60\u9700\u8981\u5728\u4ee3\u7801\u4e2d\u5bfc\u5165pandas\u5e93\u3002\u7136\u540e\uff0c\u53ef\u4ee5\u521b\u5efa\u4e00\u4e2apandas DataFrame\u5bf9\u8c61\u6765\u5b58\u50a8\u8868\u683c\u6570\u636e\u3002\u4f60\u53ef\u4ee5\u4f7f\u7528DataFrame\u4e2d\u7684\u5404\u79cd\u65b9\u6cd5\u6765\u586b\u5145\u548c\u64cd\u4f5c\u8868\u683c\u6570\u636e\u3002\u6700\u540e\uff0c\u53ef\u4ee5\u4f7f\u7528pandas\u7684to_csv\u65b9\u6cd5\u5c06\u8868\u683c\u6570\u636e\u4fdd\u5b58\u4e3aCSV\u6587\u4ef6\u6216\u4f7f\u7528to_excel\u65b9\u6cd5\u5c06\u5176\u4fdd\u5b58\u4e3aExcel\u6587\u4ef6\u3002<\/p>\n<p><strong>2. \u6709\u6ca1\u6709\u5176\u4ed6\u65b9\u6cd5\u53ef\u4ee5\u5728Python\u4e2d\u521b\u5efa\u8868\u683c\uff1f<\/strong><\/p>\n<p>\u9664\u4e86\u4f7f\u7528pandas\u5e93\u5916\uff0c\u8fd8\u6709\u5176\u4ed6\u65b9\u6cd5\u53ef\u4ee5\u5728Python\u4e2d\u521b\u5efa\u8868\u683c\u3002\u4e00\u4e2a\u5e38\u89c1\u7684\u65b9\u6cd5\u662f\u4f7f\u7528Python\u7684\u5185\u7f6e\u6a21\u5757csv\u3002\u901a\u8fc7\u5bfc\u5165csv\u6a21\u5757\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528csv.writer\u5bf9\u8c61\u6765\u521b\u5efa\u548c\u7f16\u8f91\u8868\u683c\u3002\u4f60\u53ef\u4ee5\u4f7f\u7528writerow\u65b9\u6cd5\u5c06\u6570\u636e\u9010\u884c\u5199\u5165\u8868\u683c\u3002\u6b64\u5916\uff0c\u8fd8\u53ef\u4ee5\u4f7f\u7528Excel\u7684\u6269\u5c55\u6a21\u5757openpyxl\u6765\u521b\u5efa\u548c\u64cd\u4f5cExcel\u6587\u4ef6\u4e2d\u7684\u8868\u683c\u3002<\/p>\n<p><strong>3. \u5982\u4f55\u5bf9Python\u4e2d\u7684\u8868\u683c\u8fdb\u884c\u683c\u5f0f\u5316\u548c\u6837\u5f0f\u8bbe\u7f6e\uff1f<\/strong><\/p>\n<p>\u5bf9\u4e8e\u4f7f\u7528pandas\u5e93\u521b\u5efa\u7684\u8868\u683c\uff0c\u53ef\u4ee5\u4f7f\u7528pandas\u7684style\u5c5e\u6027\u6765\u8fdb\u884c\u683c\u5f0f\u5316\u548c\u6837\u5f0f\u8bbe\u7f6e\u3002\u53ef\u4ee5\u4f7f\u7528style\u65b9\u6cd5\u6765\u6dfb\u52a0\u80cc\u666f\u989c\u8272\u3001\u5b57\u4f53\u6837\u5f0f\u3001\u8fb9\u6846\u7b49\u3002\u8fd8\u53ef\u4ee5\u4f7f\u7528\u9759\u6001\u7684CSS\u6837\u5f0f\u6216\u81ea\u5b9a\u4e49\u7684\u6837\u5f0f\u51fd\u6570\u6765\u8bbe\u7f6e\u8868\u683c\u7684\u5916\u89c2\u3002\u6b64\u5916\uff0c\u8fd8\u53ef\u4ee5\u4f7f\u7528\u5176\u4ed6\u53ef\u89c6\u5316\u5e93\u5982matplotlib\u548cseaborn\u6765\u4e3a\u8868\u683c\u6dfb\u52a0\u66f4\u4e30\u5bcc\u7684\u6837\u5f0f\u548c\u56fe\u5f62\u6548\u679c\uff0c\u4ee5\u7f8e\u5316\u8868\u683c\u7684\u663e\u793a\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728\u7f16\u7a0b\u9886\u57df\uff0cPython\u662f\u4e00\u79cd\u5e7f\u6cdb\u4f7f\u7528\u7684\u3001\u9ad8\u7ea7\u7684\u7f16\u7a0b\u8bed\u8a00\uff0c\u5b83\u63d0\u4f9b\u4e86\u591a\u79cd\u65b9\u5f0f\u6765\u521b\u5efa\u548c\u64cd\u4f5c\u8868\u683c\u6570\u636e\u3002\u521b\u5efa\u548c\u64cd\u4f5c\u8868\u683c [&hellip;]","protected":false},"author":3,"featured_media":150013,"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\/150012"}],"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=150012"}],"version-history":[{"count":0,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/150012\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/150013"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=150012"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=150012"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=150012"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}