from datetime import *format = "%Y-%m-%d %H:%M:%S"a=datetime.now()day=a.dayb=a.replace(day=day+1)s=b.strftime(format)#datetime类型转化成 string类型expire_time=datetime.strptime(s, format)#string类型转化成datetime类型now = datetime.now()if now
本文共 228 字,大约阅读时间需要 1 分钟。
from datetime import *format = "%Y-%m-%d %H:%M:%S"a=datetime.now()day=a.dayb=a.replace(day=day+1)s=b.strftime(format)#datetime类型转化成 string类型expire_time=datetime.strptime(s, format)#string类型转化成datetime类型now = datetime.now()if now
转载地址:http://fywdx.baihongyu.com/