micropython/tests/float/bytearray_construct.py

6 wiersze
125 B
Python

# test construction of bytearray from array with float type
from array import array
print(bytearray(array('f', [1, 2.3])))