Created
September 15, 2019 11:46
-
-
Save shoark7/6ab1ac7c15e88d7c79a0e5f9cc85294c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from datetime import datetime | |
def get_day_of_week(N): | |
DAYS = '월화수목금토일' | |
today_index = datetime.weekday(datetime.today()) | |
return DAYS[(today_index + N) % 7] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment