ubuntu随机测试

来源:互联网 发布:c语言测试程序 编辑:程序博客网 时间:2024/05/13 15:25
import randoma=random.randint(1,20)print 'please guess 1-20'for g in range(1,7):    print 'please write a number'    guess=int(input())    if guess>a:        print 'your guess is too big'    elif guess<a:        print 'your guess is too low'    else:        print 'your guess num is '+str(a)        break

0 0