Python 海龟绘图 100 题——第 21 题
综合应用,使用重复命令绘制六边形。
import turtle as t for i in range(0, 6): t.fd(80) t.rt(360/6)