pythonpython中print,return和yield的区别 def func1(): for i in range(1, 5): print i def func2(): for i in range(1, 5): return i def func3(): for i in range(1, 5): yield i ... 懒人 1661℃ 0评论 0喜欢