micropython/tests/basics/builtin_oct.py

10 wiersze
128 B
Python

# test builtin oct function
print(oct(1))
print(oct(-1))
print(oct(15))
print(oct(-15))
print(oct(12345))
print(oct(0o12345))