自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(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关注的人

提示
确定要删除当前文章?
取消 删除