import random
counts = 4
answer = random.randint(1,10)
while counts > 0:
temp = input("猜猜我心里想的是哪个数字?(只有四次机会哦)")
guess = int(temp)
if guess == answer:
print("竟然猜对了…………")
print("既然猜对了,那么给你个奖励:对着镜子石头剪刀布,没赢不许睡觉")
break
else:
if guess < answer:
print("小了哦~")
else:
print("大了哦~ ")
counts = counts-1
temp = input("按0进入下一轮")
guess = int(temp)
import random
counts = 4
answer= random.randint(1, 10)
while counts > 0:
temp = input("猜猜我心里想的是哪个数字?(只有4次机会哦)")
guess = int(temp)
if guess == answer:
print(" 怎……么……又……猜……对……了……")
print("猜对奖励:背诵弟子规10000遍")
break
else:
if guess < answer:
print("小啦~")
else:
print("大啦~")
counts = counts - 1
temp = input("按0进入下一轮")
guess = int(temp)
import random
counts = 4
answer= random.randint(1, 10)
while counts > 0:
temp = input("猜猜我心里想的是哪个数字?(只有4次机会哦)")
guess = int(temp)
if guess == answer:
print(" 这,这,竟然然猜对了!")
print("猜对奖励:给自己来一拳")
break
else:
if guess < answer:
print("小啦~")
else:
print("大啦~")
counts = counts - 1
temp = input("按0进入下一轮")
guess = int(temp)
import random
counts = 4
answer= random.randint(1, 10)
while counts > 0:
temp = input("猜猜我心里想的是哪个数字?(只有4次机会哦)")
guess = int(temp)
if guess == answer:
print(" 啥?!你居然又双叒叕猜对了!")
print("猜对奖励:给自己一个最爱吃的耳光")
break
else:
if guess < answer:
print("小啦~")
else:
print("大啦~")
counts = counts - 1
temp = input("按0进入下一轮")
guess = int(temp)
import random
counts = 4
answer= random.randint(1, 10)
while counts > 0:
temp = input("再猜猜我心里想的是哪个数字?(只有4次机会哦)")
guess = int(temp)
if guess == answer:
print(" 哼!居然又猜对了!")
print("哼,不玩了,掰掰")
break
else:
if guess < answer:
print("小啦~")
else:
print("大啦~")
counts = counts - 1
temp = input("按7退出")
guess = int(temp)
if guess == 7:
print("掰掰")
|