|
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
import random
secret = random.randint(1,20)
print('...........this is first game..................')
temp = input("..guess what number i'm thinking about:" )
guess = int(temp)
i = 2
while i and guess != secret:
i = i - 1
temp = input("..please guess it again:" )
guess = int(temp)
if guess == secret:
print('what fuck,man,how do you do this so perfectly?')
print("whatever you do,unfortunately,there is no reward to you.")
else:
if guess > secret:
print('大了,大了。。。')
else:
print('小了,小了。。。')
if i == 0 or guess == secret :
print('game over!')
|
|