이 프로그램은 2014 년에 엄격하게 설정됩니다. 그러나 올바른 방향으로 가고 있는지 알고 싶습니다.요일 계산 방법 요일 및 월 제공
def day(d,m): # Function for determining day name for a given date.
"""Where m is an integer from 1 through 12 expressing a month, and d is an integer from
1 through 31 expressing the day-part of a date in 2014."""
day = ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa']
weekday = (d + (2.6*m - 0.2) -2*20 + 2014 + (2014//4) + (20//4))
return day[weekday]
'DateTime'으로 즉시 수정됩니다. 문서를 확인하십시오. 당신이 구조에 날짜를 주면; formatter를 사용하여'day'를 출력 할 수 있습니다. 휠을 재발 명하지 마십시오.) –