六角形

import turtle as t
t.seth(30)
t.fd(100)
t.seth(-90)
t.fd(100)
t.seth(150)
t.fd(100)
t.seth(30)
t.fd(100/3)
t.seth(90)
t.fd(100/3)
t.seth(-30)
t.fd(100)
t.seth(-150)
t.fd(100)
t.seth(90)
t.fd(100)
t.done()

猜你喜欢

转载自www.cnblogs.com/dongyichen/p/12700370.html