micropython/tests/basics/slice_intbig.py

6 wiersze
155 B
Python
Czysty Zwykły widok Historia

# test slicing when arguments are bignums
print(list(range(10))[(1<<66)>>65:])
print(list(range(10))[:(1<<66)>>65])
print(list(range(10))[::(1<<66)>>65])