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])))
|