|
发表于 2021-3-28 00:11:54
|
显示全部楼层
请回复您的答案^_^
>>>>> 问答题 <<<<<
第 0 题的答案是:
第 1 题的答案是:
import random
secret = random.randint (1,10)
print ("----------------------------Hello Kitty's classroom-------------------")
temp = input("Between 1-10, guess what number is in Hello Kitty's mind:")
guess = int(temp)
if guess == secret:
print("Wow, that's correct, you got it!")
print("no rewards, though, hahaha")
else:
while guess != secret:
if guess >secret:
print ('Too big, try again: ')
else:
print ('too small, try again: ')
print ("game over")
第 2 题的答案是:
第 3 题的答案是:
第 4 题的答案是:
第 5 题的答案是:
>>>>> 动动手 <<<<<
请将第 0 题的代码写在下方:
请将第 1 题的代码写在下方: |
|