zijie
少儿编程Victor老师的小部落
快乐编程,愿每个小伙伴都能学有所成
展开
-
绘图
import turtle #初始化 turtle.bgcolor("blue") window_w=turtle.window_width() window_h=turtle.window_height() print (window_w,window_h) turtle.penup() turtle.goto(-360,300) turtle.pendown() #兽 turtle.fillcolor("black") turtle.begin_fill() turtle.right(90) turtl原创 2020-06-26 20:04:54 · 221 阅读 · 0 评论 -
瞄准镜
import turtle #画圆 turtle.penup() turtle.goto(0,-100) turtle.pendown() turtle.circle(100,360) #画直角线 turtle.penup() turtle.goto(-120,0) turtle.pendown() turtle.goto(120,0) turtle.penup() turtle.goto(0,120) turtle.pendown() turtle.goto(0,-120) #画圆弧 turtle.原创 2020-06-05 21:02:50 · 139 阅读 · 0 评论 -
Turtle的使用(2)
import turtle turtle.pensize(10) turtle.fillcolor(0,0,0) turtle.begin_fill() #告诉:准备填充下面的图形 turtle.circle(27,180) turtle.left(20) turtle.forward(80) turtle.left(140) turtle.forward(80) turtle.end_fill() #fill填充 告诉:填充上面的的图形完毕 turtle.done() ...原创 2020-05-29 20:59:40 · 370 阅读 · 0 评论 -
Turtle的使用(1)
import turtle turtle.pensize(10) turtle.forward(100) #turtle.dot(50) #turtle.backward(200) turtle.done()原创 2020-05-29 20:58:04 · 443 阅读 · 0 评论