.DokiDoki

导航

2020年9月21日 #

python绘制玫瑰花

摘要: import turtle # 设置初始位置 turtle.penup() turtle.left(90) turtle.fd(200) turtle.pendown() turtle.right(90) # 花蕊 turtle.fillcolor("red") turtle.begin_fill( 阅读全文

posted @ 2020-09-21 19:58 .DokiDoki 阅读(1061) 评论(0) 推荐(0) 编辑

python画小猪佩奇

摘要: 1 import turtle as t 2 3 4 def init_pen(): 5 ''' 6 初始化画笔的一些属性 7 ''' 8 t.pensize(4) # 设置画笔的大小 9 t.colormode(255) # 设置GBK颜色范围为0-255 10 t.color((255, 155 阅读全文

posted @ 2020-09-21 19:44 .DokiDoki 阅读(179) 评论(0) 推荐(0) 编辑