其他分享
首页 > 其他分享> > 画奥运五环

画奥运五环

作者:互联网

import turtle as t
t.pensize(5)
coordA=(-110,0,110,-55,55)
coordB=(-25,-25,-25,-75,-75)
color=("red","blue","green","yellow","black")
for i in range(5):
t.penup()
t.goto(coordA[i],coordB[i])
t.pendown()
t.pencolor(color[i])
t.circle(45)
t.hideturtle()
t.done()

 

标签:25,coordB,coordA,color,五环,75,110,奥运
来源: https://www.cnblogs.com/lzw2019114243036/p/15337525.html