# 导入turtle模块,起别名t import turtle as t for i in range(3): t.forward(100) # 画边长 t.left(120) # 左转120度 t.done()