Discuss / Python / 写出了一个死循环

写出了一个死循环

Topic source
L = ['Bart', 'Lisa', 'Adam']
while L:
    print('hello',L)

L=['Bart','Lisa','Adam'] l=L while l: print('Hello',l.pop(0))

这个可以


  • 1

Reply