画奥运五环
作者:互联网
1 from turtle import* 2 coordA=(-110,0,110,-55,55) #五个图起点坐标的x值 3 coordB=(-25,-25,-25,-75,-75) #五个圆起点坐标的y值 4 colorA=('red','blue','green','yellow','black') 5 pensize(10) 6 for i in range(5): 7 pu() 8 pencolor(colorA[i]) 9 goto(coordA[i],coordB[i]) 10 pd() 11 circle(45) 12 hideturtle()
标签:colorA,25,coordB,coordA,五环,75,110,奥运 来源: https://www.cnblogs.com/02-12/p/12512891.html