会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
JK8395
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
2022年10月15日
绘制正方形内嵌圆形
摘要: 基本方法: import turtle as t def draw(): t.hideturtle() t.pensize(4) t.color("red") t.goto(50,0) t.seth(90) t.forward(50) t.left(90) t.forward(100) t.left
阅读全文
posted @ 2022-10-15 09:51 Selina风乎舞雩
阅读(194)
评论(0)
推荐(0)
2022年10月14日
绘制花式菱形
摘要: 方法一>>函数封装绘制菱形: import turtle as t def draw(): t.hideturtle() angles=[0,30,60,90,120,150,180,210,240,270,300,330,360] l=60*(3**0.5) colors=["yellow"] t
阅读全文
posted @ 2022-10-14 23:33 Selina风乎舞雩
阅读(45)
评论(0)
推荐(0)
绘制风轮
摘要: 初始样式: import turtle as t t.begin_fill() t.fillcolor("red") t.seth(0) #改变方向朝向0° t.forward(180) t.right(90) #方向顺时针旋转90° t.circle(-100,45) #顺时针为-,逆时针为+,后
阅读全文
posted @ 2022-10-14 22:33 Selina风乎舞雩
阅读(44)
评论(0)
推荐(0)
绘制正方形
摘要: import turtle as t t.speed(1) #设置执行每一次时间为1秒 t.fillcolor("red") #设置填充颜色为红色 t.begin_fill() #设置填充的起始位置 t.ht() #隐藏画笔 t.fd(188) #当前方向走188像素forward t.lt(90)
阅读全文
posted @ 2022-10-14 19:46 Selina风乎舞雩
阅读(31)
评论(0)
推荐(0)
上一页
1
2
3
4
公告