09 2022 档案
摘要:turtle 库 八段数码管 import turtle def drawGap(): turtle.penup() turtle.fd(5) def drawLine(draw): #绘制单段数码管 drawGap() turtle.pendown() if draw else turtle.pe
阅读全文
摘要:time库的使用 1 基本使用 |类型|函数|作用| | | | | |时间获取|time()|获取当前时间戳,浮点数| ||ctime()|获取当前时间并以易读方式打开,字符串| ||gmtime()|获取当前时间并表示为计算机可处理的时间格式,struct_time,格林威治时间| ||loca
阅读全文