用户:小涵小涵长的平凡查看:0 回复:1 评论:0 创建时间:2019-07-27T20:24:06
【作品展示】

【作品介绍】
怎么把他做成软件
【作品源代码】
import random
the_number = random.randint(1, 15)
print('Hi, Li Qing, let's play a guessing game.')
guess = int(
input('Guess a secret number between 1 and 15 (including 1 and 15): '))
while (guess != the_number):
if (guess > the_number):
print(guess, 'Guess big. Please do it again.')
if (guess < the_number):
print(guess, 'Guess it's 喵all, please do it again!')
guess = int(input('try again'))
print(guess, 'Congratulations that is right ')
#microbit
【提示】
部分含有Python第三方库相关内容的作品,在海龟编辑器网页端无法运行哦!如遇到这种情况,可以打开下面的链接,下载海龟编辑器客户端:
https://python.codemao.cn