??.py 文件源码

python
阅读 24 收藏 0 点赞 0 评论 0

项目:MyKnowledge 作者: guofei9987 项目源码 文件源码
def Tick():
    # ?????????
    t = datetime.datetime.today()
    second = t.second + t.microsecond * 0.000001
    minute = t.minute + second / 60.0
    hour = t.hour + minute / 60.0
    secHand.setheading(6 * second)
    minHand.setheading(6 * minute)
    hurHand.setheading(30 * hour)

    turtle.tracer(False)
    printer.forward(65)
    printer.write(Week(t), align="center",
                  font=("Courier", 14, "bold"))
    printer.back(130)
    printer.write(Date(t), align="center",
                  font=("Courier", 14, "bold"))
    printer.home()
    turtle.tracer(True)

    turtle.ontimer(Tick, 100)  # 100ms?????tick
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号