g = (i for i in range(10)) print(g) for i in g: print(i) 转载于:https://www.cnblogs.com/fate2048/p/9783398.html