import numpy as np; #创建数组的四种办法 ##可以传入任何类数组 a = np.array([0,1,2,3,4]); b = np.array((0,1,2,3,4)); c = np.arange(5); d = np.linspace(0,2*np.pi,5); print(a); print(b); print(c); print(d); [0 1 2 3 4] [0 1 2 3 4] [0 1 2 3 4] [0. 1.57079633 3.14159265 4.7…