kopia lustrzana https://github.com/micropython/micropython
10 wiersze
176 B
Python
10 wiersze
176 B
Python
|
print((2**64).to_bytes(9, "little"))
|
||
|
|
||
|
b = bytes(range(20))
|
||
|
|
||
|
il = int.from_bytes(b, "little")
|
||
|
ib = int.from_bytes(b, "big")
|
||
|
print(il)
|
||
|
print(ib)
|
||
|
print(il.to_bytes(20, "little"))
|