摘要: x="hello" #print(dir(x)) iter_test=x.__iter__() #print(iter_test) # print(iter_test.__next__()) # print(iter_test.__next__()) #可迭代对象就是迭代器 l=[1,2,3] # for i in l:#先执行i=l.__iter__() ,i.__next__() f... 阅读全文
posted @ 2019-06-17 22:12 coldplaycode 阅读(221) 评论(0) 推荐(0) 编辑

coldplaycode