From 5a99596ed20f9791010a378cf7047c6d44d98a8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E4=BC=9F=E6=B3=B0?= <2509165006@student.example.com> Date: Thu, 16 Apr 2026 16:00:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E6=96=87=E4=BB=B6=E8=87=B3?= =?UTF-8?q?=20/?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 06 林伟泰.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 06 林伟泰.py diff --git a/06 林伟泰.py b/06 林伟泰.py new file mode 100644 index 0000000..e4988b4 --- /dev/null +++ b/06 林伟泰.py @@ -0,0 +1,13 @@ +# 一维数组(向量) +vec = np.array([1, 2, 3, 4, 5]) +print(vec) # [1 2 3 4 5] + +# 二维数组(矩阵) +mat = np.array([ + [1, 2, 3], + [4, 5, 6] +]) +print(mat) +# [[1 2 3] +# [4 5 6]] +