Discuss / Python / 文章调用错误

文章调用错误

Topic source

Dr_苏泊

#1 Created at ... [Delete] [Delete and Lock User]

g = (x * x for x in range(10)) next()函数获得generator的下一个返回值: 调用next(g),返回的值是0,1,4,9………… 贴出的是1,1,2,3,5,8 这是怎么的呢??

廖雪峰

#2 Created at ... [Delete] [Delete and Lock User]

已修复~~~


  • 1

Reply