主页
Python
NumPy 创建数组
demo_numpy_create_array_1d
运行 ❯
×
更改方向
保存代码
更改主题
import numpy as np arr = np.array([1, 2, 3, 4, 5]) print(arr)
[1 2 3 4 5]