turtle绘制当前时间--数码管方式与科赫雪花小包裹
import turtle,timedef drawGap(): turtle.penup() turtle.fd(5)def drawLine(draw): drawGap() turtle.pendown() if draw else turtle.penup() turtle.fd(40) drawGap() turtle.right(90)def drawDigit(digit): drawLine(True) if digi.
原创
2022-01-22 22:59:20 ·
138 阅读 ·
0 评论