#_*_ coding:utf-8 _*_
print_num = input (‘which loop do you want it to be printed out?‘)
count = 0
while count < 100000:
if count == print_num:
print ‘there you got the number:‘, count
choice = raw_input (‘Do you want to continue the loop?(y/n)‘)
if choice == ‘n‘:
break
else:
while print_num <= count:
print_num = input (‘which loop do you want it to be printed out?‘)
print ‘this number has passed‘
else:
print ‘loop:‘, count
count +=1
else:
print ‘loop:‘, count
时间: 2024-10-24 20:56:14