题解 | #计算日期到天数转换#
计算日期到天数转换
https://www.nowcoder.com/practice/769d45d455fe40b385ba32f97e7bcded
from datetime import date d = date(*map(int,input().split())) print((d-date(d.year,1,1)).days+1)
计算日期到天数转换
https://www.nowcoder.com/practice/769d45d455fe40b385ba32f97e7bcded
from datetime import date d = date(*map(int,input().split())) print((d-date(d.year,1,1)).days+1)
相关推荐