摘要:
In [14]: %timeit L = [n ** 2 for n in range(1000)] 362 µs ± 16.1 µs per loop (mean ± std. dev. of 7 runs, 1000 loops each) In [17]: %run my_app.py 4356 In [26]: print(_) # 历史的输出结果,第一,第二,第三 -2.... 阅读全文
摘要:
# map """ map(func, *iterables) --> map object Make an iterator that computes the function using arguments from each of the iterables. Stops when the shortest iterable is exhausted... 阅读全文