Python 处理时间的模块 1、由日期格式转化为字符串格式的函数为: datetime.datetime.strftime().date() 2、由字符串格式转化为日期格式的函数为: datetime.datetime.strptime().date()