用python的turtle库画皮卡丘

时间:2021-10-30 07:23:30

 

20180406027 邓睿涵

20180406064 王茜

from turtle import *
screensize(650,500,"yellow")
setup(800,550)
penup()
goto(-185,65)
pendown()
pensize(5)
color("black")
begin_fill()
circle(50,360)
end_fill()
penup()
goto(-210,110)
pendown()
pensize(5)
color("white")
begin_fill()
circle(20,360)
end_fill()

penup()
goto(185,65)
pendown()
pensize(5)
color("black")
begin_fill()
circle(50,360)
end_fill()
penup()
goto(160,110)
pendown()
pensize(5)
color("white")
begin_fill()
circle(20,360)
end_fill()

penup()
goto(-270,-130)
pendown()
color("red")
begin_fill()
circle(75,360)
end_fill()

penup()
goto(270,-130)
pendown()
color("red")
begin_fill()
circle(75,360)
end_fill()

penup()
color("black")
begin_fill()
pensize()
goto(0,30)
seth(30)
pendown()
fd(30)
penup()
seth(120)
pendown()
circle(30,120)
penup()
seth(150)
pendown()
color("black")
fd(-30)
end_fill()

penup()

goto(0,5)
seth(190)
pensize(3)
pendown()
fd(130)
seth(150)

circle(-30,50)
penup()
goto(0,5)
seth(-10)
pensize(3)
pendown()
fd(130)

seth(30)

circle(30,50)


penup()
goto(-100,-15)
seth(290)
pendown()
fd(180)
penup()
goto(100,-15)
seth(-110)
pendown()
fd(180)
circle(-40,140)