8 lines
138 B
Python
8 lines
138 B
Python
|
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"))
|