mirror of https://github.com/TwoWater/Python
parent
253d5e7cdc
commit
67faf2a795
|
@ -19,7 +19,7 @@ iter1 = iter ( str1 )
|
||||||
list1 = [1,2,3,4]
|
list1 = [1,2,3,4]
|
||||||
iter2 = iter ( list1 )
|
iter2 = iter ( list1 )
|
||||||
|
|
||||||
# 3、tuple(元祖) 对象创建迭代器
|
# 3、tuple(元组) 对象创建迭代器
|
||||||
tuple1 = ( 1,2,3,4 )
|
tuple1 = ( 1,2,3,4 )
|
||||||
iter3 = iter ( tuple1 )
|
iter3 = iter ( tuple1 )
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue