bug_x

导航

 

2018年7月6日

摘要: https://docs.python.org/3.5/library/itertools.html#itertools.starmap // https://docs.python.org/3.5/library/functions.html#map 阅读全文
posted @ 2018-07-06 00:27 bug_x 阅读(105) 评论(0) 推荐(0) 编辑
 
摘要: 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... 阅读全文
posted @ 2018-07-06 00:01 bug_x 阅读(124) 评论(0) 推荐(0) 编辑