{"id":970457,"date":"2024-12-27T05:26:20","date_gmt":"2024-12-26T21:26:20","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/970457.html"},"modified":"2024-12-27T05:26:22","modified_gmt":"2024-12-26T21:26:22","slug":"python%e7%ab%96%e8%a1%8c%e5%a6%82%e4%bd%95%e5%8f%98%e6%a8%aa%e8%a1%8c","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/970457.html","title":{"rendered":"python\u7ad6\u884c\u5982\u4f55\u53d8\u6a2a\u884c"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24193807\/230659e5-aead-42e9-ac4f-9a1554688804.webp\" alt=\"python\u7ad6\u884c\u5982\u4f55\u53d8\u6a2a\u884c\" \/><\/p>\n<p><p> <strong>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u591a\u79cd\u65b9\u5f0f\u5c06\u7ad6\u884c\uff08\u5217\uff09\u6570\u636e\u8f6c\u6362\u4e3a\u6a2a\u884c\uff08\u884c\uff09\u6570\u636e\uff0c\u5e38\u7528\u7684\u65b9\u6cd5\u5305\u62ec\u4f7f\u7528NumPy\u5e93\u3001Pandas\u5e93\u3001\u4ee5\u53ca\u5185\u7f6e\u7684\u5217\u8868\u548czip\u51fd\u6570\u3002<\/strong> \u5728\u8fd9\u4e9b\u65b9\u6cd5\u4e2d\uff0cPandas\u5e93\u901a\u5e38\u7528\u4e8e\u5904\u7406\u6570\u636e\u6846\u67b6\uff0c\u800cNumPy\u5219\u66f4\u9002\u5408\u4e8e\u5904\u7406\u591a\u7ef4\u6570\u7ec4\u3002\u4e0b\u9762\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u8fd9\u4e9b\u65b9\u6cd5\u53ca\u5176\u5e94\u7528\u573a\u666f\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u4f7f\u7528NUMPY\u5e93<\/p>\n<\/p>\n<p><p>NumPy\u662fPython\u4e2d\u4e00\u4e2a\u5f3a\u5927\u7684\u79d1\u5b66\u8ba1\u7b97\u5e93\uff0c\u5b83\u63d0\u4f9b\u4e86\u652f\u6301\u5927\u91cf\u7ef4\u5ea6\u6570\u7ec4\u4e0e\u77e9\u9635\u8fd0\u7b97\u7684\u51fd\u6570\u3002\u901a\u8fc7NumPy\uff0c\u53ef\u4ee5\u5f88\u65b9\u4fbf\u5730\u8fdb\u884c\u7ad6\u884c\u5230\u6a2a\u884c\u7684\u8f6c\u6362\u3002<\/p>\n<\/p>\n<ol>\n<li>\u521b\u5efaNumPy\u6570\u7ec4<\/li>\n<\/ol>\n<p><p>\u5728\u5f00\u59cb\u4f7f\u7528NumPy\u8fdb\u884c\u8f6c\u6362\u4e4b\u524d\uff0c\u9996\u5148\u9700\u8981\u5c06\u6570\u636e\u521b\u5efa\u4e3aNumPy\u6570\u7ec4\u3002\u53ef\u4ee5\u4f7f\u7528<code>numpy.array()<\/code>\u51fd\u6570\u5c06\u5217\u8868\u6216\u5176\u4ed6\u53ef\u8fed\u4ee3\u5bf9\u8c61\u8f6c\u5316\u4e3aNumPy\u6570\u7ec4\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import numpy as np<\/p>\n<h2><strong>\u521b\u5efa\u4e00\u4e2a\u5217\u6570\u636e<\/strong><\/h2>\n<p>column_data = np.array([1, 2, 3, 4, 5])<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li>\u4f7f\u7528reshape()\u65b9\u6cd5<\/li>\n<\/ol>\n<p><p>NumPy\u7684<code>reshape()<\/code>\u65b9\u6cd5\u53ef\u4ee5\u8f7b\u677e\u5730\u5c06\u6570\u636e\u7684\u5f62\u72b6\u8fdb\u884c\u8f6c\u6362\u3002\u5047\u8bbe\u6211\u4eec\u6709\u4e00\u4e2a\u5217\u5411\u91cf\uff0c\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7<code>reshape(1, -1)<\/code>\u5c06\u5176\u8f6c\u4e3a\u884c\u5411\u91cf\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u8f6c\u6362\u4e3a\u884c\u6570\u636e<\/p>\n<p>row_data = column_data.reshape(1, -1)<\/p>\n<p>print(row_data)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"3\">\n<li>\u4f7f\u7528\u8f6c\u7f6e\u64cd\u4f5c<\/li>\n<\/ol>\n<p><p>\u5bf9\u4e8e\u4e8c\u7ef4\u6570\u7ec4\uff0c\u53ef\u4ee5\u4f7f\u7528NumPy\u7684\u8f6c\u7f6e\u529f\u80fd\u3002\u867d\u7136\u5bf9\u4e8e\u4e00\u7ef4\u6570\u7ec4\u6765\u8bf4\uff0c\u8f6c\u7f6e\u64cd\u4f5c\u6ca1\u6709\u76f4\u63a5\u6548\u679c\uff0c\u4f46\u5982\u679c\u6570\u636e\u672c\u8eab\u662f\u4ee5\u5217\u5f62\u5f0f\u5b58\u5728\u4e8e\u4e8c\u7ef4\u6570\u7ec4\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528<code>.T<\/code>\u6765\u5b9e\u73b0\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u5047\u8bbe\u5217\u6570\u636e\u4e3a\u4e8c\u7ef4\u6570\u7ec4\u7684\u4e00\u90e8\u5206<\/p>\n<p>column_data_2d = np.array([[1], [2], [3], [4], [5]])<\/p>\n<h2><strong>\u8f6c\u7f6e\u64cd\u4f5c<\/strong><\/h2>\n<p>row_data_2d = column_data_2d.T<\/p>\n<p>print(row_data_2d)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>NumPy\u7684\u4f18\u52bf\u5728\u4e8e\u5176\u9ad8\u6548\u7684\u6570\u7ec4\u64cd\u4f5c\u529f\u80fd\uff0c\u9002\u5408\u5904\u7406\u5927\u89c4\u6a21\u7684\u6570\u636e\u8f6c\u6362\u3002<\/strong><\/p>\n<\/p>\n<p><p>\u4e8c\u3001\u4f7f\u7528PANDAS\u5e93<\/p>\n<\/p>\n<p><p>Pandas\u662fPython\u4e2d\u4e00\u4e2a\u5e38\u7528\u7684\u6570\u636e\u5206\u6790\u5e93\uff0c\u63d0\u4f9b\u4e86\u5f3a\u5927\u7684\u6570\u636e\u7ed3\u6784\u548c\u6570\u636e\u5206\u6790\u5de5\u5177\uff0c\u5c24\u5176\u9002\u7528\u4e8e\u7ed3\u6784\u5316\u6570\u636e\u7684\u8f6c\u6362\u3002<\/p>\n<\/p>\n<ol>\n<li>\u521b\u5efaPandas\u6570\u636e\u6846<\/li>\n<\/ol>\n<p><p>\u9996\u5148\uff0c\u9700\u8981\u5c06\u6570\u636e\u521b\u5efa\u4e3a\u4e00\u4e2aPandas\u6570\u636e\u6846\u3002\u53ef\u4ee5\u4f7f\u7528<code>pandas.DataFrame()<\/code>\u51fd\u6570\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import pandas as pd<\/p>\n<h2><strong>\u521b\u5efa\u4e00\u4e2a\u6570\u636e\u6846<\/strong><\/h2>\n<p>df = pd.DataFrame({&#39;Column&#39;: [1, 2, 3, 4, 5]})<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li>\u4f7f\u7528transpose()\u65b9\u6cd5<\/li>\n<\/ol>\n<p><p>Pandas\u63d0\u4f9b\u4e86<code>transpose()<\/code>\u65b9\u6cd5\uff0c\u53ef\u4ee5\u8f7b\u677e\u5730\u5c06\u6570\u636e\u6846\u8f6c\u7f6e\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u8f6c\u7f6e\u6570\u636e\u6846<\/p>\n<p>df_transposed = df.T<\/p>\n<p>print(df_transposed)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"3\">\n<li>\u4f7f\u7528pivot()\u65b9\u6cd5<\/li>\n<\/ol>\n<p><p>\u5728\u5904\u7406\u591a\u5217\u7684\u6570\u636e\u65f6\uff0c<code>pivot()<\/code>\u65b9\u6cd5\u53ef\u4ee5\u63d0\u4f9b\u7075\u6d3b\u7684\u884c\u5217\u8f6c\u6362\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u5047\u8bbe\u6709\u591a\u5217\u6570\u636e<\/p>\n<p>df_multi = pd.DataFrame({<\/p>\n<p>    &#39;Category&#39;: [&#39;A&#39;, &#39;B&#39;, &#39;A&#39;, &#39;B&#39;],<\/p>\n<p>    &#39;Value&#39;: [1, 2, 3, 4]<\/p>\n<p>})<\/p>\n<h2><strong>\u4f7f\u7528pivot\u8fdb\u884c\u8f6c\u6362<\/strong><\/h2>\n<p>df_pivot = df_multi.pivot(columns=&#39;Category&#39;, values=&#39;Value&#39;)<\/p>\n<p>print(df_pivot)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>Pandas\u7684\u4f18\u52bf\u5728\u4e8e\u5176\u5f3a\u5927\u7684\u6570\u636e\u64cd\u4f5c\u80fd\u529b\uff0c\u9002\u5408\u4e8e\u590d\u6742\u6570\u636e\u7ed3\u6784\u7684\u8f6c\u6362\u548c\u5206\u6790\u3002<\/strong><\/p>\n<\/p>\n<p><p>\u4e09\u3001\u4f7f\u7528\u5185\u7f6e\u5217\u8868\u548cZIP\u51fd\u6570<\/p>\n<\/p>\n<p><p>\u5bf9\u4e8e\u7b80\u5355\u7684\u6570\u636e\u7ed3\u6784\uff0c\u53ef\u4ee5\u76f4\u63a5\u4f7f\u7528Python\u5185\u7f6e\u7684\u5217\u8868\u548c<code>zip()<\/code>\u51fd\u6570\u5b9e\u73b0\u8f6c\u6362\u3002<\/p>\n<\/p>\n<ol>\n<li>\u4f7f\u7528zip()\u51fd\u6570<\/li>\n<\/ol>\n<p><p><code>zip()<\/code>\u51fd\u6570\u53ef\u4ee5\u5c06\u591a\u4e2a\u53ef\u8fed\u4ee3\u5bf9\u8c61\u6253\u5305\u6210\u4e00\u4e2a\u5143\u7ec4\u7684\u8fed\u4ee3\u5668\uff0c\u53ef\u4ee5\u7528\u6765\u5b9e\u73b0\u5217\u5230\u884c\u7684\u8f6c\u6362\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u521b\u5efa\u591a\u4e2a\u5217\u6570\u636e<\/p>\n<p>column_data1 = [1, 2, 3, 4, 5]<\/p>\n<p>column_data2 = [6, 7, 8, 9, 10]<\/p>\n<h2><strong>\u4f7f\u7528zip\u51fd\u6570\u8fdb\u884c\u8f6c\u6362<\/strong><\/h2>\n<p>row_data = list(zip(column_data1, column_data2))<\/p>\n<p>print(row_data)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li>\u4f7f\u7528\u5217\u8868\u63a8\u5bfc\u5f0f<\/li>\n<\/ol>\n<p><p>\u5217\u8868\u63a8\u5bfc\u5f0f\u63d0\u4f9b\u4e86\u4e00\u79cd\u7b80\u6d01\u7684\u65b9\u6cd5\u8fdb\u884c\u6570\u636e\u8f6c\u6362\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u5217\u8868\u63a8\u5bfc\u5f0f\u5b9e\u73b0\u8f6c\u6362<\/p>\n<p>row_data_list = [[row[i] for row in column_data] for i in range(len(column_data[0]))]<\/p>\n<p>print(row_data_list)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u4f7f\u7528\u5185\u7f6e\u7684\u5217\u8868\u548c<code>zip<\/code>\u51fd\u6570\u7684\u65b9\u6cd5\u7b80\u5355\u76f4\u63a5\uff0c\u9002\u5408\u4e8e\u5c0f\u89c4\u6a21\u6570\u636e\u7684\u5feb\u901f\u8f6c\u6362\u3002<\/strong><\/p>\n<\/p>\n<p><p>\u56db\u3001\u5176\u4ed6\u8f6c\u6362\u65b9\u6cd5<\/p>\n<\/p>\n<p><p>\u9664\u4e86\u4e0a\u8ff0\u5e38\u7528\u65b9\u6cd5\u5916\uff0c\u8fd8\u53ef\u4ee5\u901a\u8fc7\u5176\u4ed6\u65b9\u5f0f\u5b9e\u73b0\u7ad6\u884c\u5230\u6a2a\u884c\u7684\u8f6c\u6362\uff0c\u5982\u4f7f\u7528\u81ea\u5b9a\u4e49\u51fd\u6570\u6216\u5176\u4ed6\u7b2c\u4e09\u65b9\u5e93\u3002\u5728\u9009\u62e9\u65b9\u6cd5\u65f6\uff0c\u5e94\u6839\u636e\u6570\u636e\u7684\u89c4\u6a21\u3001\u590d\u6742\u6027\u4ee5\u53ca\u5177\u4f53\u9700\u6c42\u8fdb\u884c\u6743\u8861\u3002<\/p>\n<\/p>\n<ol>\n<li>\u81ea\u5b9a\u4e49\u8f6c\u6362\u51fd\u6570<\/li>\n<\/ol>\n<p><p>\u53ef\u4ee5\u7f16\u5199\u81ea\u5b9a\u4e49\u51fd\u6570\u6765\u5b9e\u73b0\u7279\u5b9a\u683c\u5f0f\u7684\u6570\u636e\u8f6c\u6362\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def transpose_data(data):<\/p>\n<p>    return [list(row) for row in zip(*data)]<\/p>\n<h2><strong>\u793a\u4f8b\u6570\u636e<\/strong><\/h2>\n<p>column_data_custom = [[1], [2], [3], [4], [5]]<\/p>\n<h2><strong>\u4f7f\u7528\u81ea\u5b9a\u4e49\u51fd\u6570\u8fdb\u884c\u8f6c\u6362<\/strong><\/h2>\n<p>row_data_custom = transpose_data(column_data_custom)<\/p>\n<p>print(row_data_custom)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li>\u7b2c\u4e09\u65b9\u5e93<\/li>\n<\/ol>\n<p><p>\u9664\u4e86NumPy\u548cPandas\uff0c\u5176\u4ed6\u6570\u636e\u5904\u7406\u5e93\u4e5f\u63d0\u4f9b\u4e86\u4e00\u4e9b\u6570\u636e\u8f6c\u6362\u529f\u80fd\uff0c\u53ef\u4ee5\u6839\u636e\u9700\u6c42\u8fdb\u884c\u9009\u62e9\u3002<\/p>\n<\/p>\n<p><p><strong>\u603b\u7ed3\uff1a<\/strong> \u5728Python\u4e2d\uff0c\u5c06\u7ad6\u884c\u6570\u636e\u8f6c\u6362\u4e3a\u6a2a\u884c\u6570\u636e\u6709\u591a\u79cd\u65b9\u6cd5\u53ef\u4ee5\u9009\u62e9\u3002\u5bf9\u4e8e\u5927\u89c4\u6a21\u6570\u636e\u548c\u590d\u6742\u6570\u636e\u7ed3\u6784\uff0c\u63a8\u8350\u4f7f\u7528NumPy\u548cPandas\u5e93\uff0c\u56e0\u4e3a\u5b83\u4eec\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u529f\u80fd\u548c\u9ad8\u6548\u7684\u64cd\u4f5c\u3002\u800c\u5bf9\u4e8e\u5c0f\u89c4\u6a21\u548c\u7b80\u5355\u6570\u636e\u7ed3\u6784\uff0c\u5185\u7f6e\u5217\u8868\u548c<code>zip<\/code>\u51fd\u6570\u5219\u662f\u7b80\u5355\u6709\u6548\u7684\u9009\u62e9\u3002\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\u53ef\u4ee5\u63d0\u9ad8\u6570\u636e\u5904\u7406\u7684\u6548\u7387\u548c\u4ee3\u7801\u7684\u53ef\u8bfb\u6027\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5c06Python\u4e2d\u7684\u6570\u636e\u7ed3\u6784\u4ece\u7ad6\u884c\u8f6c\u6362\u4e3a\u6a2a\u884c\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528Pandas\u5e93\u6765\u8f7b\u677e\u8f6c\u6362\u6570\u636e\u7ed3\u6784\u3002\u5982\u679c\u4f60\u7684\u6570\u636e\u662f\u4e00\u4e2aDataFrame\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528<code>.T<\/code>\u5c5e\u6027\u8fdb\u884c\u8f6c\u7f6e\uff0c\u5c06\u7ad6\u884c\u6570\u636e\u8f6c\u6362\u4e3a\u6a2a\u884c\u3002\u793a\u4f8b\u4ee3\u7801\u5982\u4e0b\uff1a  <\/p>\n<pre><code class=\"language-python\">import pandas as pd\n\ndata = {&#39;A&#39;: [1, 2, 3], &#39;B&#39;: [4, 5, 6]}\ndf = pd.DataFrame(data)\ntransposed_df = df.T\nprint(transposed_df)\n<\/code><\/pre>\n<p>\u8fd9\u6bb5\u4ee3\u7801\u5c06\u751f\u6210\u4e00\u4e2a\u6a2a\u884c\u7684DataFrame\u3002<\/p>\n<p><strong>\u5728Python\u4e2d\uff0c\u5982\u4f55\u5904\u7406\u5217\u8868\u7684\u7ad6\u884c\u5230\u6a2a\u884c\u7684\u8f6c\u6362\uff1f<\/strong><br \/>\u5982\u679c\u4f60\u7684\u6570\u636e\u662f\u4e00\u4e2a\u5217\u8868\uff0c\u53ef\u4ee5\u901a\u8fc7\u7b80\u5355\u7684\u5217\u8868\u63a8\u5bfc\u5f0f\u6765\u5b9e\u73b0\u8f6c\u7f6e\u3002\u4f8b\u5982\uff0c\u82e5\u6709\u4e00\u4e2a\u5217\u8868\u7684\u5217\u8868\uff0c\u60f3\u8981\u5c06\u5176\u8f6c\u4e3a\u6a2a\u5411\uff0c\u53ef\u4ee5\u4f7f\u7528\u5982\u4e0b\u65b9\u6cd5\uff1a  <\/p>\n<pre><code class=\"language-python\">data = [[1, 2, 3], [4, 5, 6]]\ntransposed = [list(row) for row in zip(*data)]\nprint(transposed)\n<\/code><\/pre>\n<p>\u8fd9\u5c06\u8f93\u51fa\u4e00\u4e2a\u6a2a\u5411\u7684\u5217\u8868\u3002<\/p>\n<p><strong>\u4f7f\u7528NumPy\u5e93\uff0c\u5982\u4f55\u5c06\u4e8c\u7ef4\u6570\u7ec4\u4ece\u7ad6\u884c\u8f6c\u6362\u4e3a\u6a2a\u884c\uff1f<\/strong><br \/>NumPy\u63d0\u4f9b\u4e86\u4e00\u4e2a\u975e\u5e38\u76f4\u63a5\u7684\u65b9\u6cd5\u6765\u5b9e\u73b0\u8fd9\u4e00\u70b9\u3002\u53ef\u4ee5\u4f7f\u7528<code>numpy.transpose()<\/code>\u51fd\u6570\u6216<code>.T<\/code>\u5c5e\u6027\u6765\u8f6c\u7f6e\u6570\u7ec4\u3002\u4f8b\u5982\uff1a  <\/p>\n<pre><code class=\"language-python\">import numpy as np\n\narr = np.array([[1, 2, 3], [4, 5, 6]])\ntransposed_arr = np.transpose(arr)\nprint(transposed_arr)\n<\/code><\/pre>\n<p>\u8fd9\u6bb5\u4ee3\u7801\u5c06\u8f93\u51fa\u4e00\u4e2a\u6a2a\u5411\u7684NumPy\u6570\u7ec4\uff0c\u65b9\u4fbf\u540e\u7eed\u7684\u8ba1\u7b97\u4e0e\u64cd\u4f5c\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u591a\u79cd\u65b9\u5f0f\u5c06\u7ad6\u884c\uff08\u5217\uff09\u6570\u636e\u8f6c\u6362\u4e3a\u6a2a\u884c\uff08\u884c\uff09\u6570\u636e\uff0c\u5e38\u7528\u7684\u65b9\u6cd5\u5305\u62ec\u4f7f\u7528NumPy\u5e93\u3001Pan [&hellip;]","protected":false},"author":3,"featured_media":970466,"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\/970457"}],"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=970457"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/970457\/revisions"}],"predecessor-version":[{"id":970471,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/970457\/revisions\/970471"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/970466"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=970457"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=970457"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=970457"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}