Python之生成式一、生成式二、生成器表达式
一、生成式1、列表生成式1)语法[expression for item1 in iterable1 if condition1for item2 in iterable2 if condition2...for itemN in iterableN if conditionN]类似于res=[ ]for item1 in iterable1: if condition1: for item2 in iterable2: if condit