会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
大兔xx
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
2020年10月
7段数码管绘制
摘要: import turtle, datetime def drawGap(): turtle.up() turtle.fd(5) def drawLine(draw): drawGap() if(draw): turtle.down() else: turtle.up() turtle.fd(40)
阅读全文
posted @ 2020-10-18 23:21 大兔xx
阅读(105)
评论(0)
推荐(0)
2020年9月
turtle画小狗
摘要: from turtle import * screensize(500,500) #【头部轮廓】 pensize(5) home() seth(0) pd() color('black') circle(20,80)#0 circle(200,30)#1 circle(30,60)#2 circle
阅读全文
posted @ 2020-09-19 15:24 大兔xx
阅读(316)
评论(0)
推荐(0)
turtle画兔子
摘要: #绘制大耳朵兔 from turtle import * speed(10) #小兔的面部 color('pink') pensize(5) circle(radius=100)#脸 #眼睛 pencolor('black') #左眼 pu() goto(-45,92) pd() begin_fil
阅读全文
posted @ 2020-09-19 15:19 大兔xx
阅读(410)
评论(0)
推荐(0)
叠加等边三角形
摘要: import turtle as t t.pencolor("blue") #笔触为蓝色 #绘制外部大三角形 t.fd(200) t.seth(120) t.fd(200) t.seth(-120) t.fd(200) #绘制内部小三角形 t.seth(0) t.fd(100) t.seth(60)
阅读全文
posted @ 2020-09-15 23:08 大兔xx
阅读(79)
评论(0)
推荐(0)
六角形的绘制
摘要: import turtle turtle.penup() turtle.fd(-100) turtle.pendown() turtle.pensize(10) turtle.pencolor("green") turtle.left(30) turtle.forward(100) turtle.r
阅读全文
posted @ 2020-09-15 23:05 大兔xx
阅读(81)
评论(0)
推荐(0)
五角星
摘要: import turtle turtle.setup(500,500) turtle.fillcolor("red") turtle.begin_fill() for i in range(5): turtle.fd(100) turtle.right(144) turtle.end_fill()
阅读全文
posted @ 2020-09-15 22:59 大兔xx
阅读(90)
评论(0)
推荐(0)
上一页
1
2
3
公告