yon11b

[토이프로젝트] 성경 일독 프로젝트 본문

개발/프로젝트

[토이프로젝트] 성경 일독 프로젝트

yon11b 2024. 10. 17. 12:38
반응형
from datetime import datetime

all=1189
old=929
new=260

today=datetime.now()
lastday='2024-12-31'
lastday = datetime.strptime(lastday, '%Y-%m-%d')
untilDec=int((lastday-today).days)

# 날짜를 보기 좋게 출력
formatted_today = today.strftime('%Y-%m-%d')
formatted_lastday = lastday.strftime('%Y-%m-%d')

print('오늘의 날짜: ' + formatted_today)
#print('마지막 날짜: ' + formatted_lastday)
print('올해 남은 일 수: ' + str(untilDec)+'일')

print('오늘부터 매일 '+str(all//untilDec)+'장씩 읽는다면 올해 안에 1독을 할 수 있습니다.\n')
print('신약만 읽는다면? >> 오늘부터 매일 '+str(new//untilDec)+'장을 읽어야 합니다.')
print('구약만 읽는다면? >> 오늘부터 매일 '+str(old//untilDec)+'장을 읽어야 합니다.')

회사에서 일하다가 지루해서 만든..

 

728x90