time库是python中处理时间的标准库
-计算机时间的表达
-提供获取系统时间并格式化输出功能
-提供系统级精确计时功能,用于程序性能分析
time库包括三类函数
-时间获取:time() ctime() gmtime()
-时间格式化:strftime() strptime()
-程序计时:sleep() perf_counter()
时间获取
时间格式化
程序计时
python(time库的使用)
阅读 73
2022-03-11
-计算机时间的表达
-提供获取系统时间并格式化输出功能
-提供系统级精确计时功能,用于程序性能分析
-时间获取:time() ctime() gmtime()
-时间格式化:strftime() strptime()
-程序计时:sleep() perf_counter()
相关推荐
精彩评论(0)