count = 0 while count <= 5: # if count == 3: #如果有break终止,就不执行,while后面else, # print('33333') # break print(count) count += 1 else: print('循环正常执行完了') print('结束循环')
count = 0 while count <= 5: # if count == 3: #如果有break终止,就不执行,while后面else, # print('33333') # break print(count) count += 1 else: print('循环正常执行完了') print('结束循环')