导入日期库 datetime import datetime # 或者from datetime import datetime ,date 字符串转datetime 转载于:https://www.cnblogs.com/gradual/p/9831486.html