a2421480 发表于 2018-11-25 16:07:12

看代码

>>> tuple1.__next__()
0
>>> tuple1.__next__()
1
>>> tuple1.__next__()
4
>>> tuple1.__next__()
9
>>> tuple1.__next__()
16
>>> tuple1.__next__()
25
>>> tuple1.__next__()
36这是个什么意思

Thomason 发表于 2018-11-25 16:19:18

https://blog.csdn.net/liweibin1994/article/details/77374854
里面有关于迭代器的说明,比较详细

塔利班 发表于 2018-11-25 16:36:17

没懂你问的是哪个
页: [1]
查看完整版本: 看代码