mirror of
https://github.com/licsber/micropython.git
synced 2024-09-21 01:20:23 +08: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])))
|