Python模块datetime使用指南
0. 引入模块import datetime1. 获取当前时间now = datetime.datetime.now()print(now)2. 和字符串的相互转换s = now.strftime("%Y-%m-%d %H:%M:%S")print(s)s = now.strftime("%Y-%m-%d")print(s)date = datetime.da.