用户:
YT不是学渣查看:0 回复:3 评论:0 创建时间:2022-12-24T11:29:02
【作品展示】

【作品介绍】
简单的教程,不用管封面
【作品源代码】
import time
import random
print('Hello,I am...')
time.sleep(1)
print('Oh, I forgot my lines.')
time.sleep(1)
print('Wait!Let Me Look for my script.')
time.sleep(1)
print('Clay.Where is my script?')
time.sleep(1)
print('C:I do not know.What happened?')
time.sleep(1)
print('There is a new player.')
time.sleep(1)
print('C:Oh,yes.Hi,my name is Clay.')
name = input('What is your name?(只填名字)')
print('C:', name, '.It is good name')
time.sleep(1)
print('C:Let us play a game.')
time.sleep(1)
print('C:Guess the numbers.')
time.sleep(1)
print('It is interesting game.')
time.sleep(0.7)
print(name, ':What is your name?')
time.sleep(1)
print('S:My name?My name is sans.Okay.The game begins')
the_number = random.randint(1, 100)
guess = int(input('Choose a number from 1 to 100,please'))
number_of_times = 0
while (the_number != guess):
if (guess > the_number):
print(guess, 'Big')
number_of_times = (number_of_times + 1)
if (guess < the_number):
print(guess, 'Small')
number_of_times = (number_of_times + 1)
guess = int(input('Again:'))
print(the_number)
if (number_of_times >= 5):
print('C and S:You are stupid')
if (number_of_times < 5 and number_of_times >= 2):
print('C and S:You are good')
if (the_number == 1):
print('C and S:You are clever')
print('C:Do not be happy Too Early')
print('C: There are more games.They are waiting for you')
time.sleep(1)
print('Narrator:End')
time.sleep(0.3)
print('作者的话:等会!我先说一下,我是中国人,只所以用英文是因为代码本身就是英文,为了在打代码时不那么违和,就用英文了.')
print('而且作者才六年级.所以用英文可以用来提高我的英语水平,这个系列也确实是正如Clay所说会不停更新,所有游戏都是编程猫教程里的,后面可能会出现我自创的.')
【提示】
部分含有Python第三方库相关内容的作品,在海龟编辑器网页端无法运行哦!如遇到这种情况,可以打开下面的链接,下载海龟编辑器客户端:
https://python.codemao.cn