import datetime
# 计算今天和未来一个日期的天数差值
now_str = datetime.datetime.now().strftime('%Y-%m-%d')
now = datetime.datetime.strptime(now_str, "%Y-%m-%d")
future = datetime.datetime.strptime("2019-12-01", "%Y-%m-%d")
days = (future - now).days
print(days)
import datetime
# 计算今天和未来一个日期的天数差值
now_str = datetime.datetime.now().strftime('%Y-%m-%d')
now = datetime.datetime.strptime(now_str, "%Y-%m-%d")
future = datetime.datetime.strptime("2019-12-01", "%Y-%m-%d")
days = (future - now).days
print(days)