mirror of
https://github.com/micropython/micropython.git
synced 2025-09-08 02:40:55 +02:00
10 lines
170 B
Python
10 lines
170 B
Python
try:
|
|
print((10).to_bytes(1, "big"))
|
|
except Exception as e:
|
|
print(type(e))
|
|
|
|
try:
|
|
print(int.from_bytes(b"\0", "big"))
|
|
except Exception as e:
|
|
print(type(e))
|