{"id":1059830,"date":"2024-12-31T15:28:43","date_gmt":"2024-12-31T07:28:43","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1059830.html"},"modified":"2024-12-31T15:28:46","modified_gmt":"2024-12-31T07:28:46","slug":"python%e5%a6%82%e4%bd%95%e5%88%9d%e5%a7%8b%e5%8c%96%e6%95%b0%e7%bb%84%e4%b8%ba0","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1059830.html","title":{"rendered":"python\u5982\u4f55\u521d\u59cb\u5316\u6570\u7ec4\u4e3a0"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-docs.pingcode.com\/wp-content\/uploads\/2024\/12\/6e2846bb-fe83-483d-8b4e-13434055ba73.webp?x-oss-process=image\/auto-orient,1\/format,webp\" alt=\"python\u5982\u4f55\u521d\u59cb\u5316\u6570\u7ec4\u4e3a0\" \/><\/p>\n<p><p> <strong>Python\u521d\u59cb\u5316\u6570\u7ec4\u4e3a0\u7684\u65b9\u6cd5\u6709\u591a\u79cd\uff1a\u4f7f\u7528\u5217\u8868\u63a8\u5bfc\u5f0f\u3001\u4f7f\u7528\u4e58\u6cd5\u8fd0\u7b97\u7b26\u3001\u4f7f\u7528NumPy\u5e93\u3002<\/strong>\u5176\u4e2d\uff0c\u4f7f\u7528NumPy\u5e93\u662f\u4e00\u79cd\u975e\u5e38\u9ad8\u6548\u7684\u65b9\u6cd5\uff0c\u5c24\u5176\u9002\u7528\u4e8e\u5904\u7406\u5927\u89c4\u6a21\u6570\u7ec4\u3002\u4e0b\u9762\u8be6\u7ec6\u4ecb\u7ecd\u4e00\u79cd\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u4f7f\u7528\u5217\u8868\u63a8\u5bfc\u5f0f<\/h3>\n<\/p>\n<p><p>\u5217\u8868\u63a8\u5bfc\u5f0f\u662f\u4e00\u79cd\u7b80\u6d01\u4e14\u9ad8\u6548\u7684Python\u8bed\u6cd5\uff0c\u53ef\u4ee5\u7528\u4e8e\u5feb\u901f\u751f\u6210\u5217\u8868\u3002\u4f7f\u7528\u5217\u8868\u63a8\u5bfc\u5f0f\u521d\u59cb\u5316\u6570\u7ec4\u4e3a0\u7684\u65b9\u6cd5\u5982\u4e0b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u521d\u59cb\u5316\u4e00\u4e2a\u957f\u5ea6\u4e3a10\u7684\u6570\u7ec4\uff0c\u5168\u90e8\u5143\u7d20\u4e3a0<\/p>\n<p>array = [0 for _ in range(10)]<\/p>\n<p>print(array)  # \u8f93\u51fa: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u7684\u4f18\u70b9\u662f\u4ee3\u7801\u7b80\u6d01\uff0c\u9002\u7528\u4e8e\u5404\u79cd\u5927\u5c0f\u7684\u6570\u7ec4\uff0c\u5e76\u4e14\u53ef\u4ee5\u8f7b\u677e\u4fee\u6539\u4e3a\u5176\u4ed6\u521d\u59cb\u503c\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u4f7f\u7528\u4e58\u6cd5\u8fd0\u7b97\u7b26<\/h3>\n<\/p>\n<p><p>\u4f7f\u7528\u4e58\u6cd5\u8fd0\u7b97\u7b26\u662f\u53e6\u4e00\u79cd\u5feb\u901f\u521d\u59cb\u5316\u6570\u7ec4\u7684\u65b9\u6cd5\u3002\u5b83\u5229\u7528Python\u5217\u8868\u7684\u53ef\u91cd\u590d\u6027\u7279\u6027\uff0c\u751f\u6210\u4e00\u4e2a\u6307\u5b9a\u957f\u5ea6\u7684\u6570\u7ec4\uff0c\u5168\u90e8\u5143\u7d20\u4e3a0\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u521d\u59cb\u5316\u4e00\u4e2a\u957f\u5ea6\u4e3a10\u7684\u6570\u7ec4\uff0c\u5168\u90e8\u5143\u7d20\u4e3a0<\/p>\n<p>array = [0] * 10<\/p>\n<p>print(array)  # \u8f93\u51fa: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u7684\u4f18\u70b9\u662f\u4ee3\u7801\u66f4\u52a0\u7b80\u6d01\uff0c\u4f46\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u8fd9\u79cd\u65b9\u6cd5\u751f\u6210\u7684\u6570\u7ec4\u662f\u6d45\u62f7\u8d1d\uff0c\u5bf9\u4e8e\u591a\u7ef4\u6570\u7ec4\u53ef\u80fd\u4f1a\u51fa\u73b0\u95ee\u9898\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001\u4f7f\u7528NumPy\u5e93<\/h3>\n<\/p>\n<p><p>NumPy\u662fPython\u4e2d\u5904\u7406\u6570\u7ec4\u548c\u77e9\u9635\u7684\u5f3a\u5927\u5e93\u3002\u5b83\u63d0\u4f9b\u4e86\u8bb8\u591a\u9ad8\u6548\u7684\u6570\u7ec4\u64cd\u4f5c\u51fd\u6570\uff0c\u5176\u4e2d\u5305\u62ec\u521d\u59cb\u5316\u6570\u7ec4\u4e3a0\u7684\u65b9\u6cd5\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import numpy as np<\/p>\n<h2><strong>\u521d\u59cb\u5316\u4e00\u4e2a\u957f\u5ea6\u4e3a10\u7684\u6570\u7ec4\uff0c\u5168\u90e8\u5143\u7d20\u4e3a0<\/strong><\/h2>\n<p>array = np.zeros(10)<\/p>\n<p>print(array)  # \u8f93\u51fa: [0. 0. 0. 0. 0. 0. 0. 0. 0. 0.]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4f7f\u7528NumPy\u7684\u4f18\u70b9\u662f\u5176\u9ad8\u6548\u6027\u548c\u529f\u80fd\u4e30\u5bcc\uff0c\u9002\u7528\u4e8e\u5927\u89c4\u6a21\u6570\u7ec4\u548c\u590d\u6742\u7684\u6570\u7ec4\u64cd\u4f5c\u3002\u6b64\u5916\uff0cNumPy\u4e2d\u7684\u6570\u7ec4\u662f\u591a\u7ef4\u7684\uff0c\u53ef\u4ee5\u8f7b\u677e\u521d\u59cb\u5316\u591a\u7ef4\u6570\u7ec4\u4e3a0\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u521d\u59cb\u5316\u4e00\u4e2a3x3\u7684\u4e8c\u7ef4\u6570\u7ec4\uff0c\u5168\u90e8\u5143\u7d20\u4e3a0<\/p>\n<p>array_2d = np.zeros((3, 3))<\/p>\n<p>print(array_2d)<\/p>\n<h2><strong>\u8f93\u51fa:<\/strong><\/h2>\n<h2><strong>[[0. 0. 0.]<\/strong><\/h2>\n<h2><strong> [0. 0. 0.]<\/strong><\/h2>\n<h2><strong> [0. 0. 0.]]<\/strong><\/h2>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u56db\u3001\u4f7f\u7528\u5faa\u73af<\/h3>\n<\/p>\n<p><p>\u867d\u7136\u4e0d\u5982\u524d\u9762\u7684\u65b9\u6cd5\u7b80\u6d01\uff0c\u4f46\u4f7f\u7528\u5faa\u73af\u4e5f\u662f\u4e00\u79cd\u521d\u59cb\u5316\u6570\u7ec4\u7684\u65b9\u6cd5\uff0c\u7279\u522b\u662f\u5f53\u9700\u8981\u8fdb\u884c\u590d\u6742\u7684\u521d\u59cb\u5316\u65f6\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u521d\u59cb\u5316\u4e00\u4e2a\u957f\u5ea6\u4e3a10\u7684\u6570\u7ec4\uff0c\u5168\u90e8\u5143\u7d20\u4e3a0<\/p>\n<p>array = []<\/p>\n<p>for i in range(10):<\/p>\n<p>    array.append(0)<\/p>\n<p>print(array)  # \u8f93\u51fa: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u7684\u4f18\u70b9\u662f\u7075\u6d3b\u6027\u9ad8\uff0c\u53ef\u4ee5\u5728\u521d\u59cb\u5316\u7684\u8fc7\u7a0b\u4e2d\u8fdb\u884c\u66f4\u591a\u7684\u64cd\u4f5c\u3002<\/p>\n<\/p>\n<p><h3>\u4e94\u3001\u521d\u59cb\u5316\u591a\u7ef4\u6570\u7ec4<\/h3>\n<\/p>\n<p><p>\u5bf9\u4e8e\u591a\u7ef4\u6570\u7ec4\uff0c\u9664\u4e86\u4f7f\u7528NumPy\u5e93\u4e4b\u5916\uff0c\u8fd8\u53ef\u4ee5\u4f7f\u7528\u5217\u8868\u63a8\u5bfc\u5f0f\u8fdb\u884c\u521d\u59cb\u5316\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u521d\u59cb\u5316\u4e00\u4e2a3x3\u7684\u4e8c\u7ef4\u6570\u7ec4\uff0c\u5168\u90e8\u5143\u7d20\u4e3a0<\/p>\n<p>array_2d = [[0 for _ in range(3)] for _ in range(3)]<\/p>\n<p>print(array_2d)<\/p>\n<h2><strong>\u8f93\u51fa:<\/strong><\/h2>\n<h2><strong>[[0, 0, 0],<\/strong><\/h2>\n<h2><strong> [0, 0, 0],<\/strong><\/h2>\n<h2><strong> [0, 0, 0]]<\/strong><\/h2>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u9002\u7528\u4e8e\u9700\u8981\u521d\u59cb\u5316\u591a\u7ef4\u6570\u7ec4\u4f46\u4e0d\u60f3\u5f15\u5165\u5916\u90e8\u5e93\u7684\u60c5\u51b5\u3002<\/p>\n<\/p>\n<p><h3>\u516d\u3001\u4f7f\u7528\u6807\u51c6\u5e93itertools<\/h3>\n<\/p>\n<p><p>\u867d\u7136itertools\u5e93\u4e0d\u662f\u4e13\u95e8\u4e3a\u521d\u59cb\u5316\u6570\u7ec4\u8bbe\u8ba1\u7684\uff0c\u4f46\u5b83\u63d0\u4f9b\u4e86\u4e00\u4e9b\u6709\u7528\u7684\u5de5\u5177\uff0c\u53ef\u4ee5\u7528\u6765\u751f\u6210\u521d\u59cb\u6570\u7ec4\u3002\u4f8b\u5982\uff0c\u4f7f\u7528<code>itertools.repeat<\/code>\u751f\u6210\u4e00\u4e2a\u91cd\u590d\u5143\u7d20\u7684\u8fed\u4ee3\u5668\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import itertools<\/p>\n<h2><strong>\u521d\u59cb\u5316\u4e00\u4e2a\u957f\u5ea6\u4e3a10\u7684\u6570\u7ec4\uff0c\u5168\u90e8\u5143\u7d20\u4e3a0<\/strong><\/h2>\n<p>array = list(itertools.repeat(0, 10))<\/p>\n<p>print(array)  # \u8f93\u51fa: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u7684\u4f18\u70b9\u662f\u4ee3\u7801\u7b80\u5355\uff0c\u5e76\u4e14itertools\u5e93\u5728\u5904\u7406\u5927\u89c4\u6a21\u6570\u636e\u65f6\u6548\u7387\u5f88\u9ad8\u3002<\/p>\n<\/p>\n<p><h3>\u4e03\u3001\u521d\u59cb\u5316\u7a00\u758f\u6570\u7ec4<\/h3>\n<\/p>\n<p><p>\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u6570\u7ec4\u4e2d\u5927\u90e8\u5206\u5143\u7d20\u662f0\uff0c\u8fd9\u65f6\u53ef\u4ee5\u4f7f\u7528\u7a00\u758f\u6570\u7ec4\u6765\u8282\u7701\u5185\u5b58\u3002SciPy\u5e93\u63d0\u4f9b\u4e86\u7a00\u758f\u77e9\u9635\u7684\u5b9e\u73b0\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from scipy.sparse import lil_matrix<\/p>\n<h2><strong>\u521d\u59cb\u5316\u4e00\u4e2a3x3\u7684\u7a00\u758f\u77e9\u9635\uff0c\u5168\u90e8\u5143\u7d20\u4e3a0<\/strong><\/h2>\n<p>sparse_matrix = lil_matrix((3, 3))<\/p>\n<p>print(sparse_matrix)<\/p>\n<h2><strong>\u8f93\u51fa:<\/strong><\/h2>\n<h2><strong>  (0, 0)\t0.0<\/strong><\/h2>\n<h2><strong>  (0, 1)\t0.0<\/strong><\/h2>\n<h2><strong>  (0, 2)\t0.0<\/strong><\/h2>\n<h2><strong>  (1, 0)\t0.0<\/strong><\/h2>\n<h2><strong>  (1, 1)\t0.0<\/strong><\/h2>\n<h2><strong>  (1, 2)\t0.0<\/strong><\/h2>\n<h2><strong>  (2, 0)\t0.0<\/strong><\/h2>\n<h2><strong>  (2, 1)\t0.0<\/strong><\/h2>\n<h2><strong>  (2, 2)\t0.0<\/strong><\/h2>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u7a00\u758f\u6570\u7ec4\u5728\u5904\u7406\u5927\u89c4\u6a21\u7a00\u758f\u6570\u636e\u65f6\u975e\u5e38\u9ad8\u6548\uff0c\u4f46\u9700\u8981\u6ce8\u610f\u5176\u4e0e\u666e\u901a\u6570\u7ec4\u7684\u64cd\u4f5c\u65b9\u5f0f\u6709\u6240\u4e0d\u540c\u3002<\/p>\n<\/p>\n<p><h3>\u516b\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u521d\u59cb\u5316\u6570\u7ec4\u4e3a0\u7684\u65b9\u6cd5\u6709\u5f88\u591a\uff0c\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\u53d6\u51b3\u4e8e\u5177\u4f53\u9700\u6c42\u548c\u5e94\u7528\u573a\u666f\uff1a<\/p>\n<\/p>\n<ul>\n<li><strong>\u5217\u8868\u63a8\u5bfc\u5f0f\u548c\u4e58\u6cd5\u8fd0\u7b97\u7b26<\/strong>\u9002\u5408\u7b80\u5355\u4e14\u89c4\u6a21\u4e0d\u5927\u7684\u6570\u7ec4\u521d\u59cb\u5316\u3002<\/li>\n<li><strong>NumPy\u5e93<\/strong>\u9002\u5408\u5927\u89c4\u6a21\u6570\u7ec4\u548c\u591a\u7ef4\u6570\u7ec4\u7684\u9ad8\u6548\u521d\u59cb\u5316\u3002<\/li>\n<li><strong>\u5faa\u73af<\/strong>\u9002\u5408\u9700\u8981\u590d\u6742\u521d\u59cb\u5316\u903b\u8f91\u7684\u60c5\u51b5\u3002<\/li>\n<li><strong>itertools\u5e93<\/strong>\u9002\u5408\u751f\u6210\u91cd\u590d\u5143\u7d20\u7684\u6570\u7ec4\u3002<\/li>\n<li><strong>\u7a00\u758f\u77e9\u9635<\/strong>\u9002\u5408\u5904\u7406\u7a00\u758f\u6570\u636e\u7684\u573a\u666f\u3002<\/li>\n<\/ul>\n<p><p>\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u5408\u7406\u9009\u62e9\u548c\u7ec4\u5408\u8fd9\u4e9b\u65b9\u6cd5\uff0c\u53ef\u4ee5\u9ad8\u6548\u5730\u521d\u59cb\u5316\u6570\u7ec4\u5e76\u6ee1\u8db3\u5404\u79cd\u9700\u6c42\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\u5168\u96f6\u7684\u6570\u7ec4\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u6709\u591a\u79cd\u65b9\u6cd5\u53ef\u4ee5\u521b\u5efa\u4e00\u4e2a\u5168\u96f6\u7684\u6570\u7ec4\u3002\u4f7f\u7528NumPy\u5e93\u662f\u4e00\u4e2a\u5e38\u89c1\u7684\u9009\u62e9\u3002\u4f60\u53ef\u4ee5\u4f7f\u7528<code>numpy.zeros()<\/code>\u51fd\u6570\u6765\u521d\u59cb\u5316\u4e00\u4e2a\u6307\u5b9a\u5f62\u72b6\u7684\u6570\u7ec4\u4e3a\u96f6\u3002\u4f8b\u5982\uff0c<code>numpy.zeros((3, 4))<\/code>\u5c06\u521b\u5efa\u4e00\u4e2a3\u884c4\u5217\u7684\u5168\u96f6\u6570\u7ec4\u3002\u5982\u679c\u4f60\u4e0d\u60f3\u4f7f\u7528NumPy\uff0c\u4e5f\u53ef\u4ee5\u4f7f\u7528\u5217\u8868\u63a8\u5bfc\u5f0f\uff0c\u6bd4\u5982<code>[[0 for _ in range(4)] for _ in range(3)]<\/code>\u6765\u521b\u5efa\u4e00\u4e2a3&#215;4\u7684\u5168\u96f6\u4e8c\u7ef4\u5217\u8868\u3002<\/p>\n<p><strong>\u662f\u5426\u53ef\u4ee5\u4f7f\u7528\u5185\u7f6e\u5217\u8868\u6765\u521b\u5efa\u5168\u96f6\u6570\u7ec4\uff1f<\/strong><br \/>\u5f53\u7136\u53ef\u4ee5\uff01Python\u7684\u5185\u7f6e\u5217\u8868\u53ef\u4ee5\u7528\u6765\u521b\u5efa\u5168\u96f6\u6570\u7ec4\u3002\u4f60\u53ef\u4ee5\u4f7f\u7528\u4e58\u6cd5\u6765\u5feb\u901f\u751f\u6210\u3002\u4f8b\u5982\uff0c<code>[0] * 5<\/code>\u5c06\u521b\u5efa\u4e00\u4e2a\u5305\u542b5\u4e2a\u96f6\u7684\u5217\u8868\u3002\u5bf9\u4e8e\u591a\u7ef4\u6570\u7ec4\uff0c\u53ef\u4ee5\u7ed3\u5408\u5217\u8868\u63a8\u5bfc\u5f0f\uff0c\u50cf\u8fd9\u6837\uff1a<code>[[0] * 4 for _ in range(3)]<\/code>\uff0c\u8fd9\u4f1a\u751f\u6210\u4e00\u4e2a3&#215;4\u7684\u5168\u96f6\u6570\u7ec4\u3002<\/p>\n<p><strong>\u5728Python\u4e2d\uff0c\u5982\u4f55\u521d\u59cb\u5316\u4e00\u4e2a\u5927\u6570\u7ec4\u4e3a\u96f6\u4ee5\u63d0\u9ad8\u6027\u80fd\uff1f<\/strong><br \/>\u5728\u5904\u7406\u5927\u6570\u7ec4\u65f6\uff0c\u4f7f\u7528NumPy\u4f1a\u66f4\u9ad8\u6548\u3002NumPy\u662f\u4e13\u4e3a\u6570\u503c\u8ba1\u7b97\u8bbe\u8ba1\u7684\uff0c\u5b83\u5728\u5185\u5b58\u548c\u6027\u80fd\u65b9\u9762\u90fd\u7ecf\u8fc7\u4f18\u5316\u3002\u4f7f\u7528<code>numpy.zeros()<\/code>\u4e0d\u4ec5\u53ef\u4ee5\u5feb\u901f\u521b\u5efa\u5927\u6570\u7ec4\uff0c\u800c\u4e14\u8fd8\u80fd\u663e\u8457\u51cf\u5c11\u5185\u5b58\u5360\u7528\u3002\u6b64\u5916\uff0cNumPy\u63d0\u4f9b\u4e86\u8bb8\u591a\u64cd\u4f5c\u6570\u7ec4\u7684\u4fbf\u5229\u51fd\u6570\uff0c\u4f7f\u540e\u7eed\u7684\u6570\u636e\u5904\u7406\u66f4\u4e3a\u9ad8\u6548\u3002<\/p>\n<p><strong>Python\u4e2d\u5982\u4f55\u9a8c\u8bc1\u6570\u7ec4\u662f\u5426\u5168\u90e8\u4e3a\u96f6\uff1f<\/strong><br \/>\u8981\u68c0\u67e5\u4e00\u4e2a\u6570\u7ec4\u662f\u5426\u5168\u90e8\u4e3a\u96f6\uff0c\u53ef\u4ee5\u4f7f\u7528NumPy\u7684<code>numpy.all()<\/code>\u51fd\u6570\u7ed3\u5408\u6bd4\u8f83\u64cd\u4f5c\u3002\u4f8b\u5982\uff0c\u53ef\u4ee5\u4f7f\u7528<code>numpy.all(array == 0)<\/code>\u6765\u5224\u65adNumPy\u6570\u7ec4\u4e2d\u7684\u6240\u6709\u5143\u7d20\u662f\u5426\u4e3a\u96f6\u3002\u5982\u679c\u4f60\u4f7f\u7528\u7684\u662f\u5217\u8868\uff0c\u53ef\u4ee5\u4f7f\u7528<code>all(x == 0 for x in my_list)<\/code>\u6765\u9a8c\u8bc1\u5217\u8868\u4e2d\u7684\u6240\u6709\u5143\u7d20\u662f\u5426\u90fd\u662f\u96f6\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Python\u521d\u59cb\u5316\u6570\u7ec4\u4e3a0\u7684\u65b9\u6cd5\u6709\u591a\u79cd\uff1a\u4f7f\u7528\u5217\u8868\u63a8\u5bfc\u5f0f\u3001\u4f7f\u7528\u4e58\u6cd5\u8fd0\u7b97\u7b26\u3001\u4f7f\u7528NumPy\u5e93\u3002\u5176\u4e2d\uff0c\u4f7f\u7528NumPy [&hellip;]","protected":false},"author":3,"featured_media":1059842,"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\/1059830"}],"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=1059830"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1059830\/revisions"}],"predecessor-version":[{"id":1059844,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1059830\/revisions\/1059844"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1059842"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1059830"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1059830"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1059830"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}