mirror of
https://github.com/licsber/micropython.git
synced 2024-09-22 01:50:24 +08:00
7 lines
153 B
Python
7 lines
153 B
Python
# test construction of bytearray from different objects
|
|
|
|
# bytes, tuple, list
|
|
print(bytearray(b'123'))
|
|
print(bytearray((1, 2)))
|
|
print(bytearray([1, 2]))
|