import turtle as t t.shape('turtle') # 不画线,移到(0,200) t.penup() t.goto(0,200) t.pendown() # 画线(0,200)——>(0,0) t.goto(0,0) # 画长方形(0,0)——>(50,0)——>(50,-25)——>(-50,-25)——>(-50,0)——>(0,0) t.setx(50) t.sety(-25) t.setx(-50) t.sety(0) t.setx(0) # 不画线,移到(-50,-25) t.penup() t.goto(-50,-25) t.pendown() # 画梯形(-50,-25)——>(50,-25)——>(150,-75)——>(-150,-75)——>(-50,-25) t.setx(50) t.goto(150,-75) t.setx(-150) t.goto(-50,-25) #不画线,移到(0,-100) t.penup() t.goto(0,-100) t.pendown() #画圆 t.circle(30) t.done()