import turtle as t
#导入模块
t.showturtle()
#展示箭头
t.penup()
#抬笔
t.goto(0,-100)
#移动到坐标
t.pendown()
#落笔
t.color("#000")
#线条颜色
t.fillcolor("#1e90ff")
#定义形状颜色
t.begin_fill()
#开始填色
t.circle(180)
#画圆
t.end_fill()
#结束填色
t.penup()
#抬笔
t.goto(0,-90)
#移动到坐标
t.pendown()
#落笔
t.color("#000")
#线条颜色
t.fillcolor("#FFFFFF")
#定义形状颜色
t.begin_fill()
#开始填色
t.circle(150)
#画圆
t.end_fill()
#结束填色
t.penup()
t.goto(-50,60)
t.pendown()
t.circle(30)
t.penup()
t.goto(-40,70)
t.pendown()
t.fillcolor("#000")
t.begin_fill()
t.circle(20)
t.end_fill()
#以上是左眼睛
t.penup()
t.goto(50,60)
t.pendown()
t.circle(30)
t.penup()
t.goto(40,70)
t.pendown()
t.fillcolor("#000")
t.begin_fill()
t.circle(20)
t.end_fill()
#以上是右眼睛
t.penup()
t.goto(-30,30)
t.pendown()
t.goto(-100,50)
t.penup()
t.goto(-30,10)
t.pendown()
t.goto(-100,10)
t.penup()
t.goto(-30,-10)
t.pendown()
t.goto(-100,-30)
#以上是左胡子
t.penup()
t.goto(30,30)
t.pendown()
t.goto(100,50)
t.penup()
t.goto(30,10)
t.pendown()
t.goto(100,10)
t.penup()
t.goto(30,-10)
t.pendown()
t.goto(100,-30)
#以上是右胡子
t.penup()
t.goto(0,50)
t.pendown()
t.width(5)
t.right(90)
t.forward(100)
t.penup()
t.goto(-56,-30)
t.pendown()
t.left(45)
t.circle(80,90)
t.right(45)
t.penup()
t.goto(0,45)
t.width(1)
t.pendown()
t.fillcolor("red")
t.begin_fill()
t.circle(10)
t.end_fill()
t.penup()
t.goto(0,53)
t.width(1)
t.color("#fff")
t.pendown()
t.fillcolor("#fff")
t.begin_fill()
t.circle(3)
t.end_fill()
#以上是嘴巴部分
t.penup()
t.goto(300,300)
丑丑的哆啦A梦
最新推荐文章于 2025-05-14 21:45:37 发布