{"id":1064168,"date":"2024-12-31T16:06:48","date_gmt":"2024-12-31T08:06:48","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1064168.html"},"modified":"2024-12-31T16:06:50","modified_gmt":"2024-12-31T08:06:50","slug":"%e5%a6%82%e4%bd%95%e6%9f%a5%e7%9c%8b%e7%9f%a9%e9%98%b5%e6%9f%90%e4%b8%aa%e6%95%b0%e7%9a%84%e4%bd%8d%e7%bd%aepython","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1064168.html","title":{"rendered":"\u5982\u4f55\u67e5\u770b\u77e9\u9635\u67d0\u4e2a\u6570\u7684\u4f4d\u7f6epython"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-docs.pingcode.com\/wp-content\/uploads\/2024\/12\/c0fdb1a8-bd5f-448f-a6bd-6e815483b2f9.webp?x-oss-process=image\/auto-orient,1\/format,webp\" alt=\"\u5982\u4f55\u67e5\u770b\u77e9\u9635\u67d0\u4e2a\u6570\u7684\u4f4d\u7f6epython\" \/><\/p>\n<p><p> <strong>\u5728Python\u4e2d\uff0c\u67e5\u770b\u77e9\u9635\u67d0\u4e2a\u6570\u7684\u4f4d\u7f6e\u7684\u65b9\u6cd5\u6709\u591a\u79cd\uff0c\u5305\u62ec\u4f7f\u7528for\u5faa\u73af\u3001\u5217\u8868\u89e3\u6790\u4ee5\u53ca\u4f7f\u7528NumPy\u5e93\u7b49\u3002<\/strong> \u5176\u4e2d\uff0c<strong>NumPy\u5e93<\/strong>\u662f\u5904\u7406\u77e9\u9635\u548c\u6570\u7ec4\u7684\u5f3a\u5927\u5de5\u5177\uff0c\u80fd\u591f\u9ad8\u6548\u5730\u67e5\u627e\u77e9\u9635\u4e2d\u67d0\u4e2a\u6570\u7684\u4f4d\u7f6e\u3002<strong>\u4f7f\u7528NumPy\u5e93\u67e5\u627e\u77e9\u9635\u4e2d\u67d0\u4e2a\u6570\u7684\u4f4d\u7f6e\u662f\u6700\u65b9\u4fbf\u548c\u9ad8\u6548\u7684\u65b9\u6cd5<\/strong>\uff0c\u56e0\u4e3aNumPy\u63d0\u4f9b\u4e86\u5185\u7f6e\u51fd\u6570\u6765\u5904\u7406\u8fd9\u4e00\u64cd\u4f5c\u3002<\/p>\n<\/p>\n<p><p>\u4f8b\u5982\uff0c\u5047\u8bbe\u6211\u4eec\u6709\u4e00\u4e2a\u77e9\u9635\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528<code>numpy.where<\/code>\u51fd\u6570\u6765\u67e5\u627e\u77e9\u9635\u4e2d\u67d0\u4e2a\u6570\u7684\u4f4d\u7f6e\u3002\u8fd9\u4e2a\u51fd\u6570\u8fd4\u56de\u6ee1\u8db3\u6761\u4ef6\u7684\u5143\u7d20\u7684\u7d22\u5f15\uff0c\u53ef\u4ee5\u76f4\u63a5\u4f7f\u7528\u8fd9\u4e2a\u7d22\u5f15\u6765\u5b9a\u4f4d\u5143\u7d20\u7684\u4f4d\u7f6e\u3002\u4e0b\u9762\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u51e0\u79cd\u65b9\u6cd5\uff0c\u5305\u62ec\u4f7f\u7528NumPy\u5e93\u3001\u5217\u8868\u89e3\u6790\u548c\u5faa\u73af\u3002<\/p>\n<\/p>\n<p><h2>\u4e00\u3001\u4f7f\u7528NumPy\u5e93<\/h2>\n<\/p>\n<p><h3>1.1 \u5b89\u88c5NumPy<\/h3>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u6211\u4eec\u9700\u8981\u786e\u4fdd\u5df2\u7ecf\u5b89\u88c5\u4e86NumPy\u5e93\u3002\u5982\u679c\u6ca1\u6709\u5b89\u88c5\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88c5\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-sh\">pip install numpy<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>1.2 \u4f7f\u7528numpy.where\u67e5\u627e\u5143\u7d20\u4f4d\u7f6e<\/h3>\n<\/p>\n<p><p>NumPy\u5e93\u63d0\u4f9b\u4e86\u4e00\u4e2a\u5f3a\u5927\u7684\u51fd\u6570<code>numpy.where<\/code>\uff0c\u53ef\u4ee5\u7528\u6765\u67e5\u627e\u6ee1\u8db3\u7279\u5b9a\u6761\u4ef6\u7684\u5143\u7d20\u7684\u4f4d\u7f6e\u3002\u4e0b\u9762\u662f\u4e00\u4e2a\u793a\u4f8b\u4ee3\u7801\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import numpy as np<\/p>\n<h2><strong>\u521b\u5efa\u4e00\u4e2a\u77e9\u9635<\/strong><\/h2>\n<p>matrix = np.array([[1, 2, 3], [4, 5, 6], [7, 8, 9]])<\/p>\n<h2><strong>\u8981\u67e5\u627e\u7684\u6570\u5b57<\/strong><\/h2>\n<p>number = 5<\/p>\n<h2><strong>\u4f7f\u7528numpy.where\u67e5\u627e\u5143\u7d20\u7684\u4f4d\u7f6e<\/strong><\/h2>\n<p>result = np.where(matrix == number)<\/p>\n<h2><strong>\u8f93\u51fa\u7ed3\u679c<\/strong><\/h2>\n<p>print(f&quot;Number {number} is located at row {result[0][0]} and column {result[1][0]}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u6211\u4eec\u9996\u5148\u521b\u5efa\u4e86\u4e00\u4e2a3&#215;3\u7684\u77e9\u9635\uff0c\u7136\u540e\u4f7f\u7528<code>numpy.where<\/code>\u51fd\u6570\u67e5\u627e\u77e9\u9635\u4e2d\u6570\u5b575\u7684\u4f4d\u7f6e\u3002<code>numpy.where<\/code>\u8fd4\u56de\u4e24\u4e2a\u6570\u7ec4\uff0c\u5206\u522b\u8868\u793a\u884c\u548c\u5217\u7684\u7d22\u5f15\u3002<\/p>\n<\/p>\n<p><h3>1.3 \u4f7f\u7528numpy.argwhere\u67e5\u627e\u5143\u7d20\u4f4d\u7f6e<\/h3>\n<\/p>\n<p><p>\u53e6\u4e00\u4e2a\u6709\u7528\u7684\u51fd\u6570\u662f<code>numpy.argwhere<\/code>\uff0c\u5b83\u8fd4\u56de\u6ee1\u8db3\u6761\u4ef6\u7684\u5143\u7d20\u7684\u7d22\u5f15\uff0c\u5f62\u5f0f\u4e3a\u4e8c\u7ef4\u6570\u7ec4\u3002\u4e0b\u9762\u662f\u4e00\u4e2a\u793a\u4f8b\u4ee3\u7801\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import numpy as np<\/p>\n<h2><strong>\u521b\u5efa\u4e00\u4e2a\u77e9\u9635<\/strong><\/h2>\n<p>matrix = np.array([[1, 2, 3], [4, 5, 6], [7, 8, 9]])<\/p>\n<h2><strong>\u8981\u67e5\u627e\u7684\u6570\u5b57<\/strong><\/h2>\n<p>number = 5<\/p>\n<h2><strong>\u4f7f\u7528numpy.argwhere\u67e5\u627e\u5143\u7d20\u7684\u4f4d\u7f6e<\/strong><\/h2>\n<p>result = np.argwhere(matrix == number)<\/p>\n<h2><strong>\u8f93\u51fa\u7ed3\u679c<\/strong><\/h2>\n<p>print(f&quot;Number {number} is located at {result[0]}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c<code>numpy.argwhere<\/code>\u8fd4\u56de\u4e00\u4e2a\u4e8c\u7ef4\u6570\u7ec4\uff0c\u5176\u4e2d\u6bcf\u884c\u8868\u793a\u6ee1\u8db3\u6761\u4ef6\u7684\u5143\u7d20\u7684\u7d22\u5f15\u3002<\/p>\n<\/p>\n<p><h2>\u4e8c\u3001\u4f7f\u7528\u5217\u8868\u89e3\u6790<\/h2>\n<\/p>\n<p><p>\u5217\u8868\u89e3\u6790\uff08List Comprehension\uff09\u662f\u4e00\u79cd\u7b80\u6d01\u7684\u65b9\u5f0f\uff0c\u53ef\u4ee5\u7528\u6765\u67e5\u627e\u77e9\u9635\u4e2d\u67d0\u4e2a\u6570\u7684\u4f4d\u7f6e\u3002\u867d\u7136\u4e0d\u5982NumPy\u9ad8\u6548\uff0c\u4f46\u5bf9\u4e8e\u5c0f\u89c4\u6a21\u7684\u77e9\u9635\u4ecd\u7136\u9002\u7528\u3002\u4e0b\u9762\u662f\u4e00\u4e2a\u793a\u4f8b\u4ee3\u7801\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u521b\u5efa\u4e00\u4e2a\u77e9\u9635<\/p>\n<p>matrix = [[1, 2, 3], [4, 5, 6], [7, 8, 9]]<\/p>\n<h2><strong>\u8981\u67e5\u627e\u7684\u6570\u5b57<\/strong><\/h2>\n<p>number = 5<\/p>\n<h2><strong>\u4f7f\u7528\u5217\u8868\u89e3\u6790\u67e5\u627e\u5143\u7d20\u7684\u4f4d\u7f6e<\/strong><\/h2>\n<p>result = [(i, j) for i in range(len(matrix)) for j in range(len(matrix[i])) if matrix[i][j] == number]<\/p>\n<h2><strong>\u8f93\u51fa\u7ed3\u679c<\/strong><\/h2>\n<p>print(f&quot;Number {number} is located at {result}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u6211\u4eec\u4f7f\u7528\u5217\u8868\u89e3\u6790\u904d\u5386\u77e9\u9635\u7684\u6bcf\u4e2a\u5143\u7d20\uff0c\u5e76\u5c06\u6ee1\u8db3\u6761\u4ef6\u7684\u5143\u7d20\u7d22\u5f15\u5b58\u50a8\u5728\u4e00\u4e2a\u5217\u8868\u4e2d\u3002<\/p>\n<\/p>\n<p><h2>\u4e09\u3001\u4f7f\u7528for\u5faa\u73af<\/h2>\n<\/p>\n<p><p>\u4f7f\u7528for\u5faa\u73af\u662f\u6700\u57fa\u7840\u7684\u65b9\u6cd5\uff0c\u9002\u7528\u4e8e\u4efb\u4f55Python\u7248\u672c\uff0c\u65e0\u9700\u5b89\u88c5\u989d\u5916\u7684\u5e93\u3002\u4e0b\u9762\u662f\u4e00\u4e2a\u793a\u4f8b\u4ee3\u7801\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u521b\u5efa\u4e00\u4e2a\u77e9\u9635<\/p>\n<p>matrix = [[1, 2, 3], [4, 5, 6], [7, 8, 9]]<\/p>\n<h2><strong>\u8981\u67e5\u627e\u7684\u6570\u5b57<\/strong><\/h2>\n<p>number = 5<\/p>\n<h2><strong>\u4f7f\u7528for\u5faa\u73af\u67e5\u627e\u5143\u7d20\u7684\u4f4d\u7f6e<\/strong><\/h2>\n<p>result = []<\/p>\n<p>for i in range(len(matrix)):<\/p>\n<p>    for j in range(len(matrix[i])):<\/p>\n<p>        if matrix[i][j] == number:<\/p>\n<p>            result.append((i, j))<\/p>\n<h2><strong>\u8f93\u51fa\u7ed3\u679c<\/strong><\/h2>\n<p>print(f&quot;Number {number} is located at {result}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u6211\u4eec\u4f7f\u7528\u5d4c\u5957\u7684for\u5faa\u73af\u904d\u5386\u77e9\u9635\u7684\u6bcf\u4e2a\u5143\u7d20\uff0c\u5e76\u5c06\u6ee1\u8db3\u6761\u4ef6\u7684\u5143\u7d20\u7d22\u5f15\u5b58\u50a8\u5728\u4e00\u4e2a\u5217\u8868\u4e2d\u3002<\/p>\n<\/p>\n<p><h2>\u56db\u3001\u603b\u7ed3<\/h2>\n<\/p>\n<p><p>\u67e5\u770b\u77e9\u9635\u67d0\u4e2a\u6570\u7684\u4f4d\u7f6e\u5728Python\u4e2d\u6709\u591a\u79cd\u65b9\u6cd5\uff0c\u53ef\u4ee5\u6839\u636e\u5177\u4f53\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\u3002<strong>\u4f7f\u7528NumPy\u5e93\u662f\u6700\u63a8\u8350\u7684\u65b9\u6cd5\uff0c\u56e0\u4e3a\u5b83\u9ad8\u6548\u4e14\u6613\u7528<\/strong>\u3002\u6b64\u5916\uff0c\u5bf9\u4e8e\u5c0f\u89c4\u6a21\u77e9\u9635\uff0c\u4e5f\u53ef\u4ee5\u9009\u62e9\u5217\u8868\u89e3\u6790\u6216for\u5faa\u73af\u65b9\u6cd5\u3002\u4e0b\u9762\u662f\u4e0d\u540c\u65b9\u6cd5\u7684\u603b\u7ed3\uff1a<\/p>\n<\/p>\n<ul>\n<li><strong>NumPy\u5e93<\/strong>\uff1a\u9ad8\u6548\u3001\u6613\u7528\uff0c\u9002\u7528\u4e8e\u5927\u89c4\u6a21\u77e9\u9635\u3002<\/li>\n<li><strong>\u5217\u8868\u89e3\u6790<\/strong>\uff1a\u7b80\u6d01\uff0c\u9002\u7528\u4e8e\u5c0f\u89c4\u6a21\u77e9\u9635\u3002<\/li>\n<li><strong>for\u5faa\u73af<\/strong>\uff1a\u57fa\u7840\u65b9\u6cd5\uff0c\u9002\u7528\u4e8e\u4efb\u4f55\u60c5\u51b5\uff0c\u4f46\u6548\u7387\u8f83\u4f4e\u3002<\/li>\n<\/ul>\n<p><p>\u6839\u636e\u4e0a\u8ff0\u65b9\u6cd5\uff0c\u53ef\u4ee5\u8f7b\u677e\u5730\u67e5\u770b\u77e9\u9635\u4e2d\u67d0\u4e2a\u6570\u7684\u4f4d\u7f6e\u3002\u5e0c\u671b\u672c\u6587\u5bf9\u60a8\u6709\u6240\u5e2e\u52a9\uff01<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u67e5\u627e\u77e9\u9635\u4e2d\u67d0\u4e2a\u7279\u5b9a\u6570\u5b57\u7684\u4f4d\u7f6e\uff1f<\/strong><br \/>\u8981\u5728Python\u4e2d\u67e5\u627e\u77e9\u9635\u4e2d\u7279\u5b9a\u6570\u5b57\u7684\u4f4d\u7f6e\uff0c\u53ef\u4ee5\u4f7f\u7528NumPy\u5e93\uff0c\u5b83\u63d0\u4f9b\u4e86\u9ad8\u6548\u7684\u6570\u7ec4\u64cd\u4f5c\u529f\u80fd\u3002\u9996\u5148\uff0c\u60a8\u9700\u8981\u5c06\u77e9\u9635\u8f6c\u6362\u4e3aNumPy\u6570\u7ec4\uff0c\u7136\u540e\u4f7f\u7528<code>np.where()<\/code>\u51fd\u6570\u6765\u67e5\u627e\u8be5\u6570\u5b57\u7684\u4f4d\u7f6e\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u793a\u4f8b\u4ee3\u7801\uff1a  <\/p>\n<pre><code class=\"language-python\">import numpy as np\n\nmatrix = np.array([[1, 2, 3], [4, 5, 6], [7, 8, 9]])\nnumber = 5\npositions = np.where(matrix == number)\n\nprint(&quot;\u4f4d\u7f6e:&quot;, positions)\n<\/code><\/pre>\n<p>\u8fd9\u6bb5\u4ee3\u7801\u5c06\u8f93\u51fa\u6570\u5b575\u5728\u77e9\u9635\u4e2d\u7684\u4f4d\u7f6e\u3002<\/p>\n<p><strong>\u5982\u679c\u77e9\u9635\u4e2d\u6709\u591a\u4e2a\u76f8\u540c\u7684\u6570\u5b57\uff0c\u5982\u4f55\u83b7\u53d6\u6240\u6709\u4f4d\u7f6e\uff1f<\/strong><br \/>\u4f7f\u7528<code>np.where()<\/code>\u51fd\u6570\u53ef\u4ee5\u65b9\u4fbf\u5730\u627e\u5230\u6240\u6709\u5339\u914d\u7684\u4f4d\u7f6e\u3002\u8be5\u51fd\u6570\u8fd4\u56de\u4e00\u4e2a\u5143\u7ec4\uff0c\u5305\u542b\u6bcf\u4e2a\u7ef4\u5ea6\u7684\u7d22\u5f15\u3002\u5982\u679c\u77e9\u9635\u4e2d\u6709\u591a\u4e2a\u76f8\u540c\u7684\u6570\u5b57\uff0c\u6240\u6709\u7684\u4f4d\u7f6e\u90fd\u4f1a\u88ab\u5217\u51fa\u3002\u60a8\u53ea\u9700\u904d\u5386\u8fd4\u56de\u7684\u5143\u7ec4\u5373\u53ef\u83b7\u53d6\u6240\u6709\u7684\u884c\u548c\u5217\u7d22\u5f15\u3002<\/p>\n<p><strong>\u5728\u67e5\u627e\u4f4d\u7f6e\u65f6\uff0c\u5982\u4f55\u5904\u7406\u77e9\u9635\u4e2d\u4e0d\u5b58\u5728\u7684\u6570\u5b57\uff1f<\/strong><br \/>\u5f53\u60a8\u67e5\u627e\u7684\u6570\u5b57\u4e0d\u5728\u77e9\u9635\u4e2d\u65f6\uff0c<code>np.where()<\/code>\u5c06\u8fd4\u56de\u7a7a\u6570\u7ec4\u3002\u53ef\u4ee5\u901a\u8fc7\u68c0\u67e5\u8fd4\u56de\u7ed3\u679c\u7684\u957f\u5ea6\u6765\u5224\u65ad\u6570\u5b57\u662f\u5426\u5b58\u5728\u3002\u5982\u679c\u957f\u5ea6\u4e3a0\uff0c\u610f\u5473\u7740\u8be5\u6570\u5b57\u4e0d\u5728\u77e9\u9635\u4e2d\u3002\u4f8b\u5982\uff1a  <\/p>\n<pre><code class=\"language-python\">number = 10\npositions = np.where(matrix == number)\n\nif len(positions[0]) == 0:\n    print(&quot;\u6570\u5b57\u4e0d\u5728\u77e9\u9635\u4e2d&quot;)\nelse:\n    print(&quot;\u4f4d\u7f6e:&quot;, positions)\n<\/code><\/pre>\n<p>\u8fd9\u6837\uff0c\u60a8\u53ef\u4ee5\u5b89\u5168\u5730\u5904\u7406\u4e0d\u5b58\u5728\u7684\u6570\u5b57\u60c5\u51b5\u3002<\/p>\n<p><strong>\u5728\u67e5\u627e\u4f4d\u7f6e\u65f6\uff0c\u662f\u5426\u53ef\u4ee5\u4f7f\u7528\u5176\u4ed6\u6570\u636e\u7ed3\u6784\uff1f<\/strong><br \/>\u9664\u4e86\u4f7f\u7528NumPy\u6570\u7ec4\uff0c\u60a8\u8fd8\u53ef\u4ee5\u4f7f\u7528Python\u7684\u5217\u8868\u6216\u5b57\u5178\u3002\u901a\u8fc7\u5d4c\u5957\u5faa\u73af\u904d\u5386\u77e9\u9635\uff0c\u53ef\u4ee5\u624b\u52a8\u67e5\u627e\u6570\u5b57\u7684\u4f4d\u7f6e\u3002\u867d\u7136\u8fd9\u79cd\u65b9\u6cd5\u8f83\u4e3a\u57fa\u7840\uff0c\u4f46\u5bf9\u4e8e\u5c0f\u578b\u77e9\u9635\u6765\u8bf4\u4e5f\u975e\u5e38\u6709\u6548\u3002\u793a\u4f8b\u4ee3\u7801\u5982\u4e0b\uff1a  <\/p>\n<pre><code class=\"language-python\">matrix = [[1, 2, 3], [4, 5, 6], [7, 8, 9]]\nnumber = 5\npositions = [(i, j) for i, row in enumerate(matrix) for j, val in enumerate(row) if val == number]\n\nprint(&quot;\u4f4d\u7f6e:&quot;, positions)\n<\/code><\/pre>\n<p>\u8fd9\u79cd\u65b9\u5f0f\u53ef\u4ee5\u8ba9\u60a8\u5728\u6ca1\u6709\u989d\u5916\u5e93\u7684\u60c5\u51b5\u4e0b\u5b9e\u73b0\u76f8\u4f3c\u7684\u529f\u80fd\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\uff0c\u67e5\u770b\u77e9\u9635\u67d0\u4e2a\u6570\u7684\u4f4d\u7f6e\u7684\u65b9\u6cd5\u6709\u591a\u79cd\uff0c\u5305\u62ec\u4f7f\u7528for\u5faa\u73af\u3001\u5217\u8868\u89e3\u6790\u4ee5\u53ca\u4f7f\u7528NumPy\u5e93\u7b49\u3002 \u5176\u4e2d [&hellip;]","protected":false},"author":3,"featured_media":1064175,"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\/1064168"}],"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=1064168"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1064168\/revisions"}],"predecessor-version":[{"id":1064177,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1064168\/revisions\/1064177"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1064175"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1064168"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1064168"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1064168"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}