|
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
废话不多说,上代码:
- import turtle as t
- t.bgcolor("white")
- t.color("black")
- # t.tracer(0)
- t.speed(0)
- t.pensize(1)
- t.penup()
- t.left(90)
- t.fd(100)
- t.left(90)
- t.pendown()
- t.begin_fill() # 开始填充
- t.circle(50, -180)
- t.circle(-50, -180)
- t.circle(-100, 180)
- t.end_fill() # 填充颜色完毕
- t.circle(-100, 180)
- t.penup()
- t.right(90)
- t.fd(50)
- t.pendown()
- t.dot(25, "black")
- t.penup()
- t.fd(100)
- t.pendown()
- t.dot(25, "white")
- t.penup()
- t.fd(50)
- t.pendown()
- t.right(90)
- t.begin_fill()
- t.circle(-100, 180)
- t.left(90)
- t.fd(300)
- t.left(90)
- t.fd(400)
- t.left(90)
- t.fd(800)
- t.left(90)
- t.fd(400)
- t.left(90)
- t.fd(300)
- t.end_fill()
- t.hideturtle()
- t.done()
复制代码
这里用的是基本的turtle库
最后,希望各位鱼油给我评个分吧!!! |
|