micropython/tests/basics/map.py

5 wiersze
177 B
Python
Czysty Zwykły widok Historia

2014-01-15 01:10:09 +00:00
print(list(map(lambda x: x & 1, range(-3, 4))))
print(list(map(abs, range(-3, 4))))
print(list(map(set, [[i] for i in range(-3, 4)])))
print(list(map(pow, range(4), range(4))))