ID EN
Array

array

Python 3.11

A new array whose items are restricted by typecode, and initialized from the optional initializer value, which must be a bytes or bytearray object, a Unicode string, or iterable over elements of the appropriate type.

Syntax

PYTHON
class array.array(typecode[, initializer])

See Also

bytes bytearray bytes bytearray frombytes() fromunicode() extend() TypeError