应用题
5.
使用turtle库绘制同心圆图形,效果如下图所示。阅读程序框架,补充横线处代码。
【正确答案】
import turtle as t
def DrawCetCircle(n):
t.penup()
t.goto(0,-n)
t.pendown()
t.circle(n)
for i in range(20,100,20):
DrawCctCircle(i)
t.hideturtle()
t.done()
【答案解析】
提交答案
关闭