Re: [問題] 迴圈問題

作者: poototo (poototo)   2022-02-24 00:49:16
pandas也再補一下
===============================================
s = '2018-06'
e = '2019-12'
#
for d in pandas.date_range(s, e, freq='MS'):
print(d.strftime('%Y/%-m'))
作者: skyleona (多益爆了!)   2022-02-26 00:08:00
謝謝P大分享

Links booklink

Contact Us: admin [ a t ] ucptt.com