Python for loop to write an infinite loop?

Python while writing an infinite loop is simple, but if you use it for?

Being thought of borrowing a list of scalability, write an infinite loop

mylist = [1]

for k in mylist:

    mylist.append(1)

uhumm .... seems to be no sense, it does not get to the bottom. . .

Guess you like

Origin www.cnblogs.com/lipx9527/p/12229366.html