stdate='2022-01-01'
z=zip(pd.date_range(stdate,periods=21,freq ='MS'),pd.date_range(stdate,periods=21,freq ='M'))
for d in z:
print(str(d[0])[:10])
print(str(d[1])[:10])
python 生成月初月末
最新推荐文章于 2024-07-30 17:23:09 发布