当前位置:网站首页>1154. day of the year

1154. day of the year

2022-06-23 10:52:00 Hacker technology

The ingenious implementation is as follows , Specific topic

import time
class Solution:
    def dayOfYear(self, date: str) -> int:
        return time.strptime(date, "%Y-%m-%d")[-2]

Topic comment area

原网站

版权声明
本文为[Hacker technology]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/174/202206231047279354.html