본문 바로가기
python-algorithm

leetcode 1185. Day of the Week

by 무적김두칠 2022. 3. 28.

1
2
3
4
from datetime import datetime
class Solution:
    def dayOfTheWeek(self, day: int, month: int, year: int-> str:        
        return datetime(year,month,day).strftime('%A')
cs
반응형

댓글