用户:
新柯基影喵查看:0 回复:0 评论:0 创建时间:2021-05-15T13:31:50
【作品展示】

【作品介绍】
开心,一个多小时终于把代码写好了!!!
【作品源代码】
from turtle import *
def my_goto(x,y):
penup()
goto(x,y)
pendown()
def eyes():
tracer(False)
a = 2.5
for i in range(120):
if 0 <= i <30 or 60 <= i <90:
a -= 0.05
lt(3)
fd(a)
else:
a += 0.05
lt(3)
fd(a)
tracer(True)
def face():
fd(183)
fillcolor('#ffffff')
begin_fill()
lt(45)
circle(120,100)
seth(90)
eyes()
seth(180)
penup()
fd(60)
pendown()
seth(90)
eyes()
penup()
seth(180)
fd(喵)
pendown()
seth(215)
circle(120,100)
end_fill()
penup()
circle(150,40)
pendown()
fillcolor('#00a0de')
begin_fill()
circle(150,280)
end_fill()
fillcolor('#e70010')
begin_fill()
seth(0)
fd(200)
circle(-5,90)
fd(10)
circle(-5,90)
fd(207)
circle(-5,90)
fd(10)
circle(-5,90)
end_fill()
face()
def black_eyes():
seth(0)
my_goto(-20,195)
fillcolor('#000000')
begin_fill()
circle(13)
end_fill()
pensize(6)
my_goto(20,205)
seth(75)
circle(-10,150)
pensize(3)
my_goto(-17,200)
seth(0)
fillcolor('#ffffff')
begin_fill()
circle(5)
end_fill()
my_goto(0,0)
def nose():
my_goto(-10,158)
fillcolor('#e70010')
begin_fill()
circle(20)
end_fill()
def mouth():
my_goto(5,148)
seth(270)
fd(100)
seth(0)
circle(120,50)
seth(230)
circle(-120,100)
def beard():
my_goto(-37,135)
seth(165)
fd(60)
my_goto(-37,125)
seth(180)
fd(60)
my_goto(-37,115)
seth(193)
fd(60)
my_goto(37,135)
seth(15)
fd(60)
my_goto(37,125)
seth(0)
fd(60)
my_goto(37,115)
seth(-13)
fd(60)
nose()
mouth()
beard()
black_eyes()
my_goto(70,-100)
write('新基柯影喵',font=('Bradley Hand ITC',30,'bold'))
mainloop()
【提示】
部分含有Python第三方库相关内容的作品,在海龟编辑器网页端无法运行哦!如遇到这种情况,可以打开下面的链接,下载海龟编辑器客户端:
https://python.codemao.cn