def drawDight(i):
drawLine(True) if i in [2,3,4,5,6,8,9] else drawLine(False)
drawLine(True) if i in [0,1,3,4,5,6,7,8,9] else drawLine(False)
drawLine(True) if i in [0,2,3,5,6,8,9] else drawLine(False)
drawLine(True) if i in [0,2,6,8] else drawLine(False)
left(90) #画笔向上旋转90度
drawLine(True) if i in [0,4,5,6,8,9] else drawLine(False)
drawLine(True) if i in [0,2,3,5,6,7,8,9] else drawLine(False)
drawLine(True) if i in [0,1,2,3,4,7,8,9] else drawLine(False)
left(180) #画笔改为反方向旋转180度
penup() #为绘制第二个数字确定位置,向右移动20px
fd(20)
def drawDight(i): drawLine(True) if i in [2,3,4,5,6,8,9] else drawLine(False) drawLine(True) if i in [0,1,3,4,5,6,7,8,9] else drawLine(False) drawLine(True) if i in [0,2,3,5,6,8,9] else drawLine(False) drawLine(True) if i in [0,2,6,8] else.