{"id":975544,"date":"2024-12-27T06:14:05","date_gmt":"2024-12-26T22:14:05","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/975544.html"},"modified":"2024-12-27T06:14:07","modified_gmt":"2024-12-26T22:14:07","slug":"python%e5%a4%9a%e5%88%97%e8%a1%a8%e5%a6%82%e4%bd%95%e7%b4%a2%e5%bc%95","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/975544.html","title":{"rendered":"python\u591a\u5217\u8868\u5982\u4f55\u7d22\u5f15"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24200728\/86844890-abbe-47fe-9039-4511083db489.webp\" alt=\"python\u591a\u5217\u8868\u5982\u4f55\u7d22\u5f15\" \/><\/p>\n<p><p> \u5728Python\u4e2d\uff0c\u7d22\u5f15\u591a\u5217\u8868\u53ef\u4ee5\u901a\u8fc7\u591a\u79cd\u65b9\u6cd5\u5b9e\u73b0\uff0c<strong>\u5e38\u7528\u7684\u65b9\u6cd5\u5305\u62ec\u4f7f\u7528\u5d4c\u5957\u5faa\u73af\u3001\u5217\u8868\u63a8\u5bfc\u5f0f\u3001NumPy\u5e93<\/strong>\u3002\u5176\u4e2d\uff0c\u4f7f\u7528NumPy\u5e93\u662f\u5904\u7406\u591a\u5217\u8868\u7d22\u5f15\u6700\u6709\u6548\u7684\u65b9\u6cd5\u4e4b\u4e00\u3002NumPy\u662f\u4e00\u4e2a\u5f3a\u5927\u7684\u79d1\u5b66\u8ba1\u7b97\u5e93\uff0c\u63d0\u4f9b\u4e86\u591a\u7ef4\u6570\u7ec4\u5bf9\u8c61\uff0c\u53ef\u4ee5\u65b9\u4fbf\u5730\u8fdb\u884c\u590d\u6742\u7684\u7d22\u5f15\u548c\u5207\u7247\u64cd\u4f5c\u3002\u901a\u8fc7NumPy\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528\u5e03\u5c14\u7d22\u5f15\u3001\u82b1\u5f0f\u7d22\u5f15\u7b49\u9ad8\u7ea7\u529f\u80fd\u6765\u9ad8\u6548\u5730\u5904\u7406\u6570\u636e\u3002<\/p>\n<\/p>\n<hr>\n<h2><strong>\u4e00\u3001\u5d4c\u5957\u5217\u8868\u7d22\u5f15<\/strong><\/h2>\n<p><p>\u5728Python\u4e2d\uff0c\u591a\u5217\u8868\u901a\u5e38\u662f\u6307\u5d4c\u5957\u5217\u8868\uff0c\u4e5f\u5c31\u662f\u5217\u8868\u4e2d\u7684\u5143\u7d20\u4e5f\u662f\u5217\u8868\u3002\u8981\u7d22\u5f15\u5d4c\u5957\u5217\u8868\u4e2d\u7684\u5143\u7d20\uff0c\u53ef\u4ee5\u76f4\u63a5\u901a\u8fc7\u591a\u7ea7\u7d22\u5f15\u6765\u5b9e\u73b0\u3002<\/p>\n<\/p>\n<p><h2>1\u3001\u57fa\u7840\u7d22\u5f15<\/h2>\n<\/p>\n<p><p>\u5d4c\u5957\u5217\u8868\u7684\u57fa\u7840\u7d22\u5f15\u65b9\u5f0f\u662f\u901a\u8fc7\u9010\u5c42\u7d22\u5f15\u6765\u8bbf\u95ee\u5177\u4f53\u5143\u7d20\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">multi_list = [[1, 2, 3], [4, 5, 6], [7, 8, 9]]<\/p>\n<h2><strong>\u7d22\u5f15\u7b2c\u4e8c\u4e2a\u5217\u8868\u7684\u7b2c\u4e09\u4e2a\u5143\u7d20<\/strong><\/h2>\n<p>element = multi_list[1][2]<\/p>\n<p>print(element)  # \u8f93\u51fa6<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u6211\u4eec\u9996\u5148\u7d22\u5f15\u5230\u7b2c\u4e8c\u4e2a\u5b50\u5217\u8868 <code>[4, 5, 6]<\/code>\uff0c\u7136\u540e\u7d22\u5f15\u5230\u8be5\u5217\u8868\u4e2d\u7684\u7b2c\u4e09\u4e2a\u5143\u7d20 <code>6<\/code>\u3002<\/p>\n<\/p>\n<p><h2>2\u3001\u904d\u5386\u548c\u7d22\u5f15<\/h2>\n<\/p>\n<p><p>\u5f53\u9700\u8981\u904d\u5386\u6574\u4e2a\u591a\u5217\u8868\u5e76\u8bbf\u95ee\u5176\u4e2d\u7684\u5143\u7d20\u65f6\uff0c\u53ef\u4ee5\u4f7f\u7528\u5d4c\u5957\u5faa\u73af\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">for sublist in multi_list:<\/p>\n<p>    for item in sublist:<\/p>\n<p>        print(item)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u4e2a\u4ee3\u7801\u6bb5\u5c06\u4f1a\u904d\u5386 <code>multi_list<\/code> \u4e2d\u7684\u6bcf\u4e00\u4e2a\u5143\u7d20\uff0c\u5e76\u9010\u4e00\u6253\u5370\u51fa\u6765\u3002<\/p>\n<\/p>\n<hr>\n<h2><strong>\u4e8c\u3001\u5217\u8868\u63a8\u5bfc\u5f0f<\/strong><\/h2>\n<p><p>\u5217\u8868\u63a8\u5bfc\u5f0f\u662fPython\u4e2d\u4e00\u79cd\u7b80\u6d01\u7684\u521b\u5efa\u5217\u8868\u7684\u65b9\u5f0f\uff0c\u5b83\u4e5f\u53ef\u4ee5\u7528\u4e8e\u591a\u5217\u8868\u7684\u7d22\u5f15\u548c\u64cd\u4f5c\u3002<\/p>\n<\/p>\n<p><h2>1\u3001\u63d0\u53d6\u7279\u5b9a\u5143\u7d20<\/h2>\n<\/p>\n<p><p>\u5047\u8bbe\u6211\u4eec\u9700\u8981\u63d0\u53d6\u6bcf\u4e2a\u5b50\u5217\u8868\u4e2d\u7684\u6700\u540e\u4e00\u4e2a\u5143\u7d20\uff0c\u53ef\u4ee5\u4f7f\u7528\u5217\u8868\u63a8\u5bfc\u5f0f\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">last_elements = [sublist[-1] for sublist in multi_list]<\/p>\n<p>print(last_elements)  # \u8f93\u51fa [3, 6, 9]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u5217\u8868\u63a8\u5bfc\u5f0f <code>[sublist[-1] for sublist in multi_list]<\/code> \u4f1a\u904d\u5386 <code>multi_list<\/code> \u4e2d\u7684\u6bcf\u4e00\u4e2a <code>sublist<\/code>\uff0c\u5e76\u63d0\u53d6\u51fa\u6bcf\u4e2a <code>sublist<\/code> \u7684\u6700\u540e\u4e00\u4e2a\u5143\u7d20\u3002<\/p>\n<\/p>\n<p><h2>2\u3001\u8fc7\u6ee4\u64cd\u4f5c<\/h2>\n<\/p>\n<p><p>\u5217\u8868\u63a8\u5bfc\u5f0f\u8fd8\u53ef\u4ee5\u7528\u4e8e\u5728\u7d22\u5f15\u65f6\u8fdb\u884c\u8fc7\u6ee4\u64cd\u4f5c\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">filtered_elements = [item for sublist in multi_list for item in sublist if item &gt; 5]<\/p>\n<p>print(filtered_elements)  # \u8f93\u51fa [6, 7, 8, 9]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u4e2a\u4f8b\u5b50\u5c55\u793a\u4e86\u5982\u4f55\u4f7f\u7528\u5217\u8868\u63a8\u5bfc\u5f0f\u4ece <code>multi_list<\/code> \u4e2d\u63d0\u53d6\u6240\u6709\u5927\u4e8e5\u7684\u5143\u7d20\u3002<\/p>\n<\/p>\n<hr>\n<h2><strong>\u4e09\u3001\u4f7f\u7528NumPy\u8fdb\u884c\u591a\u5217\u8868\u7d22\u5f15<\/strong><\/h2>\n<p><p>NumPy\u662fPython\u4e2d\u4e00\u4e2a\u5f3a\u5927\u7684\u79d1\u5b66\u8ba1\u7b97\u5e93\uff0c\u53ef\u4ee5\u6709\u6548\u5730\u5904\u7406\u591a\u7ef4\u6570\u7ec4\uff0c\u5e76\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u7d22\u5f15\u529f\u80fd\u3002<\/p>\n<\/p>\n<p><h2>1\u3001\u521b\u5efaNumPy\u6570\u7ec4<\/h2>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u5c06\u591a\u5217\u8868\u8f6c\u6362\u4e3aNumPy\u6570\u7ec4\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import numpy as np<\/p>\n<p>multi_list = [[1, 2, 3], [4, 5, 6], [7, 8, 9]]<\/p>\n<p>np_array = np.array(multi_list)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h2>2\u3001\u57fa\u7840\u7d22\u5f15<\/h2>\n<\/p>\n<p><p>NumPy\u6570\u7ec4\u652f\u6301\u7b80\u5355\u7684\u591a\u7ef4\u7d22\u5f15\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">element = np_array[1, 2]<\/p>\n<p>print(element)  # \u8f93\u51fa6<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4e0e\u5d4c\u5957\u5217\u8868\u7684\u7d22\u5f15\u7c7b\u4f3c\uff0cNumPy\u6570\u7ec4\u53ef\u4ee5\u901a\u8fc7\u6307\u5b9a\u884c\u548c\u5217\u7684\u7d22\u5f15\u6765\u76f4\u63a5\u8bbf\u95ee\u5143\u7d20\u3002<\/p>\n<\/p>\n<p><h2>3\u3001\u5207\u7247\u64cd\u4f5c<\/h2>\n<\/p>\n<p><p>NumPy\u63d0\u4f9b\u4e86\u5f3a\u5927\u7684\u5207\u7247\u529f\u80fd\uff0c\u53ef\u4ee5\u65b9\u4fbf\u5730\u8bbf\u95ee\u6570\u7ec4\u7684\u5b50\u96c6\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">sub_array = np_array[:2, 1:]<\/p>\n<p>print(sub_array)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u4e2a\u5207\u7247\u64cd\u4f5c\u5c06\u63d0\u53d6\u51fa <code>np_array<\/code> \u4e2d\u7684\u524d\u4e24\u884c\u548c\u7b2c\u4e8c\u5217\u5230\u6700\u540e\u4e00\u5217\u7684\u5b50\u6570\u7ec4\u3002<\/p>\n<\/p>\n<p><h2>4\u3001\u5e03\u5c14\u7d22\u5f15<\/h2>\n<\/p>\n<p><p>NumPy\u5141\u8bb8\u901a\u8fc7\u5e03\u5c14\u6761\u4ef6\u5bf9\u6570\u7ec4\u8fdb\u884c\u7d22\u5f15\uff0c\u8fd9\u4f7f\u5f97\u6570\u636e\u8fc7\u6ee4\u53d8\u5f97\u975e\u5e38\u7b80\u6d01\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">bool_index = np_array &gt; 5<\/p>\n<p>filtered_array = np_array[bool_index]<\/p>\n<p>print(filtered_array)  # \u8f93\u51fa [6 7 8 9]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c<code>np_array &gt; 5<\/code> \u751f\u6210\u4e86\u4e00\u4e2a\u5e03\u5c14\u6570\u7ec4\uff0c<code>np_array[bool_index]<\/code> \u901a\u8fc7\u5e03\u5c14\u6570\u7ec4\u6765\u9009\u62e9\u5927\u4e8e5\u7684\u5143\u7d20\u3002<\/p>\n<\/p>\n<p><h2>5\u3001\u82b1\u5f0f\u7d22\u5f15<\/h2>\n<\/p>\n<p><p>NumPy\u652f\u6301\u4f7f\u7528\u6574\u6570\u6570\u7ec4\u8fdb\u884c\u590d\u6742\u7684\u7d22\u5f15\u64cd\u4f5c\uff0c\u8fd9\u88ab\u79f0\u4e3a\u82b1\u5f0f\u7d22\u5f15\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">fancy_indexed_elements = np_array[[0, 1, 2], [2, 0, 1]]<\/p>\n<p>print(fancy_indexed_elements)  # \u8f93\u51fa [3 4 8]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u4e2a\u4f8b\u5b50\u5c55\u793a\u4e86\u5982\u4f55\u4f7f\u7528\u884c\u548c\u5217\u7684\u6574\u6570\u6570\u7ec4\u6765\u4ece <code>np_array<\/code> \u4e2d\u9009\u62e9\u7279\u5b9a\u5143\u7d20\u3002<\/p>\n<\/p>\n<hr>\n<h2><strong>\u56db\u3001\u591a\u5217\u8868\u7684\u5176\u4ed6\u64cd\u4f5c<\/strong><\/h2>\n<p><p>\u9664\u4e86\u7d22\u5f15\uff0c\u591a\u5217\u8868\u8fd8\u53ef\u4ee5\u8fdb\u884c\u8bb8\u591a\u5176\u4ed6\u64cd\u4f5c\uff0c\u4f8b\u5982\u4fee\u6539\u3001\u8ffd\u52a0\u548c\u5220\u9664\u5143\u7d20\u3002<\/p>\n<\/p>\n<p><h2>1\u3001\u4fee\u6539\u5143\u7d20<\/h2>\n<\/p>\n<p><p>\u53ef\u4ee5\u901a\u8fc7\u7d22\u5f15\u76f4\u63a5\u4fee\u6539\u591a\u5217\u8868\u4e2d\u7684\u5143\u7d20\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">multi_list[1][2] = 10<\/p>\n<p>print(multi_list)  # \u8f93\u51fa [[1, 2, 3], [4, 5, 10], [7, 8, 9]]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h2>2\u3001\u8ffd\u52a0\u5143\u7d20<\/h2>\n<\/p>\n<p><p>\u53ef\u4ee5\u4f7f\u7528 <code>append()<\/code> \u65b9\u6cd5\u5411\u591a\u5217\u8868\u4e2d\u7684\u5b50\u5217\u8868\u8ffd\u52a0\u5143\u7d20\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">multi_list[0].append(4)<\/p>\n<p>print(multi_list)  # \u8f93\u51fa [[1, 2, 3, 4], [4, 5, 10], [7, 8, 9]]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h2>3\u3001\u5220\u9664\u5143\u7d20<\/h2>\n<\/p>\n<p><p>\u53ef\u4ee5\u4f7f\u7528 <code>del<\/code> \u5173\u952e\u5b57\u6216 <code>remove()<\/code> \u65b9\u6cd5\u5220\u9664\u591a\u5217\u8868\u4e2d\u7684\u5143\u7d20\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">del multi_list[1][2]<\/p>\n<p>print(multi_list)  # \u8f93\u51fa [[1, 2, 3, 4], [4, 5], [7, 8, 9]]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<hr>\n<h2><strong>\u4e94\u3001\u6027\u80fd\u4f18\u5316\u5efa\u8bae<\/strong><\/h2>\n<p><p>\u5728\u5904\u7406\u5927\u578b\u591a\u5217\u8868\u65f6\uff0c\u6027\u80fd\u53ef\u80fd\u4f1a\u6210\u4e3a\u4e00\u4e2a\u95ee\u9898\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u4f18\u5316\u5efa\u8bae\uff1a<\/p>\n<\/p>\n<p><h2>1\u3001\u4f7f\u7528NumPy<\/h2>\n<\/p>\n<p><p>\u5728\u5904\u7406\u5927\u578b\u591a\u5217\u8868\u65f6\uff0c\u5efa\u8bae\u4f7f\u7528NumPy\uff0c\u56e0\u4e3a\u5b83\u5728\u6267\u884c\u5411\u91cf\u5316\u64cd\u4f5c\u65f6\u901f\u5ea6\u66f4\u5feb\uff0c\u5e76\u4e14\u5360\u7528\u7684\u5185\u5b58\u66f4\u5c11\u3002<\/p>\n<\/p>\n<p><h2>2\u3001\u51cf\u5c11\u4e0d\u5fc5\u8981\u7684\u5faa\u73af<\/h2>\n<\/p>\n<p><p>\u5c3d\u91cf\u51cf\u5c11\u5d4c\u5957\u5faa\u73af\u7684\u4f7f\u7528\uff0c\u4f7f\u7528\u5217\u8868\u63a8\u5bfc\u5f0f\u6216NumPy\u8fdb\u884c\u5411\u91cf\u5316\u64cd\u4f5c\uff0c\u4ee5\u63d0\u9ad8\u6548\u7387\u3002<\/p>\n<\/p>\n<p><h2>3\u3001\u9009\u62e9\u5408\u9002\u7684\u6570\u636e\u7ed3\u6784<\/h2>\n<\/p>\n<p><p>\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u53ef\u80fd\u9700\u8981\u8003\u8651\u5176\u4ed6\u6570\u636e\u7ed3\u6784\uff0c\u5982\u5b57\u5178\u6216\u96c6\u5408\uff0c\u4ee5\u63d0\u9ad8\u7d22\u5f15\u548c\u67e5\u627e\u64cd\u4f5c\u7684\u6548\u7387\u3002<\/p>\n<\/p>\n<p><p>\u901a\u8fc7\u5408\u7406\u7684\u7d22\u5f15\u65b9\u6cd5\u548c\u6027\u80fd\u4f18\u5316\u7b56\u7565\uff0c\u53ef\u4ee5\u6709\u6548\u5730\u5904\u7406\u548c\u64cd\u4f5cPython\u4e2d\u7684\u591a\u5217\u8868\uff0c\u4e3a\u6570\u636e\u5206\u6790\u548c\u79d1\u5b66\u8ba1\u7b97\u63d0\u4f9b\u652f\u6301\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u521b\u5efa\u591a\u5217\u8868\u5e76\u8fdb\u884c\u7d22\u5f15\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u5d4c\u5957\u5217\u8868\u7684\u65b9\u5f0f\u521b\u5efa\u591a\u5217\u8868\u3002\u4f8b\u5982\uff0c\u4f7f\u7528<code>list<\/code>\u6765\u5b58\u50a8\u5176\u4ed6\u5217\u8868\u3002\u8981\u8fdb\u884c\u7d22\u5f15\uff0c\u53ef\u4ee5\u4f7f\u7528\u53cc\u91cd\u7d22\u5f15\uff0c\u9996\u5148\u6307\u5b9a\u5916\u5c42\u5217\u8868\u7684\u7d22\u5f15\uff0c\u7136\u540e\u6307\u5b9a\u5185\u5c42\u5217\u8868\u7684\u7d22\u5f15\u3002\u4f8b\u5982\uff0c<code>my_list[0][1]<\/code>\u5c06\u8fd4\u56de\u5916\u5c42\u5217\u8868\u7b2c\u4e00\u4e2a\u5217\u8868\u4e2d\u7684\u7b2c\u4e8c\u4e2a\u5143\u7d20\u3002<\/p>\n<p><strong>\u5728\u591a\u5217\u8868\u4e2d\u5982\u4f55\u67e5\u627e\u7279\u5b9a\u5143\u7d20\uff1f<\/strong><br \/>\u8981\u67e5\u627e\u7279\u5b9a\u5143\u7d20\uff0c\u53ef\u4ee5\u4f7f\u7528\u5faa\u73af\u904d\u5386\u6574\u4e2a\u591a\u5217\u8868\u3002\u53ef\u4ee5\u4f7f\u7528\u5d4c\u5957\u7684for\u5faa\u73af\u6765\u68c0\u67e5\u6bcf\u4e2a\u5185\u5c42\u5217\u8868\u4e2d\u7684\u5143\u7d20\uff0c\u5e76\u4e0e\u76ee\u6807\u5143\u7d20\u8fdb\u884c\u6bd4\u8f83\u3002\u5f53\u627e\u5230\u5339\u914d\u7684\u5143\u7d20\u65f6\uff0c\u53ef\u4ee5\u8bb0\u5f55\u5176\u7d22\u5f15\u6216\u76f4\u63a5\u8fdb\u884c\u5904\u7406\u3002<\/p>\n<p><strong>\u4f7f\u7528NumPy\u5e93\u5904\u7406\u591a\u5217\u8868\u7684\u4f18\u52bf\u662f\u4ec0\u4e48\uff1f<\/strong><br \/>\u4f7f\u7528NumPy\u5e93\u53ef\u4ee5\u66f4\u9ad8\u6548\u5730\u5904\u7406\u591a\u5217\u8868\u6570\u636e\u3002NumPy\u63d0\u4f9b\u4e86\u591a\u7ef4\u6570\u7ec4\u529f\u80fd\uff0c\u5141\u8bb8\u66f4\u7b80\u6d01\u548c\u9ad8\u6548\u7684\u7d22\u5f15\u4ee5\u53ca\u5404\u79cd\u6570\u5b66\u8fd0\u7b97\u3002\u4e0ePython\u7684\u5185\u7f6e\u5217\u8868\u76f8\u6bd4\uff0cNumPy\u7684\u6570\u7ec4\u5728\u6027\u80fd\u4e0a\u6709\u663e\u8457\u4f18\u52bf\uff0c\u7279\u522b\u662f\u5728\u5904\u7406\u5927\u578b\u6570\u636e\u96c6\u65f6\u3002\u4f7f\u7528NumPy\u8fd8\u53ef\u4ee5\u5229\u7528\u5176\u4e30\u5bcc\u7684\u51fd\u6570\u5e93\uff0c\u7b80\u5316\u590d\u6742\u7684\u8ba1\u7b97\u4efb\u52a1\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\uff0c\u7d22\u5f15\u591a\u5217\u8868\u53ef\u4ee5\u901a\u8fc7\u591a\u79cd\u65b9\u6cd5\u5b9e\u73b0\uff0c\u5e38\u7528\u7684\u65b9\u6cd5\u5305\u62ec\u4f7f\u7528\u5d4c\u5957\u5faa\u73af\u3001\u5217\u8868\u63a8\u5bfc\u5f0f\u3001NumPy\u5e93\u3002\u5176\u4e2d\uff0c [&hellip;]","protected":false},"author":3,"featured_media":975549,"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\/975544"}],"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=975544"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/975544\/revisions"}],"predecessor-version":[{"id":975551,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/975544\/revisions\/975551"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/975549"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=975544"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=975544"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=975544"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}