from datetime import datetime
now = datetime.now()
future = input('Please input future YEAR,MONTH,DAY separate by comma:')
future = list(map(int, future.split(',')))
future = datetime(future[0],future[1],future[2])
delta = future - now
print(delta.days)
输入日期以逗号分离,运行结果如下