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

阅读 53

2022-04-14


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)

0 0 举报