micropython/tests/basics/int_big_unary.py

9 wiersze
90 B
Python

# test bignum unary operations
i = 1 << 65
print(bool(i))
print(+i)
print(-i)
print(~i)