1 from datetime import datetime 2 3 class Solution: 4 def dayOfTheWeek(self, day: int, month: int, year: int) -> str: 5 days = ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday","Sunday"] 6 return days[datetime(year, month, day).weekday()]
leetcode1185
猜你喜欢
转载自www.cnblogs.com/asenyang/p/11504148.html
今日推荐
周排行