📜  python numpy 数组 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:47.426000             🧑  作者: Mango

代码示例3
import numpy as np

ary=np.array([1, 2, 3, 4])

print(ary[0]) # 1
print(ary[2]) # 3
print(ary[::2]) # array([1, 3])