Advertisement

Python3 关于 time 模块

阅读量:

python3 之 time模块

  • 一、常用的时间表达形式
      • 1、时间戳(timestamp)
      • 2、按照特定格式编排的时间字符串
      • 3、结构化时间元组(struct_time)
    • 二、time模块中常见的内部函数

      • 1、time.time()
      • 2、time.localtime(secs)
      • 3、time.gmtime(secs)
      • 4、time.mktime(t)
      • 5、time.asctime(t)
      • 6、time.ctime(secs)
      • 7、strftime(format[, t])
      • 8、time.strptime(string[, format])
      • 9、time.sleep(secs)
      • 10、time.process_time()
      • 11、time.perf_counter()
    • 三、其他相关内容

      • 1、对time.time()、time.process_time() 和 time.perf_counter() 的比较分析
      • 2、datetime.datetime.now()
    • 四、总结

一、表示时间的常用方式

在Python编程语言中,通常存在多种不同的

全部评论 (0)

还没有任何评论哟~