{"id":951545,"date":"2024-12-27T01:03:38","date_gmt":"2024-12-26T17:03:38","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/951545.html"},"modified":"2024-12-27T01:03:40","modified_gmt":"2024-12-26T17:03:40","slug":"python%e5%a6%82%e4%bd%95%e5%8f%96%e7%9f%a9%e9%98%b5","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/951545.html","title":{"rendered":"python\u5982\u4f55\u53d6\u77e9\u9635"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25085719\/b1b8999f-881c-4d75-80ef-c3929e66cfcc.webp\" alt=\"python\u5982\u4f55\u53d6\u77e9\u9635\" \/><\/p>\n<p><p> <strong>Python\u53d6\u77e9\u9635\u7684\u65b9\u6cd5\u6709\u591a\u79cd\uff0c\u5305\u62ec\u4f7f\u7528NumPy\u5e93\u3001\u5217\u8868\u5d4c\u5957\u3001Pandas\u5e93\u3002NumPy\u662f\u5904\u7406\u77e9\u9635\u6700\u5e38\u7528\u7684\u5e93\uff0c\u56e0\u4e3a\u5b83\u63d0\u4f9b\u4e86\u9ad8\u6548\u7684\u591a\u7ef4\u6570\u7ec4\u64cd\u4f5c\u3001\u652f\u6301\u4e30\u5bcc\u7684\u6570\u5b66\u51fd\u6570\u3001\u5177\u5907\u826f\u597d\u7684\u6027\u80fd\u3002<\/strong><\/p>\n<\/p>\n<p><p>\u5728Python\u4e2d\u5904\u7406\u77e9\u9635\uff0c\u6700\u5e38\u7528\u7684\u5de5\u5177\u662fNumPy\u5e93\u3002NumPy\u662f\u4e00\u4e2a\u975e\u5e38\u5f3a\u5927\u7684\u5e93\uff0c\u4e13\u95e8\u7528\u4e8e\u79d1\u5b66\u8ba1\u7b97\u3002\u5b83\u4e0d\u4ec5\u63d0\u4f9b\u4e86\u65b9\u4fbf\u7684\u6570\u7ec4\u64cd\u4f5c\u529f\u80fd\uff0c\u8fd8\u652f\u6301\u591a\u79cd\u77e9\u9635\u64cd\u4f5c\u3002\u5177\u4f53\u6765\u8bf4\uff0c\u53ef\u4ee5\u901a\u8fc7\u521b\u5efa\u4e8c\u7ef4\u6570\u7ec4\u6765\u8868\u793a\u77e9\u9635\uff0c\u5e76\u4f7f\u7528\u5207\u7247\u64cd\u4f5c\u6765\u8bbf\u95ee\u77e9\u9635\u4e2d\u7684\u5143\u7d20\u3002\u6b64\u5916\uff0cNumPy\u8fd8\u63d0\u4f9b\u4e86\u8bb8\u591a\u7528\u4e8e\u77e9\u9635\u8fd0\u7b97\u7684\u51fd\u6570\uff0c\u4f8b\u5982\u77e9\u9635\u4e58\u6cd5\u3001\u8f6c\u7f6e\u548c\u6c42\u9006\u7b49\u3002\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528Python\u5904\u7406\u77e9\u9635\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001NUMPY\u5e93\u7684\u4f7f\u7528<\/h3>\n<\/p>\n<p><p>NumPy\u662fPython\u4e2d\u6700\u6d41\u884c\u7684\u79d1\u5b66\u8ba1\u7b97\u5e93\uff0c\u5b83\u7684\u4e3b\u8981\u5bf9\u8c61\u662f\u540c\u6784\u591a\u7ef4\u6570\u7ec4\u3002NumPy\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u51fd\u6570\u6765\u521b\u5efa\u548c\u64cd\u4f5c\u8fd9\u4e9b\u6570\u7ec4\uff0c\u56e0\u6b64\u975e\u5e38\u9002\u5408\u7528\u4e8e\u77e9\u9635\u8fd0\u7b97\u3002<\/p>\n<\/p>\n<p><h4>1. \u521b\u5efa\u77e9\u9635<\/h4>\n<\/p>\n<p><p>\u8981\u4f7f\u7528NumPy\u521b\u5efa\u77e9\u9635\uff0c\u9996\u5148\u9700\u8981\u5bfc\u5165NumPy\u5e93\uff0c\u7136\u540e\u4f7f\u7528<code>numpy.array()<\/code>\u51fd\u6570\u6765\u521b\u5efa\u4e00\u4e2a\u4e8c\u7ef4\u6570\u7ec4\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import numpy as np<\/p>\n<h2><strong>\u521b\u5efa\u4e00\u4e2a2x3\u7684\u77e9\u9635<\/strong><\/h2>\n<p>matrix = np.array([[1, 2, 3], [4, 5, 6]])<\/p>\n<p>print(matrix)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u4e0a\u8ff0\u4ee3\u7801\u4e2d\uff0c\u6211\u4eec\u521b\u5efa\u4e86\u4e00\u4e2a2&#215;3\u7684\u77e9\u9635\u3002NumPy\u6570\u7ec4\u7684\u7ef4\u5ea6\u53ef\u4ee5\u901a\u8fc7<code>shape<\/code>\u5c5e\u6027\u67e5\u770b\u3002<\/p>\n<\/p>\n<p><h4>2. \u8bbf\u95ee\u77e9\u9635\u5143\u7d20<\/h4>\n<\/p>\n<p><p>\u53ef\u4ee5\u901a\u8fc7\u7d22\u5f15\u6765\u8bbf\u95ee\u77e9\u9635\u4e2d\u7684\u5143\u7d20\u3002NumPy\u4f7f\u7528\u884c\u548c\u5217\u7684\u7d22\u5f15\u6765\u8bbf\u95ee\u77e9\u9635\u4e2d\u7684\u5143\u7d20\u3002\u7d22\u5f15\u4ece0\u5f00\u59cb\u3002\u4f8b\u5982\uff0c\u8bbf\u95ee\u7b2c\u4e00\u884c\u7b2c\u4e8c\u5217\u7684\u5143\u7d20\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u4ee3\u7801\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">element = matrix[0, 1]<\/p>\n<p>print(element)  # \u8f93\u51fa\uff1a2<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>3. \u77e9\u9635\u7684\u5207\u7247<\/h4>\n<\/p>\n<p><p>NumPy\u5141\u8bb8\u4f7f\u7528\u5207\u7247\u6765\u8bbf\u95ee\u77e9\u9635\u7684\u4e00\u90e8\u5206\u3002\u4f8b\u5982\uff0c\u53ef\u4ee5\u63d0\u53d6\u77e9\u9635\u7684\u67d0\u4e00\u884c\u6216\u67d0\u4e00\u5217\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u63d0\u53d6\u7b2c\u4e00\u884c<\/p>\n<p>row = matrix[0, :]<\/p>\n<p>print(row)  # \u8f93\u51fa\uff1a[1 2 3]<\/p>\n<h2><strong>\u63d0\u53d6\u7b2c\u4e8c\u5217<\/strong><\/h2>\n<p>column = matrix[:, 1]<\/p>\n<p>print(column)  # \u8f93\u51fa\uff1a[2 5]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>4. \u77e9\u9635\u8fd0\u7b97<\/h4>\n<\/p>\n<p><p>NumPy\u63d0\u4f9b\u4e86\u8bb8\u591a\u7528\u4e8e\u77e9\u9635\u8fd0\u7b97\u7684\u51fd\u6570\u3002\u4f8b\u5982\uff0c\u53ef\u4ee5\u4f7f\u7528<code>numpy.dot()<\/code>\u51fd\u6570\u8fdb\u884c\u77e9\u9635\u4e58\u6cd5\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u521b\u5efa\u4e24\u4e2a\u77e9\u9635<\/p>\n<p>matrix_a = np.array([[1, 2], [3, 4]])<\/p>\n<p>matrix_b = np.array([[5, 6], [7, 8]])<\/p>\n<h2><strong>\u77e9\u9635\u4e58\u6cd5<\/strong><\/h2>\n<p>result = np.dot(matrix_a, matrix_b)<\/p>\n<p>print(result)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u6b64\u5916\uff0cNumPy\u8fd8\u63d0\u4f9b\u4e86\u5176\u4ed6\u7684\u77e9\u9635\u8fd0\u7b97\u51fd\u6570\uff0c\u5982<code>transpose()<\/code>\u7528\u4e8e\u77e9\u9635\u8f6c\u7f6e\uff0c<code>inv()<\/code>\u7528\u4e8e\u6c42\u9006\u7b49\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u5217\u8868\u5d4c\u5957\u7684\u65b9\u6cd5<\/h3>\n<\/p>\n<p><p>\u867d\u7136NumPy\u662f\u5904\u7406\u77e9\u9635\u7684\u6700\u4f73\u9009\u62e9\uff0c\u4f46\u5728\u7b80\u5355\u7684\u60c5\u51b5\u4e0b\uff0c\u53ef\u4ee5\u4f7f\u7528Python\u7684\u5d4c\u5957\u5217\u8868\u6765\u8868\u793a\u77e9\u9635\u3002\u5d4c\u5957\u5217\u8868\u662f\u4e00\u79cd\u7b80\u5355\u4e14\u76f4\u89c2\u7684\u77e9\u9635\u8868\u793a\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<p><h4>1. \u521b\u5efa\u77e9\u9635<\/h4>\n<\/p>\n<p><p>\u53ef\u4ee5\u4f7f\u7528\u5d4c\u5957\u5217\u8868\u6765\u521b\u5efa\u77e9\u9635\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u521b\u5efa\u4e00\u4e2a2x3\u7684\u77e9\u9635<\/p>\n<p>matrix = [[1, 2, 3], [4, 5, 6]]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2. \u8bbf\u95ee\u5143\u7d20<\/h4>\n<\/p>\n<p><p>\u53ef\u4ee5\u901a\u8fc7\u5d4c\u5957\u5217\u8868\u7684\u7d22\u5f15\u6765\u8bbf\u95ee\u77e9\u9635\u4e2d\u7684\u5143\u7d20\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">element = matrix[0][1]<\/p>\n<p>print(element)  # \u8f93\u51fa\uff1a2<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>3. \u5207\u7247\u64cd\u4f5c<\/h4>\n<\/p>\n<p><p>\u5d4c\u5957\u5217\u8868\u4e0d\u652f\u6301NumPy\u90a3\u6837\u7684\u5207\u7247\u64cd\u4f5c\uff0c\u4f46\u53ef\u4ee5\u901a\u8fc7\u5217\u8868\u89e3\u6790\u6765\u63d0\u53d6\u884c\u548c\u5217\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u63d0\u53d6\u7b2c\u4e00\u884c<\/p>\n<p>row = matrix[0]<\/p>\n<p>print(row)  # \u8f93\u51fa\uff1a[1, 2, 3]<\/p>\n<h2><strong>\u63d0\u53d6\u7b2c\u4e8c\u5217<\/strong><\/h2>\n<p>column = [row[1] for row in matrix]<\/p>\n<p>print(column)  # \u8f93\u51fa\uff1a[2, 5]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>4. \u77e9\u9635\u8fd0\u7b97<\/h4>\n<\/p>\n<p><p>\u5d4c\u5957\u5217\u8868\u672c\u8eab\u4e0d\u652f\u6301\u76f4\u63a5\u7684\u77e9\u9635\u8fd0\u7b97\uff0c\u4f46\u53ef\u4ee5\u901a\u8fc7\u7f16\u5199\u989d\u5916\u7684\u4ee3\u7801\u5b9e\u73b0\u3002\u4f8b\u5982\uff0c\u77e9\u9635\u4e58\u6cd5\u53ef\u4ee5\u8fd9\u6837\u5b9e\u73b0\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def matrix_multiply(a, b):<\/p>\n<p>    result = [[0] * len(b[0]) for _ in range(len(a))]<\/p>\n<p>    for i in range(len(a)):<\/p>\n<p>        for j in range(len(b[0])):<\/p>\n<p>            for k in range(len(b)):<\/p>\n<p>                result[i][j] += a[i][k] * b[k][j]<\/p>\n<p>    return result<\/p>\n<h2><strong>\u521b\u5efa\u4e24\u4e2a\u77e9\u9635<\/strong><\/h2>\n<p>matrix_a = [[1, 2], [3, 4]]<\/p>\n<p>matrix_b = [[5, 6], [7, 8]]<\/p>\n<h2><strong>\u77e9\u9635\u4e58\u6cd5<\/strong><\/h2>\n<p>result = matrix_multiply(matrix_a, matrix_b)<\/p>\n<p>print(result)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e09\u3001\u4f7f\u7528Pandas\u5e93<\/h3>\n<\/p>\n<p><p>Pandas\u662f\u53e6\u4e00\u4e2a\u529f\u80fd\u5f3a\u5927\u7684\u6570\u636e\u5904\u7406\u5e93\uff0c\u867d\u7136\u5b83\u4e3b\u8981\u7528\u4e8e\u6570\u636e\u5206\u6790\uff0c\u4f46\u4e5f\u53ef\u4ee5\u7528\u6765\u5904\u7406\u77e9\u9635\u3002<\/p>\n<\/p>\n<p><h4>1. \u521b\u5efa\u77e9\u9635<\/h4>\n<\/p>\n<p><p>Pandas\u7684DataFrame\u53ef\u4ee5\u7528\u4e8e\u8868\u793a\u77e9\u9635\u3002\u53ef\u4ee5\u901a\u8fc7\u4f20\u9012\u4e8c\u7ef4\u6570\u7ec4\u6216\u5d4c\u5957\u5217\u8868\u6765\u521b\u5efaDataFrame\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import pandas as pd<\/p>\n<h2><strong>\u521b\u5efa\u4e00\u4e2a2x3\u7684DataFrame<\/strong><\/h2>\n<p>matrix = pd.DataFrame([[1, 2, 3], [4, 5, 6]], columns=[&#39;A&#39;, &#39;B&#39;, &#39;C&#39;])<\/p>\n<p>print(matrix)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2. \u8bbf\u95ee\u5143\u7d20<\/h4>\n<\/p>\n<p><p>\u53ef\u4ee5\u901a\u8fc7\u5217\u6807\u7b7e\u548c\u884c\u7d22\u5f15\u6765\u8bbf\u95eeDataFrame\u4e2d\u7684\u5143\u7d20\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">element = matrix.at[0, &#39;B&#39;]<\/p>\n<p>print(element)  # \u8f93\u51fa\uff1a2<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>3. \u77e9\u9635\u8fd0\u7b97<\/h4>\n<\/p>\n<p><p>Pandas\u7684DataFrame\u652f\u6301\u57fa\u672c\u7684\u8fd0\u7b97\u64cd\u4f5c\uff0c\u53ef\u4ee5\u4e0eNumPy\u7ed3\u5408\u4f7f\u7528\u8fdb\u884c\u66f4\u590d\u6742\u7684\u8fd0\u7b97\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u521b\u5efa\u7b2c\u4e8c\u4e2aDataFrame<\/p>\n<p>matrix_b = pd.DataFrame([[5, 6, 7], [8, 9, 10]], columns=[&#39;A&#39;, &#39;B&#39;, &#39;C&#39;])<\/p>\n<h2><strong>\u5143\u7d20\u76f8\u52a0<\/strong><\/h2>\n<p>result = matrix + matrix_b<\/p>\n<p>print(result)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u56db\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u5728Python\u4e2d\u5904\u7406\u77e9\u9635\uff0cNumPy\u662f\u6700\u5e38\u7528\u548c\u6700\u6709\u6548\u7684\u5de5\u5177\u3002\u5b83\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u529f\u80fd\u548c\u9ad8\u6548\u7684\u6027\u80fd\uff0c\u9002\u5408\u5927\u591a\u6570\u77e9\u9635\u8fd0\u7b97\u9700\u6c42\u3002\u5bf9\u4e8e\u7b80\u5355\u7684\u5e94\u7528\u573a\u666f\uff0c\u53ef\u4ee5\u4f7f\u7528\u5d4c\u5957\u5217\u8868\u6765\u8868\u793a\u77e9\u9635\uff0c\u4f46\u6027\u80fd\u8f83\u5dee\u3002\u5728\u6570\u636e\u5206\u6790\u573a\u666f\u4e2d\uff0cPandas\u7684DataFrame\u4e5f\u662f\u4e00\u4e2a\u4e0d\u9519\u7684\u9009\u62e9\u3002\u9009\u62e9\u9002\u5408\u7684\u5de5\u5177\u548c\u65b9\u6cd5\uff0c\u53ef\u4ee5\u8ba9\u77e9\u9635\u5904\u7406\u66f4\u52a0\u9ad8\u6548\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u521b\u5efa\u4e00\u4e2a\u77e9\u9635\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528NumPy\u5e93\u521b\u5efa\u77e9\u9635\u3002\u9996\u5148\uff0c\u5b89\u88c5NumPy\u5e93\uff08\u5982\u679c\u5c1a\u672a\u5b89\u88c5\uff09\uff0c\u7136\u540e\u4f7f\u7528<code>numpy.array()<\/code>\u51fd\u6570\u5c06\u5d4c\u5957\u5217\u8868\u8f6c\u6362\u4e3a\u77e9\u9635\u3002\u4f8b\u5982\uff1a<\/p>\n<pre><code class=\"language-python\">import numpy as np\nmatrix = np.array([[1, 2, 3], [4, 5, 6]])\n<\/code><\/pre>\n<p>\u8fd9\u5c06\u521b\u5efa\u4e00\u4e2a2&#215;3\u7684\u77e9\u9635\u3002<\/p>\n<p><strong>\u5982\u4f55\u4ece\u77e9\u9635\u4e2d\u63d0\u53d6\u7279\u5b9a\u7684\u884c\u6216\u5217\uff1f<\/strong><br \/>\u60a8\u53ef\u4ee5\u901a\u8fc7\u7d22\u5f15\u6765\u63d0\u53d6\u77e9\u9635\u7684\u7279\u5b9a\u884c\u6216\u5217\u3002\u5bf9\u4e8e\u4e00\u4e2aNumPy\u77e9\u9635\uff0c\u4f7f\u7528<code>matrix[row_index]<\/code>\u53ef\u4ee5\u63d0\u53d6\u7279\u5b9a\u884c\uff0c\u4f7f\u7528<code>matrix[:, column_index]<\/code>\u53ef\u4ee5\u63d0\u53d6\u7279\u5b9a\u5217\u3002\u4f8b\u5982\uff0c<code>matrix[0]<\/code>\u5c06\u8fd4\u56de\u7b2c\u4e00\u884c\uff0c\u800c<code>matrix[:, 1]<\/code>\u5c06\u8fd4\u56de\u7b2c\u4e8c\u5217\u3002<\/p>\n<p><strong>\u5982\u4f55\u8fdb\u884c\u77e9\u9635\u7684\u57fa\u672c\u8fd0\u7b97\uff0c\u5982\u52a0\u6cd5\u548c\u4e58\u6cd5\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0cNumPy\u5e93\u63d0\u4f9b\u4e86\u7b80\u5355\u7684\u65b9\u6cd5\u6765\u8fdb\u884c\u77e9\u9635\u7684\u57fa\u672c\u8fd0\u7b97\u3002\u60a8\u53ef\u4ee5\u4f7f\u7528<code>+<\/code>\u8fd0\u7b97\u7b26\u8fdb\u884c\u77e9\u9635\u52a0\u6cd5\uff0c\u4f7f\u7528<code>@<\/code>\u8fd0\u7b97\u7b26\u6216<code>numpy.dot()<\/code>\u51fd\u6570\u8fdb\u884c\u77e9\u9635\u4e58\u6cd5\u3002\u4f8b\u5982\uff1a<\/p>\n<pre><code class=\"language-python\">matrix_a = np.array([[1, 2], [3, 4]])\nmatrix_b = np.array([[5, 6], [7, 8]])\nsum_matrix = matrix_a + matrix_b  # \u77e9\u9635\u52a0\u6cd5\nproduct_matrix = matrix_a @ matrix_b  # \u77e9\u9635\u4e58\u6cd5\n<\/code><\/pre>\n<p>\u8fd9\u4e9b\u64cd\u4f5c\u5c06\u8fd4\u56de\u65b0\u7684\u77e9\u9635\u7ed3\u679c\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Python\u53d6\u77e9\u9635\u7684\u65b9\u6cd5\u6709\u591a\u79cd\uff0c\u5305\u62ec\u4f7f\u7528NumPy\u5e93\u3001\u5217\u8868\u5d4c\u5957\u3001Pandas\u5e93\u3002NumPy\u662f\u5904\u7406\u77e9\u9635\u6700\u5e38\u7528\u7684\u5e93 [&hellip;]","protected":false},"author":3,"featured_media":951548,"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\/951545"}],"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=951545"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/951545\/revisions"}],"predecessor-version":[{"id":951549,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/951545\/revisions\/951549"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/951548"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=951545"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=951545"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=951545"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}