From c5b55563e6b4cf24f42dfaba98f2b0f5313e571f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=A1=E5=9D=82=E6=98=B4?= Date: Mon, 30 Sep 2024 20:44:24 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=83=E4=B9=A0=E9=A2=98=E7=AC=AC=E4=BA=8C?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/2024,09,29/test2.py | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 test/2024,09,29/test2.py diff --git a/test/2024,09,29/test2.py b/test/2024,09,29/test2.py new file mode 100644 index 0000000..d2a0d58 --- /dev/null +++ b/test/2024,09,29/test2.py @@ -0,0 +1,6 @@ +# 练习题2: 使用 numpy.linspace 生成等差数列 +# 题目: 使用 numpy.linspace 函数生成一个从0开始到10结束(包含10),步长为2的等差数列。 +import numpy as np + +a = np.linspace(0,10,6) +print(a)