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)