Discuss / Python / while 死循环

while 死循环

Topic source

brigthing

#1 Created at ... [Delete] [Delete and Lock User]

   while 3>2:

        print(1)

#只要循环的语句永远为真时,那么循环就不会结束

MG视盾

#2 Created at ... [Delete] [Delete and Lock User]
n=101while n>100:    n=n+1    print(n)

  • 1

Reply