mirror of
https://github.com/micropython/micropython.git
synced 2025-09-06 18:00:48 +02:00
8 lines
153 B
Python
8 lines
153 B
Python
# test construction of bytes from different objects
|
|
|
|
from array import array
|
|
|
|
# arrays
|
|
print(bytes(array('h', [1, 2])))
|
|
print(bytes(array('I', [1, 2])))
|