用户:
你觉得是啥查看:0 回复:4 评论:0 创建时间:2022-08-13T20:07:43
【作品展示】

【作品介绍】
自 己 打 字
【作品源代码】
import time
import turtle
def tp(a,s):
time.sleep(a)
print(s)
print('你叫什么名字?')
kfc = input('')
time.sleep(1)
print('你好', kfc)
time.sleep(1)
print('我叫Tom')
time.sleep(1)
print('对了,你多少岁了')
duoshaosuile = input('')
print('我今年100岁了')
time.sleep(1)
print('你是什么时候出生的?')
chushen = input('')
time.sleep(1)
print('这样吧,我给你画一副画吧')
time.sleep(1)
print('会很久')
time.sleep(1)
print('你要看吗?')
yao = input('')
if(yao == '要'):
time.sleep(1)
t = turtle.Pen()
for i in range(120):
for a in range(120):
t.forward(1)
t.left(3)
t.right(3)
print('让我再画一副')
t.goto(0, 0)
t.clear()
time.sleep(1)
for r in range(120):
for q in range(4):
t.forward(90)
t.left(90)
t.right(3)
print('好看吧!')
time.sleep(1)
print(kfc, '你可以按住Ctrl和Shift跟S,这样就可以截图了')
time.sleep(1)
print('对了,你的爱好是什么啊?')
ai = input('')
time.sleep(1)
print('哦,你的爱好是', ai, '呀,我喜欢编程')
time.sleep(1)
print('你喜欢吃什么水果?')
shui = input('')
time.sleep(1)
print('对不起,我不喜欢吃', shui)
time.sleep(1)
print('还有哦')
time.sleep(9)
print('好无聊!')
time.sleep(1)
print("你喜欢什么游戏呀?")
yx = input("")
time.sleep(1)
print('你喜欢', yx, '呀')
time.sleep(1)
print('你猜我喜欢什么?')
input('')
print('错!我不玩游戏...')
time.sleep(1)
print('你喜欢在那里吃饭呀?')
f = input('')
time.sleep(1)
print('吃', shui, '吗?还是玩', yx, '呀?')
input('')
time.sleep(1)
print('你们', duoshaosuile, '岁的人喜欢干啥呀?')
gai = input('')
time.sleep(1)
print('你知道从1加到10000的和是多少吗?')
j = input('')
if (j == 500500):
time.sleep(1)
print('你真聪明')
else:
print('你错了')
asdfg = 0
asdf = 0
for www in range(1, 10001):
asdfg + 1
asdf + asdfg
time.sleep(1)
print('正确答案是', asdf, '!,才怪')
time.sleep(1)
print(kfc, '你要不要玩石头剪刀布?')
shi = input('')
if (shi == '要'):
print('那开始吧!')
da = input('')
if (da == '石头'):
print('布')
if (da == '剪刀'):
print('石头')
if (da == '布'):
print('剪刀')
if (da != '剪刀' or '石头' or '布'):
print('抱歉,我听不懂你说的是什么')
time.sleep(1)
print('我赢了!')
else:
time.sleep(1)
print("对不起,我听不懂你在说什么")
time.sleep(1)
print('你今天去', f, '吃饭了吗?')
input('')
time.sleep(1)
print('我呢,今天去“九毛九”吃饭了')
time.sleep(1)
print('聊了这么久你还记得我叫什么吗?')
lkj = input('')
if (lkj == 'Tom'):
time.sleep(1)
print('你答对了!')
if (lkj != "Tom"):
time.sleep(1)
print('我要你说出你的名字!')
time.sleep(1)
print('算了')
time.sleep(1)
print('哎!时间不早了,我要回家了!')
time.sleep(1)
print('再见!', kfc, '!')
time.sleep(1)
print('第二天')
time.sleep(2)
print('嗨,', kfc, ',早上好')
time.sleep(1)
print('我给你看一个好看的')
time.sleep(1)
print('--------------------------------------')
time.sleep(1)
print('a')
time.sleep(1)
print(' a')
time.sleep(1)
print(' a')
time.sleep(1)
print(' a')
time.sleep(1)
print(' a')
time.sleep(1)
print(' a')
time.sleep(1)
print('a')
time.sleep(1)
print('--------------------------------------')
time.sleep(1)
print(kfc, '好看吗?')
haokanma = input('')
if (haokanma != '好看'):
time.sleep(1)
print('......')
time.sleep(1)
print('你去', f, '吃饭了吗?')
input('')
time.sleep(1)
print('反正我去', f, '吃饭了')
time.sleep(1)
print('你唱一首歌吧!')
time.sleep(1)
print('对着屏幕唱就行了')
time.sleep(10)
print('好了')
time.sleep(1)
print(kfc,'你唱歌还不错嘛!')
time.sleep(1)
print('以后可以当个歌手')
time.sleep(1)
print('你玩',yx,'了吗?')
input('')
time.sleep(1)
print('哦')
time.sleep(1)
print('那你吃', shui, '了吗?')
input('')
time.sleep(1)
print('你喜欢什么颜色?')
yanse = input('')
time.sleep(1)
print(yanse,',我也喜欢',yanse,'!')
time.sleep(1)
print('你为什么喜欢',yanse,'呀?')
input('')
time.sleep(1)
print('哦,那你知道我为什么喜欢',yanse,'吗?')
time.sleep(1)
print('没有为什么,我就是喜欢',yanse,'没有理由!')
time.sleep(1)
print('哎,我又忘记你们喜欢干什么了!')
input()
time.sleep(1)
time.sleep(1)
print('Tom,该回家吃饭了!')
time.sleep(1)
print('哦,妈妈!')
time.sleep(1)
print('我回家了,')
time.sleep(1)
print('拜拜')
time.sleep(2)
print('第三天')
time.sleep(2)
print('hi',kfc,'我们又见面了!')
time.sleep(1)
print('今天我们来玩猜数字吧!')
wsad = input('')
wsa = wsad % 2
if wsa == 1:
print('你猜对了!恭喜!')
else:
print('你没猜对!')
time.sleep(1)
print('要不要再来一次?')
zd = input('')
if zd == '要':
time.sleep(1)
wsad = input('')
wsad = wsad % 2
if wsad == 1:
time.sleep(1)
print('你猜对了!恭喜!!')
else:
time.sleep(1)
print('你没猜对哦!')
else:
time.sleep(1)
print('好吧!')
time.sleep(1)
print('对了,我给你做了一个档案')
print('--------------------------------------------------')
print('姓名:',kfc)
print('年龄:',duoshaosuile)
print('出生日期:',chushen)
print('爱好:',ai)
print('--------------------------------------------------')
time.sleep(1)
print('还不错,')
time.sleep(1)
print('下回我再完善')
time.sleep(1)
print('我最近又学习了一幅画')
time.sleep(1)
print('你要不要看?')
time.sleep(1)
print('还是会很久')
qwer = input('')
if qwer == '要':
t.goto(0, 0)
t.clear()
for i in range(120):
for a in range(3):
t.forward(100)
t.left(120)
t.right(3)
print('我只能再玩一会了!')
time.sleep(1)
print('得快点!')
time.sleep(1)
print('你再唱一首歌吧!')
time.sleep(1)
print('对着屏幕唱')
time.sleep(10)
print('Tom,回家了!要上课了!')
time.sleep(1)
print('我走了!')
time.sleep(1)
print('拜拜!')
time.sleep(1)
print('第四天')
tp(1,'hi,',kfc,'又见面了!')
tp(1,'你今天过得好吗?')
tp(1,'我告诉你,其实那个石头剪刀布游戏是我作弊了,还有那里的bug是作者故意加的,还有前段的bug也是')
tp(1,'我明天要搬家了')
tp(1,'但以后绝对会回来!')
tp(1,'我要回家搬箱子了')
tp(0.5,'拜拜')
tp(1,'第五天')
tp(1,'我走了拜拜!')
tp(2,'彩蛋')
tp(1,'我打算几天后出第二部')
tp(1,'石头剪刀布游戏的dug确实是我做的')
tp(1,'其实Tom是我的英文名')
tp(1,'总之,敬请期待')
tp(1,'编程:Tom')
tp(1,'编剧:Tom')
tp(1,'发布:Tom')
tp(0.5,'-----------------------------------------------------------------------------------')
【提示】
部分含有Python第三方库相关内容的作品,在海龟编辑器网页端无法运行哦!如遇到这种情况,可以打开下面的链接,下载海龟编辑器客户端:
https://python.codemao.cn