array
cmath
gc
math
sys
ubinascii
ucollections
uerrno
uhashlib
uheapq
uio
ujson
uos
ure
uselect
usocket
ussl
ustruct
utime
uzlib
_thread
该模块实现相应CPython模块的子集,如下所示。更多信息,请参见: |CPython文档| array.
支持格式编码: b, B, h, H, i, I, l, L, q, Q, f, d (后两种依赖于浮点支持)。
b
B
h
H
i
I
l
L
q
Q
f
d
使用给定类型的元素创建数组。数组的初始内容由 iterable 给定。若未给定内容,则创建一个空数组。
iterable
将新元素添加到数组末尾,并不断增加。
将包含在迭代中的新元素添加到数组末尾,并不断增加。