- 博客(4)
- 收藏
- 关注
原创 开启python之旅——幻彩螺旋
幻彩螺旋import turtle as tt.reset()t.screensize(800,800,‘black’)t.pensize(2)t.speed(‘fastest’)colors=[‘yellow’,‘red’,‘green’,‘purple’]for x in range(200):t.fd(2*x)t.color(colors[x%4])t.lt(89)t.hideturtle()t.done()进阶版import turtle as tt.reset()
2020-06-24 10:15:40 373 2
原创 开启python之旅——蝴蝶结
蝴蝶结import turtle as tt.screensize(500,800,‘white’)t.speed(“fastest”)t.up()t.goto(0,0)t.pd()t.pensize(3)t.color(‘purple’,‘pink’)t.begin_fill()t.lt(30)t.fd(100)t.rt(30)t.circle(-25,180)t.rt(180)t.circle(-25,180)t.rt(30)t.fd(200)t.lt(30)t.c
2020-06-22 20:26:47 1410 1
原创 开启python之旅——螺旋线
螺旋线import turtle as tt.speed(“fastest”)t.pensize(2)for x in range(100):t.fd(2x)t.lt(90)t.hideturtle()t.done()进阶版(圆形螺旋线)import turtle as tt.screensize(500,800,‘white’)t.speed(“fastest”)t.pensize(3)t.pencolor(‘purple’)for x in range(50):t.ci
2020-06-22 18:36:56 359
原创 开启python之旅——五角星
画图走起五角星:import turtle as tt.pensize(3)t.color(‘red’,‘yellow’)t.speed(10)t.begin_fill()for _ in range(5):t.fd(200)t.lt(144)t.end_fill()t.done()进阶版(太阳花):import turtle as tt.pensize(1)t.color(‘red’,‘yellow’)t.speed(10)t.begin_fill()for _ in
2020-06-22 11:57:05 277
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人