0
点赞
收藏
分享

微信扫一扫

Python编程实践 turtle实例 美国队长盾牌

古得曼_63b6 2022-04-14 阅读 53
python


import turtle as t
t.penup()
t.goto(0,-200)
t.pendown()
t.color("red")

t.begin_fill()
t.circle(200),
t.end_fill()

t.penup()
t.goto(0,-150)
t.pendown()
t.color("white")

t.begin_fill()
t.circle(150)
t.end_fill()

t.penup()
t.goto(0,-100)
t.pendown()
t.color("red")

t.begin_fill()
t.circle(100)
t.end_fill()

t.penup()
t.goto(0,-50)
t.pendown()
t.color("blue")

t.begin_fill()
t.circle(50)
t.end_fill()

t.penup()
t.goto(-40,10)
t.pendown()
t.color("white")

t.begin_fill()
for i in range(5):
  t.forward(80)
  t.right(144)
t.end_fill()watermark,type_d3F5LXplbmhlaQ,shadow_50,text_Q1NETiBAY2FpICBjYWk=,size_20,color_FFFFFF,t_70,g_se,x_16

 

举报

相关推荐

0 条评论