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