kopia lustrzana https://github.com/micropython/micropython
16 wiersze
299 B
Python
16 wiersze
299 B
Python
![]() |
# test array('q') and array('Q')
|
||
|
|
||
|
from array import array
|
||
|
|
||
|
print(array('q'))
|
||
|
print(array('Q'))
|
||
|
|
||
|
print(array('q', [0]))
|
||
|
print(array('Q', [0]))
|
||
|
|
||
|
print(array('q', [-2**63, -1, 0, 1, 2, 2**63-1]))
|
||
|
print(array('Q', [0, 1, 2, 2**64-1]))
|
||
|
|
||
|
print(bytes(array('q', [-1])))
|
||
|
print(bytes(array('Q', [2**64-1])))
|