大家好,小编来为大家解答以下问题,python的皮卡丘如何写代码,python皮卡丘编程代码教程,现在让我们一起来看看吧!

"""Python学习交流群:960410445"""
importturtle#画鼻子
defdrawNose():
turtle.penup()
turtle.seth(90)
turtle.fd(100)
turtle.pendown()
turtle.begin_fill()
turtle.fillcolor("black")
turtle.seth(45)
turtle.fd(25)
turtle.seth(135)
turtle.circle(25, 95)
turtle.seth(315)
turtle.fd(25)
turtle.end_fill()#画眼睛
defdrawEyes(seth, fd, r):
turtle.penup()
turtle.seth(seth)
turtle.fd(fd)
turtle.pendown()
turtle.begin_fill()
turtle.fillcolor("black")
turtle.circle(50)
turtle.end_fill()
turtle.penup()
turtle.circle(50, r)
turtle.pendown()
turtle.begin_fill()
turtle.fillcolor("white")
turtle.circle(20)
turtle.end_fill()#画脸
defdrawFace(seth, fd):
turtle.penup()
turtle.seth(seth)
turtl
373

被折叠的 条评论
为什么被折叠?



