micropython/tests/basics/array_construct2.py

12 wiersze
278 B
Python
Czysty Zwykły widok Historia

try:
from uarray import array
except ImportError:
try:
from array import array
except ImportError:
print("SKIP")
raise SystemExit
# construct from something with unknown length (requires generators)
print(array('i', (i for i in range(10))))