Skip to content

Instantly share code, notes, and snippets.

@shoark7
Created September 15, 2019 11:46
Show Gist options
  • Save shoark7/6ab1ac7c15e88d7c79a0e5f9cc85294c to your computer and use it in GitHub Desktop.
Save shoark7/6ab1ac7c15e88d7c79a0e5f9cc85294c to your computer and use it in GitHub Desktop.
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