- 博客(13)
- 收藏
- 关注
原创 Giant beast
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-08-14 20:22:21 464
原创 google
import turtle as t#主体t.pensize(50)t.pencolor("green")t.circle(50,-120)t.pencolor("yellow")t.circle(50,-120)t.pencolor("red")t.circle(50,-120)#dot修正t.penup()t.circle(50,120)t.pendown()t.pencolor("yellow")#t.dot(50)t.circle(50,60)t.penup()t.
2020-08-06 10:36:56 294
原创 绘图
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
原创 绘制月亮
import turtle#设置初始化变量window_w = turtle.window_width() #720window_h = turtle.window_height() #720print(window_w,window_h)#画天蓝色背景turtle.bgcolor("skyblue")#画下面的深海背景turtle.fillcolor("blue")turtle.begin_fill()turtle.forward(window_w*0.5)turtle.righ
2020-06-11 21:15:03 1709
原创 三色彩虹
import turtle#初始化操作,设定画笔粗细等属性turtle.pensize(20)turtle.penup()turtle.forward(200)turtle.pendown()turtle.left(90)pos_x = 200#绘制红色圈turtle.pencolor("red")turtle.circle(pos_x,180)#绘制橙色圈turtle.pencolor("orange")turtle.penup()turtle.goto(pos_x-10,0)
2020-06-10 20:52:19 308
原创 瞄准镜
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
原创 Turtle的使用(2)
import turtleturtle.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
原创 Turtle的使用(1)
import turtleturtle.pensize(10)turtle.forward(100)#turtle.dot(50)#turtle.backward(200)turtle.done()
2020-05-29 20:58:04 443
原创 绘制三色彩虹
import turtle#设置画笔大小为20turtle.pensize(20)turtle.left(90)#设置画笔颜色为红色turtle.pencolor('red')turtle.circle(100,180)turtle.penup()turtle.goto(0-10,0)turtle.left(180)turtle.pendown()turtle.pencolor("orange")turtle.circle(100-10,180)turtle.penup()
2020-05-10 12:13:44 454
原创 绘制七色彩虹
import turtleturtle.pensize(20)turtle.left(90)#绘制红色turtle.pencolor("red")turtle.circle(100,180)#橙色turtle.pensize(18)turtle.left(180)turtle.penup()turtle.goto(-2,0)turtle.pendown()x,y = turtle.pos()turtle.setpos(x-5,y)turtle.pencolor("orange
2020-05-09 22:16:07 557
原创 turtle-绘制简易瞄准镜
import turtle#初始化设置turtle.penup()turtle.pensize(5)turtle.goto(0,-100)turtle.pendown()#画圆turtle.circle(100,360)turtle.pensize(1)#绘制十字星turtle.penup()turtle.goto(-120,0)turtle.pendown()turtle.forward(240)turtle.penup()turtle.goto(0,-120)tur
2020-05-09 22:11:40 668
原创 turtle-绘制铅笔
绘制铅笔import turtleturtle.fillcolor(1,1,0)turtle.begin_fill()turtle.circle(25,180)turtle.forward(250)turtle.left(30)turtle.forward(50)turtle.left(120)turtle.forward(50)turtle.left(30)turtle.forward(250)turtle.end_fill()turtle.hideturtle()tu
2020-05-09 22:07:47 392
原创 victor - 初识turtle
import turle #导入turtle库turtle.forward(200) #设置绘制的距离turtle.done() #绘制完成
2020-04-15 15:34:42 105
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人