用户:
小麦做的面包查看:0 回复:0 评论:0 创建时间:2022-01-09T10:53:50
【作品展示】

【作品介绍】
qwq
【作品源代码】
import random,math
from time import sleep
import matplotlib.pyplot as plt
from PIL import Image
def linesay(txt):
say(txt)
sleep(1)
line()
def e(user):
return user not in ('1','2')
def say(txt):
input('???:'+txt)
def inp(txt):
return input('???:'+txt)
def line(l=1):
for i in range(l):
print("\033[A"+' '*103+"\033[A")
def q(txt):
user = inp(txt)
if user == '1':
return 1
elif user == '2':
say('好吧,拜拜')
else:
return q(txt)
def main():
say('你好')
say('我要在你的电脑里放一个喵')
say('但是你要先下载一下喵')
if q('行吗? 1:行 2:不行 >>>'):
download()
def download():
say('好的')
say('开始下载')
print('下载喵中')
print('0.00%')
sleep(0.04)
line(2)
i=0
while i<100:
print('下载喵中')
print(str(round(i,2))+'%')
sleep(0.02)
i+=random.random()
line(2)
print('喵下载成功')
print('100.00%')
sleep(1)
say('哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈')
say('现在我能让你的电脑爆炸了')
say('现在我会让喵开始计时')
say('但是我也不知道会计时多长时间')
if q('开始计时吗? 1:开始 2:不开始 >>>'):
time()
def time():
t = random.randint(20, 30)
#t=0 ###
say("喵开始计时,不知道多少秒后爆炸")
while t>0:
print('剩余时间:', t)
sleep(random.random())
line()
t -= 1
print('剩余时间:', t)
sleep(1)
say('哈哈哈哈哈哈哈')
say('时间到了')
say('现在只需要加载一会就能爆炸啦:)')
if q('你要加载吗? 1:好啊 2:不要 >>>'):
load()
def load():
say('开始加载')
print('加载中')
i = 1
#i=999 ###
while math.log10(i) < 0.99:
print(str(round(math.log10(i)*100, 2))+'%')
sleep(0.2)
i = i+0.1
line()
i = 2
#i=100 ###
print('')
while i < 100:
line(1)
print('99.'+('9'*i)+'%')
sleep(0.2)
i += 1
sleep(5)
linesay('为什么加载不了?')
linesay('我的网好像有点卡...')
linesay('我连接不上亻')
linesay('为什么我不能完整地说讠')
linesay('发生亻')
for i in range(3):
print('???:网络连接中', end='', flush=True)
sleep(0.4)
for j in range(6):
print('.', end='', flush=True)
sleep(0.4)
print('')
line()
say('网络已连接')
sleep(3)
line(3)
print('加载完成')
print('100%')
say('ohhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh')
img = Image.open('boom.jpg')
plt.imshow(img)
plt.show()
main()
【提示】
部分含有Python第三方库相关内容的作品,在海龟编辑器网页端无法运行哦!如遇到这种情况,可以打开下面的链接,下载海龟编辑器客户端:
https://python.codemao.cn