摘要:
https://docs.python.org/3.5/library/itertools.html#itertools.starmap // https://docs.python.org/3.5/library/functions.html#map 阅读全文
摘要:
1、yield 暂存为list def max_generator(numbers): current_max = 0 for i in numbers: current_max = max(i, current_max) yield current_max; a = [3, 4, 6, 2, 1, 9, 0, 7, 5, 8] res... 阅读全文