用户:
黑夜随想查看:91 回复:0 评论:0 创建时间:2022-12-16T11:09:16
【作品展示】

【作品介绍】
病毒
【作品源代码】
import turtle
import time
import easygui
__Pen = turtle.Pen()
def my_1():
for __count in range(2):
print('喵')
def 哈哈哈():
__Pen.pencolor("#000000")
__Pen.goto(0, 0)
__Pen.pendown()
__Pen.right(90)
__Pen.backward(100)
__Pen.right(90)
__Pen.backward(100)
__Pen.right(90)
__Pen.backward(100)
__Pen.right(90)
__Pen.backward(100)
time.sleep(1)
__Pen.circle(50)
easygui.msgbox('你的电脑已经')
easygui.msgbox('中病毒了!!!')
if easygui.ynbox('是否继续?', ' ', ('是', '否')):
easygui.msgbox('病毒开始运行')
easygui.msgbox('喵!', '喵', '你干嘛 哈哈,哎哟~')
__Pen.pendown()
__Pen.forward(100)
__Pen.circle(50)
__Pen.circle(30, steps=5)
__Pen.goto(100, 100)
__Pen.setheading(90)
__Pen.write('喵')
else:
easygui.msgbox('选择是!')
__Pen.forward(100)
__Pen.circle(50)
__Pen.circle(50)
__Pen.circle(30, steps=5)
__Pen.goto(100, 100)
__Pen.setheading(90)
__Pen.write('喵')
__Pen.forward(100)
__Pen.circle(50)
__Pen.circle(30, steps=5)
__Pen.goto(100, 100)
__Pen.setheading(90)
__Pen.write('喵')
__Pen.pendown()
__Pen.forward(100)
__Pen.circle(50)
__Pen.circle(30, steps=5)
__Pen.goto(100, 100)
__Pen.setheading(90)
__Pen.write('喵')
if easygui.ynbox('是否继续?', ' ', ('是', '否')):
easygui.msgbox('喵!', '喵', '你干嘛 哈哈,哎哟~')
__Pen.forward(100)
__Pen.circle(50)
__Pen.circle(50)
__Pen.circle(30, steps=5)
__Pen.setheading(90)
__Pen.write('喵')
__Pen.forward(100)
__Pen.circle(50)
__Pen.circle(30, steps=5)
__Pen.goto(100, 100)
__Pen.setheading(90)
__Pen.write('喵')
__Pen.pendown()
__Pen.forward(100)
__Pen.circle(50)
__Pen.circle(30, steps=5)
__Pen.goto(100, 100)
__Pen.setheading(90)
__Pen.write('喵')
__Pen.goto(100, 100)
__Pen.pendown()
__Pen.forward(100)
__Pen.circle(50)
__Pen.circle(30, steps=5)
__Pen.goto(100, 100)
__Pen.setheading(90)
__Pen.write('喵')
time.sleep(1)
__Pen.goto(0, 0)
__Pen.forward(200)
__Pen.circle(50)
__Pen.circle(50)
__Pen.circle(30, steps=5)
__Pen.setheading(90)
__Pen.write('喵')
__Pen.forward(100)
__Pen.circle(50)
__Pen.circle(30, steps=5)
__Pen.goto(100, 100)
__Pen.setheading(90)
__Pen.write('喵')
__Pen.pendown()
__Pen.forward(100)
__Pen.circle(50)
__Pen.circle(30, steps=5)
__Pen.goto(100, 100)
__Pen.setheading(90)
__Pen.write('喵')
__Pen.goto(100, 100)
__Pen.pendown()
__Pen.forward(100)
__Pen.circle(50)
__Pen.circle(30, steps=5)
__Pen.goto(100, 100)
__Pen.setheading(90)
__Pen.write('喵')
time.sleep(1)
__Pen.goto(100, 100)
__Pen.setheading(90)
__Pen.write('喵')
time.sleep(10)
__Pen.setheading(90)
__Pen.write('喵')
time.sleep(10)
else:
for __count in range(3):
easygui.msgbox('!!!')
easygui.msgbox('喵!', '喵', '你干嘛 哈哈,哎哟~')
__Pen.pendown()
__Pen.forward(100)
__Pen.circle(50)
__Pen.circle(30, steps=5)
__Pen.goto(100, 100)
__Pen.setheading(90)
__Pen.write('喵')
time.sleep(1)
__Pen.circle(30, steps=5)
__Pen.goto(100, 100)
__Pen.setheading(90)
__Pen.write('喵')
__Pen.circle(100, steps=5)
__Pen.goto(100, 100)
__Pen.setheading(90)
__Pen.write('喵')
__Pen.circle(30, steps=5)
__Pen.goto(100, 100)
__Pen.setheading(90)
__Pen.write('喵')
__Pen.circle(100, steps=5)
__Pen.goto(100, 10)
__Pen.setheading(90)
__Pen.write('喵')
__Pen.circle(10, steps=5)
__Pen.goto(20, 10)
__Pen.setheading(90)
__Pen.write('喵')
__Pen.forward(100)
__Pen.right(90)
__Pen.forward(100)
__Pen.setx(100)
__Pen.forward(100)
__Pen.right(90)
__Pen.forward(100)
time.sleep(10)
my_1()
#开始进入Python的世界
哈哈哈()
#开始进入Python的世界
__Pen.fillcolor("#000000")
【提示】
部分含有Python第三方库相关内容的作品,在海龟编辑器网页端无法运行哦!如遇到这种情况,可以打开下面的链接,下载海龟编辑器客户端:
https://python.codemao.cn