Re: [问题] 循环问题

楼主: OnoderaHaru (小野寺春)   2022-02-23 23:15:17
第三方模组我比较喜欢用 arrow
import arrow
start = arrow.get('2018-06')
end = arrow.get('2019-12')
for date in arrow.Arrow.range('month', start, end):
print(date.format('YYYY/M'))
作者: skyleona (多益爆了!)   2022-02-24 00:21:00
感谢O大解答

Links booklink

Contact Us: admin [ a t ] ucptt.com