画一组同心圆
作者:互联网
import turtle as a m = eval(input())#圆的半径 n = eval(input())#圆的个数 c = input()#画笔的颜色 a.pencolor("{}".format(c)) for i in range(n): a.penup() a.goto(0, -20 * i) a.pendown() a.circle(m) m+=20 a.hideturtle() a.done()
标签:turtle,20,goto,一组,同心圆,done,eval,input 来源: https://www.cnblogs.com/Eikon/p/13727216.html