{"id":1035532,"date":"2024-12-31T11:59:31","date_gmt":"2024-12-31T03:59:31","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1035532.html"},"modified":"2024-12-31T11:59:34","modified_gmt":"2024-12-31T03:59:34","slug":"%e5%a6%82%e4%bd%95%e7%94%9f%e6%88%90%e6%9c%89%e7%89%b9%e5%ae%9a%e5%80%bc%e7%9a%84%e7%9f%a9%e9%98%b5python","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1035532.html","title":{"rendered":"\u5982\u4f55\u751f\u6210\u6709\u7279\u5b9a\u503c\u7684\u77e9\u9635python"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-docs.pingcode.com\/wp-content\/uploads\/2024\/12\/a70edb32-618b-4eb1-a8cf-ffadbef2b67a.webp?x-oss-process=image\/auto-orient,1\/format,webp\" alt=\"\u5982\u4f55\u751f\u6210\u6709\u7279\u5b9a\u503c\u7684\u77e9\u9635python\" \/><\/p>\n<p><p> <strong>\u4f7f\u7528NumPy\u5e93\u751f\u6210\u6709\u7279\u5b9a\u503c\u7684\u77e9\u9635<\/strong><\/p>\n<\/p>\n<p><p><strong>\u5728Python\u4e2d\u751f\u6210\u6709\u7279\u5b9a\u503c\u7684\u77e9\u9635\uff0c\u53ef\u4ee5\u4f7f\u7528NumPy\u5e93\u3001\u6307\u5b9a\u77e9\u9635\u7684\u5f62\u72b6\u3001\u586b\u5145\u7279\u5b9a\u7684\u503c\u3002<\/strong><\/p>\n<\/p>\n<p><p>NumPy\u662fPython\u4e2d\u4e00\u4e2a\u5f3a\u5927\u4e14\u7075\u6d3b\u7684\u79d1\u5b66\u8ba1\u7b97\u5e93\uff0c\u80fd\u591f\u65b9\u4fbf\u5730\u5904\u7406\u5927\u89c4\u6a21\u7684\u77e9\u9635\u548c\u6570\u7ec4\u64cd\u4f5c\u3002\u901a\u8fc7\u4f7f\u7528NumPy\u5e93\uff0c\u6211\u4eec\u53ef\u4ee5\u8f7b\u677e\u521b\u5efa\u548c\u64cd\u4f5c\u5404\u79cd\u7c7b\u578b\u7684\u77e9\u9635\uff0c\u5e76\u4e14\u53ef\u4ee5\u4e3a\u77e9\u9635\u586b\u5145\u7279\u5b9a\u7684\u503c\u3002\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528NumPy\u5e93\u751f\u6210\u5177\u6709\u7279\u5b9a\u503c\u7684\u77e9\u9635\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u5b89\u88c5NumPy\u5e93<\/p>\n<\/p>\n<p><p>\u5728\u5f00\u59cb\u4e4b\u524d\uff0c\u9700\u8981\u786e\u4fdd\u5df2\u7ecf\u5b89\u88c5\u4e86NumPy\u5e93\u3002\u5982\u679c\u5c1a\u672a\u5b89\u88c5\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u8fdb\u884c\u5b89\u88c5\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">pip install numpy<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4e8c\u3001\u5bfc\u5165NumPy\u5e93<\/p>\n<\/p>\n<p><p>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u53ef\u4ee5\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<p><p>\u4e09\u3001\u521b\u5efa\u5177\u6709\u7279\u5b9a\u503c\u7684\u77e9\u9635<\/p>\n<\/p>\n<ol>\n<li><strong>\u521b\u5efa\u5168\u96f6\u77e9\u9635<\/strong><\/li>\n<\/ol>\n<p><p>\u8981\u521b\u5efa\u4e00\u4e2a\u5168\u96f6\u77e9\u9635\uff0c\u53ef\u4ee5\u4f7f\u7528<code>numpy.zeros<\/code>\u51fd\u6570\u3002\u8be5\u51fd\u6570\u9700\u8981\u4e24\u4e2a\u53c2\u6570\uff1a\u77e9\u9635\u7684\u5f62\u72b6\u548c\u6570\u636e\u7c7b\u578b\u3002\u5f62\u72b6\u4ee5\u4e00\u4e2a\u5143\u7ec4\u7684\u5f62\u5f0f\u63d0\u4f9b\uff0c\u6570\u636e\u7c7b\u578b\u9ed8\u8ba4\u4e3a<code>float<\/code>\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u521b\u5efa\u4e00\u4e2a3x3\u7684\u5168\u96f6\u77e9\u9635<\/p>\n<p>zero_matrix = np.zeros((3, 3))<\/p>\n<p>print(zero_matrix)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li><strong>\u521b\u5efa\u5168\u4e00\u77e9\u9635<\/strong><\/li>\n<\/ol>\n<p><p>\u7c7b\u4f3c\u5730\uff0c\u53ef\u4ee5\u4f7f\u7528<code>numpy.ones<\/code>\u51fd\u6570\u521b\u5efa\u4e00\u4e2a\u5168\u4e00\u77e9\u9635\u3002\u8be5\u51fd\u6570\u7684\u53c2\u6570\u4e0e<code>numpy.zeros<\/code>\u76f8\u540c\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u521b\u5efa\u4e00\u4e2a3x3\u7684\u5168\u4e00\u77e9\u9635<\/p>\n<p>one_matrix = np.ones((3, 3))<\/p>\n<p>print(one_matrix)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"3\">\n<li><strong>\u521b\u5efa\u586b\u5145\u7279\u5b9a\u503c\u7684\u77e9\u9635<\/strong><\/li>\n<\/ol>\n<p><p>\u8981\u521b\u5efa\u4e00\u4e2a\u586b\u5145\u7279\u5b9a\u503c\u7684\u77e9\u9635\uff0c\u53ef\u4ee5\u4f7f\u7528<code>numpy.full<\/code>\u51fd\u6570\u3002\u8be5\u51fd\u6570\u9700\u8981\u4e09\u4e2a\u53c2\u6570\uff1a\u77e9\u9635\u7684\u5f62\u72b6\u3001\u586b\u5145\u503c\u548c\u6570\u636e\u7c7b\u578b\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u521b\u5efa\u4e00\u4e2a3x3\u7684\u77e9\u9635\uff0c\u6240\u6709\u5143\u7d20\u90fd\u4e3a7<\/p>\n<p>value_matrix = np.full((3, 3), 7)<\/p>\n<p>print(value_matrix)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"4\">\n<li><strong>\u521b\u5efa\u5355\u4f4d\u77e9\u9635<\/strong><\/li>\n<\/ol>\n<p><p>\u5355\u4f4d\u77e9\u9635\u662f\u4e00\u79cd\u7279\u6b8a\u7684\u77e9\u9635\uff0c\u5176\u5bf9\u89d2\u7ebf\u5143\u7d20\u4e3a1\uff0c\u5176\u4f59\u5143\u7d20\u4e3a0\u3002\u53ef\u4ee5\u4f7f\u7528<code>numpy.eye<\/code>\u51fd\u6570\u521b\u5efa\u5355\u4f4d\u77e9\u9635\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u521b\u5efa\u4e00\u4e2a3x3\u7684\u5355\u4f4d\u77e9\u9635<\/p>\n<p>identity_matrix = np.eye(3)<\/p>\n<p>print(identity_matrix)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u56db\u3001\u81ea\u5b9a\u4e49\u77e9\u9635\u751f\u6210\u51fd\u6570<\/p>\n<\/p>\n<p><p>\u6709\u65f6\u6211\u4eec\u53ef\u80fd\u9700\u8981\u521b\u5efa\u4e00\u4e2a\u5177\u6709\u81ea\u5b9a\u4e49\u903b\u8f91\u7684\u77e9\u9635\u3002\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u53ef\u4ee5\u7f16\u5199\u4e00\u4e2a\u81ea\u5b9a\u4e49\u51fd\u6570\u6765\u751f\u6210\u77e9\u9635\u3002\u4f8b\u5982\uff0c\u751f\u6210\u4e00\u4e2a\u5bf9\u89d2\u7ebf\u5143\u7d20\u4e3a\u6307\u5b9a\u503c\uff0c\u5176\u4ed6\u5143\u7d20\u4e3a\u96f6\u7684\u77e9\u9635\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def create_custom_matrix(n, value):<\/p>\n<p>    matrix = np.zeros((n, n))<\/p>\n<p>    np.fill_diagonal(matrix, value)<\/p>\n<p>    return matrix<\/p>\n<h2><strong>\u521b\u5efa\u4e00\u4e2a5x5\u7684\u77e9\u9635\uff0c\u5bf9\u89d2\u7ebf\u5143\u7d20\u4e3a9<\/strong><\/h2>\n<p>custom_matrix = create_custom_matrix(5, 9)<\/p>\n<p>print(custom_matrix)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4e94\u3001\u4f7f\u7528\u968f\u673a\u6570\u751f\u6210\u77e9\u9635<\/p>\n<\/p>\n<p><p>\u9664\u4e86\u56fa\u5b9a\u503c\u7684\u77e9\u9635\uff0c\u6211\u4eec\u8fd8\u53ef\u4ee5\u4f7f\u7528NumPy\u751f\u6210\u968f\u673a\u6570\u77e9\u9635\u3002NumPy\u63d0\u4f9b\u4e86\u591a\u79cd\u968f\u673a\u6570\u751f\u6210\u51fd\u6570\uff0c\u4f8b\u5982<code>numpy.random.rand<\/code>\u3001<code>numpy.random.randint<\/code>\u7b49\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u521b\u5efa\u4e00\u4e2a3x3\u7684\u968f\u673a\u6d6e\u70b9\u6570\u77e9\u9635\uff08\u5747\u5300\u5206\u5e03\u5728[0, 1)\u533a\u95f4\uff09<\/p>\n<p>random_matrix = np.random.rand(3, 3)<\/p>\n<p>print(random_matrix)<\/p>\n<h2><strong>\u521b\u5efa\u4e00\u4e2a3x3\u7684\u968f\u673a\u6574\u6570\u77e9\u9635\uff08\u53d6\u503c\u8303\u56f4\u5728[0, 10)\u4e4b\u95f4\uff09<\/strong><\/h2>\n<p>random_int_matrix = np.random.randint(0, 10, size=(3, 3))<\/p>\n<p>print(random_int_matrix)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u516d\u3001\u77e9\u9635\u64cd\u4f5c\u548c\u53d8\u6362<\/p>\n<\/p>\n<p><p>\u751f\u6210\u77e9\u9635\u540e\uff0c\u901a\u5e38\u9700\u8981\u5bf9\u77e9\u9635\u8fdb\u884c\u5404\u79cd\u64cd\u4f5c\u548c\u53d8\u6362\u3002NumPy\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u51fd\u6570\u7528\u4e8e\u77e9\u9635\u64cd\u4f5c\uff0c\u4f8b\u5982\u77e9\u9635\u8f6c\u7f6e\u3001\u77e9\u9635\u4e58\u6cd5\u3001\u6c42\u9006\u7b49\u3002<\/p>\n<\/p>\n<ol>\n<li><strong>\u77e9\u9635\u8f6c\u7f6e<\/strong><\/li>\n<\/ol>\n<p><p>\u53ef\u4ee5\u4f7f\u7528<code>numpy.transpose<\/code>\u51fd\u6570\u6216\u77e9\u9635\u5bf9\u8c61\u7684<code>T<\/code>\u5c5e\u6027\u6765\u8f6c\u7f6e\u77e9\u9635\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u539f\u59cb\u77e9\u9635<\/p>\n<p>matrix = np.array([[1, 2, 3], [4, 5, 6], [7, 8, 9]])<\/p>\n<h2><strong>\u77e9\u9635\u8f6c\u7f6e<\/strong><\/h2>\n<p>transposed_matrix = np.transpose(matrix)<\/p>\n<h2><strong>\u6216\u8005<\/strong><\/h2>\n<p>transposed_matrix = matrix.T<\/p>\n<p>print(transposed_matrix)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li><strong>\u77e9\u9635\u4e58\u6cd5<\/strong><\/li>\n<\/ol>\n<p><p>\u77e9\u9635\u4e58\u6cd5\u53ef\u4ee5\u4f7f\u7528<code>numpy.dot<\/code>\u51fd\u6570\u6216\u77e9\u9635\u5bf9\u8c61\u7684<code>@<\/code>\u8fd0\u7b97\u7b26\u6765\u5b9e\u73b0\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u4e24\u4e2a\u77e9\u9635\u76f8\u4e58<\/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>\u4f7f\u7528numpy.dot\u51fd\u6570<\/strong><\/h2>\n<p>product_matrix = np.dot(matrix_a, matrix_b)<\/p>\n<h2><strong>\u6216\u8005\u4f7f\u7528@\u8fd0\u7b97\u7b26<\/strong><\/h2>\n<p>product_matrix = matrix_a @ matrix_b<\/p>\n<p>print(product_matrix)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"3\">\n<li><strong>\u77e9\u9635\u6c42\u9006<\/strong><\/li>\n<\/ol>\n<p><p>\u53ef\u4ee5\u4f7f\u7528<code>numpy.linalg.inv<\/code>\u51fd\u6570\u6765\u6c42\u89e3\u77e9\u9635\u7684\u9006\u77e9\u9635\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u53ef\u9006\u77e9\u9635<\/p>\n<p>invertible_matrix = np.array([[1, 2], [3, 4]])<\/p>\n<h2><strong>\u6c42\u9006\u77e9\u9635<\/strong><\/h2>\n<p>inverse_matrix = np.linalg.inv(invertible_matrix)<\/p>\n<p>print(inverse_matrix)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"4\">\n<li><strong>\u77e9\u9635\u884c\u5217\u5f0f<\/strong><\/li>\n<\/ol>\n<p><p>\u53ef\u4ee5\u4f7f\u7528<code>numpy.linalg.det<\/code>\u51fd\u6570\u6765\u8ba1\u7b97\u77e9\u9635\u7684\u884c\u5217\u5f0f\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u77e9\u9635<\/p>\n<p>matrix = np.array([[1, 2], [3, 4]])<\/p>\n<h2><strong>\u8ba1\u7b97\u884c\u5217\u5f0f<\/strong><\/h2>\n<p>determinant = np.linalg.det(matrix)<\/p>\n<p>print(determinant)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4e03\u3001\u603b\u7ed3<\/p>\n<\/p>\n<p><p>\u901a\u8fc7\u4e0a\u9762\u7684\u4ecb\u7ecd\uff0c\u6211\u4eec\u5b66\u4e60\u4e86\u5982\u4f55\u4f7f\u7528NumPy\u5e93\u751f\u6210\u6709\u7279\u5b9a\u503c\u7684\u77e9\u9635\uff0c\u5305\u62ec\u5168\u96f6\u77e9\u9635\u3001\u5168\u4e00\u77e9\u9635\u3001\u586b\u5145\u7279\u5b9a\u503c\u7684\u77e9\u9635\u3001\u5355\u4f4d\u77e9\u9635\u4ee5\u53ca\u968f\u673a\u6570\u77e9\u9635\u3002\u540c\u65f6\uff0c\u8fd8\u4ecb\u7ecd\u4e86\u5982\u4f55\u8fdb\u884c\u77e9\u9635\u7684\u57fa\u672c\u64cd\u4f5c\u548c\u53d8\u6362\uff0c\u5982\u8f6c\u7f6e\u3001\u4e58\u6cd5\u3001\u6c42\u9006\u548c\u884c\u5217\u5f0f\u8ba1\u7b97\u3002<strong>NumPy\u5e93\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u51fd\u6570\u548c\u5de5\u5177\uff0c\u4f7f\u5f97\u5728Python\u4e2d\u5904\u7406\u77e9\u9635\u53d8\u5f97\u975e\u5e38\u65b9\u4fbf\u548c\u9ad8\u6548\u3002<\/strong>\u65e0\u8bba\u662f\u79d1\u5b66\u8ba1\u7b97\u3001\u6570\u636e\u5206\u6790\u8fd8\u662f<a href=\"https:\/\/docs.pingcode.com\/ask\/59192.html\" target=\"_blank\">\u673a\u5668\u5b66\u4e60<\/a>\uff0cNumPy\u90fd\u662f\u4e00\u4e2a\u4e0d\u53ef\u6216\u7f3a\u7684\u91cd\u8981\u5de5\u5177\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\u5305\u542b\u7279\u5b9a\u503c\u7684\u77e9\u9635\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528NumPy\u5e93\u8f7b\u677e\u521b\u5efa\u5305\u542b\u7279\u5b9a\u503c\u7684\u77e9\u9635\u3002\u9996\u5148\uff0c\u60a8\u9700\u8981\u5b89\u88c5NumPy\u5e93\uff08\u5982\u679c\u5c1a\u672a\u5b89\u88c5\uff09\u3002\u7136\u540e\uff0c\u4f7f\u7528<code>np.full()<\/code>\u51fd\u6570\u53ef\u4ee5\u521b\u5efa\u4e00\u4e2a\u6307\u5b9a\u5f62\u72b6\u5e76\u586b\u5145\u7279\u5b9a\u503c\u7684\u77e9\u9635\u3002\u793a\u4f8b\u5982\u4e0b\uff1a<\/p>\n<pre><code class=\"language-python\">import numpy as np\n\n# \u521b\u5efa\u4e00\u4e2a3x3\u7684\u77e9\u9635\uff0c\u6240\u6709\u5143\u7d20\u90fd\u4e3a5\nmatrix = np.full((3, 3), 5)\nprint(matrix)\n<\/code><\/pre>\n<p>\u8fd9\u6837\u5c31\u53ef\u4ee5\u521b\u5efa\u4e00\u4e2a3&#215;3\u7684\u77e9\u9635\uff0c\u6240\u6709\u5143\u7d20\u5747\u4e3a5\u3002<\/p>\n<p><strong>\u5982\u4f55\u4f7f\u7528\u5217\u8868\u63a8\u5bfc\u5f0f\u751f\u6210\u7279\u5b9a\u503c\u7684\u77e9\u9635\uff1f<\/strong><br \/>\u9664\u4e86\u4f7f\u7528NumPy\uff0cPython\u7684\u5217\u8868\u63a8\u5bfc\u5f0f\u4e5f\u662f\u4e00\u79cd\u521b\u5efa\u7279\u5b9a\u503c\u77e9\u9635\u7684\u6709\u6548\u65b9\u6cd5\u3002\u60a8\u53ef\u4ee5\u901a\u8fc7\u5d4c\u5957\u5217\u8868\u63a8\u5bfc\u5f0f\u6765\u521b\u5efa\u3002\u4f8b\u5982\uff0c\u4ee5\u4e0b\u4ee3\u7801\u5c06\u751f\u6210\u4e00\u4e2a4&#215;4\u7684\u77e9\u9635\uff0c\u6240\u6709\u5143\u7d20\u5747\u4e3a7\uff1a<\/p>\n<pre><code class=\"language-python\">matrix = [[7 for _ in range(4)] for _ in range(4)]\nprint(matrix)\n<\/code><\/pre>\n<p>\u8fd9\u79cd\u65b9\u6cd5\u7075\u6d3b\u4e14\u6613\u4e8e\u7406\u89e3\uff0c\u9002\u5408\u5904\u7406\u8f83\u5c0f\u7684\u77e9\u9635\u3002<\/p>\n<p><strong>\u5982\u4f55\u5feb\u901f\u751f\u6210\u4e0d\u540c\u7c7b\u578b\u7684\u77e9\u9635\uff0c\u5305\u62ec\u96f6\u77e9\u9635\u6216\u5355\u4f4d\u77e9\u9635\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0cNumPy\u5e93\u63d0\u4f9b\u4e86\u591a\u79cd\u65b9\u6cd5\u6765\u751f\u6210\u7279\u5b9a\u7c7b\u578b\u7684\u77e9\u9635\u3002\u4f8b\u5982\uff0c\u53ef\u4ee5\u4f7f\u7528<code>np.zeros()<\/code>\u521b\u5efa\u4e00\u4e2a\u96f6\u77e9\u9635\uff0c\u4f7f\u7528<code>np.eye()<\/code>\u751f\u6210\u5355\u4f4d\u77e9\u9635\u3002\u4ee5\u4e0b\u662f\u793a\u4f8b\u4ee3\u7801\uff1a<\/p>\n<pre><code class=\"language-python\"># \u521b\u5efa\u4e00\u4e2a3x3\u7684\u96f6\u77e9\u9635\nzero_matrix = np.zeros((3, 3))\nprint(zero_matrix)\n\n# \u521b\u5efa\u4e00\u4e2a3x3\u7684\u5355\u4f4d\u77e9\u9635\nidentity_matrix = np.eye(3)\nprint(identity_matrix)\n<\/code><\/pre>\n<p>\u8fd9\u79cd\u65b9\u5f0f\u4f7f\u5f97\u77e9\u9635\u7684\u521d\u59cb\u5316\u66f4\u52a0\u9ad8\u6548\u548c\u65b9\u4fbf\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u4f7f\u7528NumPy\u5e93\u751f\u6210\u6709\u7279\u5b9a\u503c\u7684\u77e9\u9635 \u5728Python\u4e2d\u751f\u6210\u6709\u7279\u5b9a\u503c\u7684\u77e9\u9635\uff0c\u53ef\u4ee5\u4f7f\u7528NumPy\u5e93\u3001\u6307\u5b9a\u77e9\u9635\u7684\u5f62\u72b6\u3001 [&hellip;]","protected":false},"author":3,"featured_media":1035534,"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\/1035532"}],"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=1035532"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1035532\/revisions"}],"predecessor-version":[{"id":1035535,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1035532\/revisions\/1035535"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1035534"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1035532"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1035532"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1035532"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}