突发奇想
#coding=utf-8
import random
num = random.randint(0,10)
t = input("please input a number from 0~10:")
n=0
while(t!=num and n<2):
if(t != num):
print('Idiot,It is wrong,now you have '+(str)(2-n)+'chances!')
n=n+1
t = input('Guess again:')
if(n==2</