import datetime
# 计算今天和过去某个日期的天数差值
now_str = datetime.datetime.now().strftime('%Y-%m-%d')
now = datetime.datetime.strptime(now_str, "%Y-%m-%d")
date=input('请输入日期')
past = datetime.datetime.strptime(date, "%Y-%m-%d")
print(type(past))
days = (now - past).days
print(days)
print(type(days))