题解 | #计算日期到天数转换#
计算日期到天数转换
https://www.nowcoder.com/practice/769d45d455fe40b385ba32f97e7bcded
from datetime import date year, month, day = input().split(' ') d_date = date(int(year),int(month), int(day)) - date(int(year),1, 1) print(d_date.days+1)