猜数字游戏学习贴
"""游戏小设计,嘉门"""import random
counts = 5
x = random.randint(1,10)
while counts > 0:
temp = input("猜猜我的主\"圣嘉然\"最喜欢的数字")
guess = int(temp)
if guess == x:
print("猜对了,嘉心糖真棒!")
break
else:
if guess < 8:
print("小了!番茄炒蛋拳!!!")
else:
print("大了!嘉心糖屁用没有→_→")
counts = counts - 1
print("游戏结束!嘉心糖要好好吃饭哦!!!")
:time::L:handshake
页:
[1]