#!/usr/bin/env python
#_*_ coding:utf-8 _*_
count = 0
print_num=input('input the number you want to got: ')
while count < 1000000:
if count == print_num:
print 'the number is got',count
choice = raw_input('do you want to continue y/n')
if choice == 'n':
break
else:
while print_num <= count:
print_num=input('input the number you want to got: ')
if print_num <= count:
print 'it has pass'
else:
continue
else:
print 'loop:',count
count += 1
note:输入循环,到输入的数字的时候进行等待
#_*_ coding:utf-8 _*_
count = 0
print_num=input('input the number you want to got: ')
while count < 1000000:
if count == print_num:
print 'the number is got',count
choice = raw_input('do you want to continue y/n')
if choice == 'n':
break
else:
while print_num <= count:
print_num=input('input the number you want to got: ')
if print_num <= count:
print 'it has pass'
else:
continue
else:
print 'loop:',count
count += 1
note:输入循环,到输入的数字的时候进行等待