解题思路:
注意事项:太晚了,先睡了,想起来了再写吧
参考代码:
from datetime import datetime
import sys
for line in sys.stdin:
line = line.strip('\n')
if line == '':
pass
else:
line = list(map(int,line.split('/')))
judge_datetime = datetime(line[0], line[1], line[2])
yearday = (judge_datetime - datetime(judge_datetime.year, 1, 1)).days + 1
print(yearday)
0.0分
0 人评分