Pythong Time&datetime

  Time模块 常用的方法 import time  time.time()   #返回当前时间的时间戳(1970纪元后经过的浮点秒数) time.localtime()  #本地时间 time.mktime(a) #转换时间戳 time.sleep(secs) #线程推迟运行时间    程序推迟进行     s=time.strftime('%Y-%m-%d')  #获取系统当前时间 转换字符
相关文章
相关标签/搜索