python代码画当前时间

上传:xujian64074 浏览: 13 推荐: 0 文件:PDF 大小:17.14KB 上传时间:2020-12-22 21:51:44 版权申诉
import turtle,time import random def drawLine(draw): colors = ['red','black', 'green', 'blue', 'yellow', 'purple','mauve','scarlet'] a=random.randint(1,8) turtle.pencolor(colors[8%a]) turtle.penup() turtle.fd(5) turtle.pendown() if draw else turtle.penup() turtle.fd(35)
上传资源
用户评论