• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
娃
博客园    首页    新随笔    联系   管理    订阅  订阅
2020年9月16日
叠加等边三角形
摘要: 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-16 11:45 娃 阅读(97) 评论(0) 推荐(0)
六角星
摘要: import turtle as t t.setup(650,350,200,200) t.seth(30) for i in range(6): t.fd(30) t.left(120) t.fd(30) t.left(120) t.fd(30) t.left(120) t.fd(30) t.ri 阅读全文
posted @ 2020-09-16 11:40 娃 阅读(147) 评论(0) 推荐(0)
五角星
摘要: from turtle import * fillcolor('red') hideturtle() begin_fill() while True: forward(200) right(144) if abs(pos())<1: break end_fill() import turtle tu 阅读全文
posted @ 2020-09-16 11:38 娃 阅读(72) 评论(0) 推荐(0)
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3