标签:类型 ber nes div 区别 IV 生成 exp 元组
NumPy 是高性能科学计算和数据分析的基础包. 它是 pandas 等其他各种工具的基础.
主要功能:
np.array(array_like)a[5]a[2][3]新式写法 a[2, 3] (推荐)
a[[1,3,4,6,7]]a[(a>5) & (a%2=0)]a[(a>5) | (a%2=0)]对于一个二维数组, 选出其第一列和第三列, 组成新的二维数组: a[:, [1, 3]]
abs sqrt exp log ceil(向上取整) floor(向下取整) rint trunc modf isnan isinf cos sin tan
add substract multiply divide power mod maximum mininum
标签:类型 ber nes div 区别 IV 生成 exp 元组
原文地址:https://www.cnblogs.com/haoxi/p/9175781.html