Iterator acquisition

# Iterator access to, and use the next function 
1
"" " 2 iterator 3 1. an iterator object may provide an iterator 4 2. Assuming the presence of a iterable ITE . 5 data_iterator = ITER (ITE): can ite the iterator is obtained . 6 next (data_iterator): obtain the value of the next element . 7 "" " . 8 . 9 ite = [1,3,5,7] # : iterables queues 10 data_iterator = ITER (ite) . 11 # Print (data_iterator) 12 is next_data = Next (data_iterator) 13 is Print (next_data)

 

Guess you like

Origin www.cnblogs.com/liuxjie/p/11985563.html