{"id":1002812,"date":"2024-12-27T10:11:59","date_gmt":"2024-12-27T02:11:59","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1002812.html"},"modified":"2024-12-27T10:12:03","modified_gmt":"2024-12-27T02:12:03","slug":"python%e5%a6%82%e4%bd%95%e8%af%bb%e5%8f%96%e7%9f%a9%e9%98%b5%e8%be%93%e5%85%a5","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1002812.html","title":{"rendered":"Python\u5982\u4f55\u8bfb\u53d6\u77e9\u9635\u8f93\u5165"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25080420\/0e5368fc-f60f-455b-a371-70ab543105a6.webp\" alt=\"Python\u5982\u4f55\u8bfb\u53d6\u77e9\u9635\u8f93\u5165\" \/><\/p>\n<p><p> <strong>Python\u8bfb\u53d6\u77e9\u9635\u8f93\u5165\u7684\u5e38\u7528\u65b9\u6cd5\u6709\uff1a\u4f7f\u7528numpy\u5e93\u8bfb\u53d6\u3001\u4f7f\u7528\u5217\u8868\u89e3\u6790\u8bfb\u53d6\u3001\u4ee5\u53ca\u901a\u8fc7\u6587\u4ef6\u8bfb\u53d6\u3002<\/strong> \u5728\u8fd9\u51e0\u79cd\u65b9\u6cd5\u4e2d\uff0c<strong>\u4f7f\u7528numpy\u5e93\u8bfb\u53d6\u77e9\u9635<\/strong>\u662f\u6700\u4e3a\u9ad8\u6548\u548c\u7b80\u4fbf\u7684\u65b9\u5f0f\uff0c\u5b83\u4e0d\u4ec5\u652f\u6301\u591a\u7ef4\u6570\u7ec4\u7684\u64cd\u4f5c\uff0c\u8fd8\u63d0\u4f9b\u4e30\u5bcc\u7684\u77e9\u9635\u8fd0\u7b97\u529f\u80fd\u3002\u800c\u5bf9\u4e8e\u7b80\u5355\u7684\u77e9\u9635\u8f93\u5165\uff0c<strong>\u5217\u8868\u89e3\u6790<\/strong>\u65b9\u6cd5\u4e5f\u80fd\u591f\u5feb\u901f\u5b9e\u73b0\u77e9\u9635\u7684\u521b\u5efa\u3002\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u8fd9\u4e9b\u65b9\u6cd5\u7684\u5177\u4f53\u5b9e\u73b0\u6b65\u9aa4\u548c\u6ce8\u610f\u4e8b\u9879\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u4f7f\u7528NUMPY\u5e93\u8bfb\u53d6\u77e9\u9635<\/p>\n<\/p>\n<p><p>numpy\u662fPython\u4e2d\u4e00\u4e2a\u975e\u5e38\u5f3a\u5927\u7684\u6570\u503c\u8ba1\u7b97\u5e93\uff0c\u4e13\u95e8\u7528\u4e8e\u5904\u7406\u5927\u578b\u6570\u7ec4\u548c\u77e9\u9635\u8fd0\u7b97\u3002\u4f7f\u7528numpy\u8bfb\u53d6\u77e9\u9635\u6709\u4ee5\u4e0b\u51e0\u4e2a\u6b65\u9aa4\uff1a<\/p>\n<\/p>\n<ol>\n<li><strong>\u5b89\u88c5\u5e76\u5bfc\u5165numpy\u5e93<\/strong><\/li>\n<\/ol>\n<p><p>\u5728\u4f7f\u7528numpy\u4e4b\u524d\uff0c\u9700\u8981\u786e\u4fdd\u5df2\u7ecf\u5b89\u88c5\u4e86numpy\u5e93\u3002\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88c5\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install numpy<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u7136\u540e\u5728Python\u811a\u672c\u4e2d\u5bfc\u5165numpy\u5e93\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import numpy as np<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li><strong>\u4f7f\u7528numpy\u8bfb\u53d6\u77e9\u9635<\/strong><\/li>\n<\/ol>\n<p><p>\u53ef\u4ee5\u4f7f\u7528<code>numpy.array()<\/code>\u51fd\u6570\u5c06\u8f93\u5165\u7684\u6570\u636e\u8f6c\u5316\u4e3anumpy\u77e9\u9635\u3002\u5047\u8bbe\u6211\u4eec\u8981\u8f93\u5165\u4e00\u4e2a3&#215;3\u7684\u77e9\u9635\uff0c\u7528\u6237\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u65b9\u5f0f\u8fdb\u884c\u8f93\u5165\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u4f7f\u7528numpy\u8bfb\u53d6\u77e9\u9635\u8f93\u5165<\/p>\n<p>matrix = np.array([[1, 2, 3], [4, 5, 6], [7, 8, 9]])<\/p>\n<p>print(matrix)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"3\">\n<li><strong>\u901a\u8fc7\u6807\u51c6\u8f93\u5165\u8bfb\u53d6\u77e9\u9635<\/strong><\/li>\n<\/ol>\n<p><p>\u5982\u679c\u77e9\u9635\u6570\u636e\u6765\u81ea\u7528\u6237\u7684\u6807\u51c6\u8f93\u5165\uff0c\u6211\u4eec\u53ef\u4ee5\u7ed3\u5408<code>numpy<\/code>\u548c<code>sys.stdin<\/code>\u6765\u8bfb\u53d6\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import numpy as np<\/p>\n<p>import sys<\/p>\n<h2><strong>\u8bfb\u53d6\u77e9\u9635\u7684\u884c\u6570\u548c\u5217\u6570<\/strong><\/h2>\n<p>n, m = map(int, input(&quot;Enter the number of rows and columns: &quot;).split())<\/p>\n<h2><strong>\u8bfb\u53d6\u77e9\u9635\u6570\u636e<\/strong><\/h2>\n<p>data = sys.stdin.read().strip().split()<\/p>\n<p>matrix = np.array(data, dtype=int).reshape(n, m)<\/p>\n<p>print(matrix)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u9002\u5408\u5904\u7406\u5927\u91cf\u6570\u636e\u8f93\u5165\uff0c\u80fd\u591f\u6709\u6548\u5730\u63d0\u9ad8\u7a0b\u5e8f\u7684\u8fd0\u884c\u6548\u7387\u3002<\/p>\n<\/p>\n<p><p>\u4e8c\u3001\u4f7f\u7528\u5217\u8868\u89e3\u6790\u8bfb\u53d6\u77e9\u9635<\/p>\n<\/p>\n<p><p>\u5bf9\u4e8e\u7b80\u5355\u7684\u77e9\u9635\u8f93\u5165\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528\u5217\u8868\u89e3\u6790\u6765\u5b9e\u73b0\uff0c\u8fd9\u79cd\u65b9\u6cd5\u975e\u5e38\u76f4\u89c2\u4e14\u6613\u4e8e\u7406\u89e3\u3002<\/p>\n<\/p>\n<ol>\n<li><strong>\u5217\u8868\u89e3\u6790\u5b9e\u73b0\u77e9\u9635\u8f93\u5165<\/strong><\/li>\n<\/ol>\n<p><p>\u901a\u8fc7\u5217\u8868\u89e3\u6790\uff0c\u53ef\u4ee5\u5feb\u901f\u6784\u5efa\u4e00\u4e2a\u77e9\u9635\u3002\u4f8b\u5982\uff0c\u7528\u6237\u8f93\u5165\u4e00\u4e2a3&#215;3\u7684\u77e9\u9635\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u4ee3\u7801\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u5217\u8868\u89e3\u6790\u8bfb\u53d6\u77e9\u9635\u8f93\u5165<\/p>\n<p>matrix = [list(map(int, input().split())) for _ in range(3)]<\/p>\n<p>print(matrix)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u4e0a\u9762\u7684\u4ee3\u7801\u4e2d\uff0c<code>map<\/code>\u51fd\u6570\u7528\u4e8e\u5c06\u8f93\u5165\u7684\u5b57\u7b26\u4e32\u8f6c\u6362\u4e3a\u6574\u6570\uff0c\u800c\u5217\u8868\u89e3\u6790\u5219\u7528\u4e8e\u6784\u9020\u77e9\u9635\u3002<\/p>\n<\/p>\n<ol start=\"2\">\n<li><strong>\u5904\u7406\u52a8\u6001\u5927\u5c0f\u7684\u77e9\u9635<\/strong><\/li>\n<\/ol>\n<p><p>\u5982\u679c\u77e9\u9635\u7684\u5927\u5c0f\u4e0d\u56fa\u5b9a\uff0c\u53ef\u4ee5\u8ba9\u7528\u6237\u8f93\u5165\u77e9\u9635\u7684\u5927\u5c0f\uff0c\u7136\u540e\u4f7f\u7528\u5217\u8868\u89e3\u6790\u8bfb\u53d6\u8f93\u5165\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u8bfb\u53d6\u77e9\u9635\u5927\u5c0f<\/p>\n<p>n, m = map(int, input(&quot;Enter the number of rows and columns: &quot;).split())<\/p>\n<h2><strong>\u8bfb\u53d6\u77e9\u9635\u6570\u636e<\/strong><\/h2>\n<p>matrix = [list(map(int, input().split())) for _ in range(n)]<\/p>\n<p>print(matrix)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u7b80\u5355\u6613\u7528\uff0c\u9002\u7528\u4e8e\u5c0f\u89c4\u6a21\u7684\u6570\u636e\u5904\u7406\u3002<\/p>\n<\/p>\n<p><p>\u4e09\u3001\u901a\u8fc7\u6587\u4ef6\u8bfb\u53d6\u77e9\u9635<\/p>\n<\/p>\n<p><p>\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u77e9\u9635\u6570\u636e\u53ef\u80fd\u5b58\u50a8\u5728\u6587\u4ef6\u4e2d\uff0c\u8fd9\u65f6\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u8bfb\u53d6\u6587\u4ef6\u6765\u83b7\u53d6\u77e9\u9635\u8f93\u5165\u3002<\/p>\n<\/p>\n<ol>\n<li><strong>\u8bfb\u53d6\u6587\u4ef6\u4e2d\u7684\u77e9\u9635\u6570\u636e<\/strong><\/li>\n<\/ol>\n<p><p>\u5047\u8bbe\u77e9\u9635\u6570\u636e\u4fdd\u5b58\u5728\u4e00\u4e2a\u6587\u672c\u6587\u4ef6\u4e2d\uff0c\u6bcf\u884c\u4ee3\u8868\u77e9\u9635\u7684\u4e00\u884c\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u4ee3\u7801\u8bfb\u53d6\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u8bfb\u53d6\u6587\u4ef6\u4e2d\u7684\u77e9\u9635\u6570\u636e<\/p>\n<p>with open(&#39;matrix.txt&#39;, &#39;r&#39;) as file:<\/p>\n<p>    matrix = [list(map(int, line.split())) for line in file]<\/p>\n<p>print(matrix)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li><strong>\u5904\u7406\u4e0d\u540c\u683c\u5f0f\u7684\u6587\u4ef6<\/strong><\/li>\n<\/ol>\n<p><p>\u6709\u65f6\u5019\u6587\u4ef6\u4e2d\u7684\u77e9\u9635\u6570\u636e\u53ef\u80fd\u4ee5\u4e0d\u540c\u7684\u683c\u5f0f\u5b58\u50a8\uff0c\u6bd4\u5982CSV\u683c\u5f0f\u3002\u53ef\u4ee5\u4f7f\u7528<code>csv<\/code>\u5e93\u8bfb\u53d6CSV\u6587\u4ef6\u4e2d\u7684\u77e9\u9635\u6570\u636e\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import csv<\/p>\n<h2><strong>\u8bfb\u53d6CSV\u6587\u4ef6\u4e2d\u7684\u77e9\u9635\u6570\u636e<\/strong><\/h2>\n<p>with open(&#39;matrix.csv&#39;, newline=&#39;&#39;) as csvfile:<\/p>\n<p>    reader = csv.reader(csvfile)<\/p>\n<p>    matrix = [list(map(int, row)) for row in reader]<\/p>\n<p>print(matrix)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u901a\u8fc7\u8fd9\u79cd\u65b9\u6cd5\uff0c\u53ef\u4ee5\u65b9\u4fbf\u5730\u5904\u7406\u5b58\u50a8\u5728\u4e0d\u540c\u683c\u5f0f\u6587\u4ef6\u4e2d\u7684\u77e9\u9635\u6570\u636e\u3002<\/p>\n<\/p>\n<p><p>\u56db\u3001\u6ce8\u610f\u4e8b\u9879<\/p>\n<\/p>\n<p><p>\u5728\u4f7f\u7528Python\u8bfb\u53d6\u77e9\u9635\u8f93\u5165\u65f6\uff0c\u6709\u4ee5\u4e0b\u51e0\u70b9\u9700\u8981\u6ce8\u610f\uff1a<\/p>\n<\/p>\n<ol>\n<li><strong>\u6570\u636e\u7c7b\u578b<\/strong><\/li>\n<\/ol>\n<p><p>\u786e\u4fdd\u8f93\u5165\u7684\u6570\u636e\u7c7b\u578b\u6b63\u786e\uff0c\u7279\u522b\u662f\u5728\u4f7f\u7528<code>map<\/code>\u51fd\u6570\u65f6\uff0c\u9700\u8981\u5c06\u5b57\u7b26\u4e32\u8f6c\u6362\u4e3a\u5408\u9002\u7684\u6570\u503c\u7c7b\u578b\u3002<\/p>\n<\/p>\n<ol start=\"2\">\n<li><strong>\u77e9\u9635\u7684\u7ef4\u5ea6<\/strong><\/li>\n<\/ol>\n<p><p>\u5728\u8bfb\u53d6\u77e9\u9635\u65f6\uff0c\u5fc5\u987b\u786e\u4fdd\u8f93\u5165\u7684\u6570\u636e\u80fd\u6b63\u786e\u5730\u6784\u6210\u4e00\u4e2a\u77e9\u9635\uff0c\u5373\u884c\u6570\u548c\u5217\u6570\u9700\u8981\u5339\u914d\u3002<\/p>\n<\/p>\n<ol start=\"3\">\n<li><strong>\u5f02\u5e38\u5904\u7406<\/strong><\/li>\n<\/ol>\n<p><p>\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u8f93\u5165\u7684\u6570\u636e\u53ef\u80fd\u5305\u542b\u5f02\u5e38\u60c5\u51b5\uff0c\u4f8b\u5982\u7f3a\u5931\u503c\u6216\u683c\u5f0f\u9519\u8bef\u3002\u8fd9\u65f6\u9700\u8981\u6dfb\u52a0\u5f02\u5e38\u5904\u7406\u673a\u5236\uff0c\u4ee5\u786e\u4fdd\u7a0b\u5e8f\u7684\u9c81\u68d2\u6027\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">try:<\/p>\n<p>    # \u8bfb\u53d6\u77e9\u9635\u6570\u636e<\/p>\n<p>    matrix = [list(map(int, input().split())) for _ in range(n)]<\/p>\n<p>except ValueError as e:<\/p>\n<p>    print(&quot;Input error:&quot;, e)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u901a\u8fc7\u4ee5\u4e0a\u8fd9\u4e9b\u65b9\u6cd5\u548c\u6280\u5de7\uff0c\u53ef\u4ee5\u7075\u6d3b\u9ad8\u6548\u5730\u5728Python\u4e2d\u8bfb\u53d6\u77e9\u9635\u8f93\u5165\uff0c\u6ee1\u8db3\u4e0d\u540c\u5e94\u7528\u573a\u666f\u7684\u9700\u6c42\u3002\u65e0\u8bba\u662f\u4f7f\u7528numpy\u5e93\u5904\u7406\u5927\u578b\u6570\u636e\uff0c\u8fd8\u662f\u901a\u8fc7\u5217\u8868\u89e3\u6790\u5feb\u901f\u8bfb\u53d6\u7528\u6237\u8f93\u5165\uff0c\u6291\u6216\u662f\u4ece\u6587\u4ef6\u4e2d\u83b7\u53d6\u77e9\u9635\u6570\u636e\uff0cPython\u90fd\u80fd\u63d0\u4f9b\u7b80\u6d01\u800c\u5f3a\u5927\u7684\u89e3\u51b3\u65b9\u6848\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u8bfb\u53d6\u7528\u6237\u8f93\u5165\u7684\u77e9\u9635\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u5d4c\u5957\u5217\u8868\u6765\u8868\u793a\u77e9\u9635\u3002\u7528\u6237\u53ef\u4ee5\u901a\u8fc7\u8f93\u5165\u6bcf\u4e00\u884c\u7684\u5143\u7d20\uff0c\u4f7f\u7528\u7a7a\u683c\u5206\u9694\uff0c\u6765\u6784\u5efa\u77e9\u9635\u3002\u53ef\u4ee5\u4f7f\u7528<code>input()<\/code>\u51fd\u6570\u83b7\u53d6\u7528\u6237\u8f93\u5165\uff0c\u5e76\u901a\u8fc7<code>split()<\/code>\u65b9\u6cd5\u5c06\u5b57\u7b26\u4e32\u8f6c\u6362\u4e3a\u5217\u8868\u3002\u63a5\u7740\uff0c\u518d\u5c06\u8fd9\u4e9b\u5217\u8868\u7ec4\u5408\u6210\u4e00\u4e2a\u4e8c\u7ef4\u5217\u8868\u6765\u5f62\u6210\u77e9\u9635\u3002<\/p>\n<p><strong>\u53ef\u4ee5\u901a\u8fc7\u54ea\u4e9b\u65b9\u6cd5\u8bfb\u53d6\u6587\u4ef6\u4e2d\u7684\u77e9\u9635\u6570\u636e\uff1f<\/strong><br \/>\u8bfb\u53d6\u6587\u4ef6\u4e2d\u7684\u77e9\u9635\u6570\u636e\uff0c\u6700\u5e38\u7528\u7684\u65b9\u6cd5\u662f\u4f7f\u7528<code>numpy<\/code>\u5e93\u3002\u53ef\u4ee5\u5229\u7528<code>numpy.loadtxt()<\/code>\u6216<code>numpy.genfromtxt()<\/code>\u51fd\u6570\u8bfb\u53d6\u6587\u672c\u6587\u4ef6\u4e2d\u7684\u77e9\u9635\u3002\u8fd9\u4e9b\u65b9\u6cd5\u80fd\u591f\u81ea\u52a8\u8bc6\u522b\u6570\u636e\u7684\u683c\u5f0f\uff0c\u5e76\u5c06\u5176\u8f6c\u6362\u4e3aNumPy\u6570\u7ec4\uff0c\u4fbf\u4e8e\u540e\u7eed\u7684\u6570\u5b66\u8fd0\u7b97\u548c\u5904\u7406\u3002<\/p>\n<p><strong>\u5982\u4f55\u5904\u7406\u4e0d\u89c4\u5219\u77e9\u9635\u8f93\u5165\uff1f<\/strong><br \/>\u5904\u7406\u4e0d\u89c4\u5219\u77e9\u9635\u8f93\u5165\u65f6\uff0c\u9700\u8981\u5148\u786e\u8ba4\u77e9\u9635\u7684\u884c\u6570\u548c\u5217\u6570\u662f\u5426\u4e00\u81f4\u3002\u5982\u679c\u7528\u6237\u8f93\u5165\u7684\u77e9\u9635\u884c\u6570\u4e0d\u76f8\u540c\uff0c\u53ef\u4ee5\u8003\u8651\u4f7f\u7528\u5217\u8868\u7684\u5217\u8868\u5f62\u5f0f\u5b58\u50a8\u6570\u636e\uff0c\u5e76\u5728\u540e\u7eed\u64cd\u4f5c\u4e2d\u8fdb\u884c\u9002\u5f53\u7684\u9519\u8bef\u5904\u7406\u3002\u4f8b\u5982\uff0c\u53ef\u4ee5\u5728\u8f93\u5165\u65f6\u8bb0\u5f55\u6bcf\u4e00\u884c\u7684\u957f\u5ea6\uff0c\u5e76\u5728\u8ba1\u7b97\u6216\u5904\u7406\u65f6\u6839\u636e\u6700\u957f\u884c\u8fdb\u884c\u586b\u5145\uff0c\u4ee5\u4fdd\u8bc1\u64cd\u4f5c\u7684\u987a\u5229\u8fdb\u884c\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Python\u8bfb\u53d6\u77e9\u9635\u8f93\u5165\u7684\u5e38\u7528\u65b9\u6cd5\u6709\uff1a\u4f7f\u7528numpy\u5e93\u8bfb\u53d6\u3001\u4f7f\u7528\u5217\u8868\u89e3\u6790\u8bfb\u53d6\u3001\u4ee5\u53ca\u901a\u8fc7\u6587\u4ef6\u8bfb\u53d6\u3002 \u5728\u8fd9\u51e0\u79cd\u65b9\u6cd5 [&hellip;]","protected":false},"author":3,"featured_media":1002827,"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\/1002812"}],"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=1002812"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1002812\/revisions"}],"predecessor-version":[{"id":1002830,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1002812\/revisions\/1002830"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1002827"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1002812"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1002812"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1002812"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}