>>> import datetime
>>> date1=datetime.date(2007,8,3)
>>> date2=datetime.date(2008,8,4)
>>> diff=date2-date1
>>> print(diff.days)367
>>> date1=datetime.date(2001,6,10)
>>> date2=datetime.date(2020,6,17)
>>> diff=date2-date1
>>> print(diff.days)
计算度过的时间天数真是太方便啦