摘要: import turtle turtle.speed(30) turtle.penup() off = True for y in range(-40, 30 + 1, 10): for x in range(-40, 30 + 1, 10): if off: turtle.goto(x, y) t 阅读全文
posted @ 2020-09-28 19:54 εε 阅读(150) 评论(0) 推荐(0)
摘要: import turtle turtle.right(60) turtle.forward(200) turtle.right(120) turtle.forward(200) turtle.right(120) turtle.forward(200) turtle.penup() turtle.f 阅读全文
posted @ 2020-09-28 19:22 εε 阅读(119) 评论(0) 推荐(0)
摘要: import turtle t=turtle.Turtle() t.penup() t.goto(0,-50)#设置起始坐标 t.pendown() t.begin_fill() t.fillcolor('black') t.circle(150,extent=180) t.circle(75,ex 阅读全文
posted @ 2020-09-28 18:58 εε 阅读(323) 评论(0) 推荐(0)
摘要: import turtle as p def drawCircle(x,y,c='red'): p.pu()# 抬起画笔 p.goto(x,y) # 绘制圆的起始位置 p.pd()# 放下画笔 p.color(c)# 绘制c色圆环 p.circle(30,360) #绘制圆:半径,角度 p.pens 阅读全文
posted @ 2020-09-28 18:53 εε 阅读(163) 评论(0) 推荐(0)