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