# 来源:NumPy Biginner's Guide 2e ch2
>>> from numpy import *
多维数组
# 创建多维数组
>>> m = array([arange(2)...uint8 B, u1
int16 h, i2
uint16 H, u2
int32 i, i4
uint32 I, u4
int64 q, i8
uint64 Q, u8
float16 f2, e...float32 f4, f
float64 f8, d
complex64 F4, F
complex128 F8, D
str S(可以在S后面添加数字,表示字符串长度,比如S3表示长度为三的字符串,...我们只能得到它的视图
>>> b.ndim
1
>>> b.T
array([0, 1, 2, 3, 4])
# NumPy 中的复数用 j 表示
>>> b = array([1.j + 1, 2....reshape(2,2)
>>> b
array([[0, 1],
[2, 3]])
>>> f = b.flat
>>> f
e00