import turtle as t #导入turtle模块,起别名t t.forward(100) #画边长为100的线段 t.right(144) #原地右转144度 t.forward(100) #画边长为100的线段 t.right(144) #原地右转144度 t.forward(100) #画边长为100的线段 t.right(144) #原地右转144度 t.forward(100) #画边长为100的线段 t.right(144) #原地右转144度 t.forward(100) #画边长为100的线段 t.right(144) #原地右转144度 t.done() #停止画笔绘制,但绘图窗体不关闭