time模块
import time
1获取当前时间戳
time.time()
2当前时间的字符串形式
time.ctime()
3当前时间的struct_time形式
time.localtime()
4获得当前时间,可将时间格式化
time.strftime(format)
datetime模块
pass
time模块
import time
1获取当前时间戳
time.time()
2当前时间的字符串形式
time.ctime()
3当前时间的struct_time形式
time.localtime()
4获得当前时间,可将时间格式化
time.strftime(format)
datetime模块
pass