print("-----------------hello,beyond--------------")
temp = input("猜猜我心里想的数字:")
guess = int(temp)
if guess == 2:
print("ok")
else:
print("error")
print("game over!")
dir(__builtins__)
>>>help(input)
import random
print('--------hello beyond-------------')
secret = random.randint(1, 10)
guess = 0
count = 0
while (guess != secret) and (count != 3):
count += 1
temp = input("输入我心里想的数字(1-10):-)")
if (temp == ""):
if count != 3:
print("不要顽皮\n")
else:
print("你真不乖!")
else:
guess = int(temp)
if guess == secret:
print("fuck,你是我肚子里的蠕虫吗,啥都知道~")
print("哼,猜中了也没有奖励~")
else:
if guess > secret:
print("大了,笨蛋,连我在想什么都不知道")
else:
print("小了,小了,你怎么还猜不中!")
print("游戏结束,不玩啦,哈哈")