ziheng - 多啦A梦

# 给一个圆形填充蓝色  circle
import turtle as t


def face():
    """画脸"""
    t.shape("turtle")
    t.color("black")
    t.fillcolor("blue")
    t.begin_fill()
    t.circle(150)
    t.end_fill()
    t.fillcolor("white")
    t.begin_fill()
    t.circle(120)
    t.end_fill()


def eye():
    # 抬笔
    t.up()
    t.left(90)
    t.fd(240)
    t.down()
    t.fillcolor("white")
    t.begin_fill()
    t.circle(30)
    t.end_fill()
    # 点 dot
    t.dot(20)

t.speed(0)
face()
eye()

t.done()










发布了390 篇原创文章 · 获赞 19 · 访问量 1万+

猜你喜欢

转载自blog.csdn.net/houlaos/article/details/104511068