第一种表达形式:b =(x*2 for x in range(10))
第二种表达形式:生成器的“函数”直接调用的时候不能直接调用,必须用变量接收
生成器
原文:https://www.cnblogs.com/tester-go/p/8119716.html