Discuss / Python / 为什么会死循环

为什么会死循环

Topic source

凌零An233

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

i = 0

while i <= 10:

print('haha')

i的值没有变化,要在while后面进行i的自增

i==0 i是固定的,一直满足条件就一直打印haha


  • 1

Reply