x = ['厉智','陈培昌','程劲','徐晓冬'].__iter__() #这非得这么写不可,否则无法调用下面的__next__()方法,切记! print(x.__next__()) print(x.__next__()) print(x.__next__()) print(x.__next__())
执行结果:
厉智陈培昌程劲徐晓冬