首页 > 其他 > 详细

六边形

时间:2020-03-17 17:11:11      阅读:66      评论:0      收藏:0      [点我收藏+]

import turtle as t
t.setup(650,350,200,200)
t.penup()
t.fd(-250)
t.pendown()
t.left(30)
t.fd(200)
t.right(120)
t.fd(300)
t.right(120)
t.fd(300)
t.right(120)
t.fd(100)
t.left(60)
t.fd(100)
t.right(120)
t.fd(300)
t.right(120)
t.fd(300)
t.right(120)
t.fd(200)
t.done()

 

技术分享图片

 

六边形

原文:https://www.cnblogs.com/xieyuhua/p/12511838.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!