三种,数码管的编写:1单段数码管,2自定义时间,3系统时间(补充)
1, 单一数码管的简单编写
main()
结果如下:
2,函数数码管—书写日期
from turtle import *
from time import *
def drawLine(draw):
if draw:
pendown() #落笔
else:
penup() #抬笔
fd(80)
right(90)
def drawLine(draw):
pendown() if dra