Python画美国盾牌

Python画美国盾牌,第1张

个人感觉,美队盾牌还是挺帅的。

上上上代码:

import turtle as t
t.speed(15)
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,-160)
t.pendown()
t.color('white')
t.begin_fill()
t.circle(160)
t.end_fill()

t.penup()
t.goto(0,-120)
t.pendown()
t.color('red')
t.begin_fill()
t.circle(120)
t.end_fill()

t.penup()
t.goto(0,-80)
t.pendown()
t.color('blue')
t.begin_fill()
t.circle(80)
t.end_fill()

t.penup()
t.goto(-75,25)
t.pendown()
t.color('white')
t.begin_fill()
for i in range(5):
    t.forward(155)
    t.right(144)
t.end_fill()
t.hideturtle()
t.done()

运行结果:

 哪里看不懂可以私信我,我很有耐心的,人也超好的。一起交流进步。

欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/langs/942637.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-05-18
下一篇2022-05-18

发表评论

登录后才能评论

评论列表(0条)

    保存