[Python] 기념일 계산기 그 날로부터 얼마나 지났을까를 어떻게 계산할 수 있을까가 문득 궁금해졌다. python으로 그것을 구현하는 방법을 알아보자. import datetime birth = list(map(int, input().split())) today = datetime.date.today() target_date = datetime.date(birth[0], birth[1], birth[2]) d_day = today - target_date print(f"오늘은 일자로 부터 {int(d_day.days) + 1}"+"일 째 입니다.") datetime을 활용해서 그 날로부터 오늘이 몇 일 째인지를 계산해주는 식이다. 그 혹시 그녀와 함께한 날, 혹은 내가 살아온 날이 얼마나 지났는지를 .....
원문 링크 : [Python] 기념일 계산기