1. 首页
  2. 数据库
  3. 其它
  4. python代码画当前时间

python代码画当前时间

上传者: 2020-12-22 21:51:44上传 PDF文件 17.14KB 热度 15次
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)
下载地址
用户评论