摘要: 1.表理解(list comprehension),用于快速地生成一个新的列表 return [x for x in sequence if x not in self.blocked] 等价于 l = [] for x in sequence: if x not in self.blocked: 阅读全文
posted @ 2018-02-26 19:09 piaoliusihai 阅读(89) 评论(0) 推荐(0) 编辑