Python 获取某月上月月份和上月的年份及月份总天数

1、获取上月月份截图及脚本 def After_month():    #获取上月月份         now_time = datetime.datetime.now()  # 获取当前日期        end_day_in_mouth = now_time.replace(day=1)  # 获取本月的第一天       next_mouth = end_day_in_mouth - dat
相关文章
相关标签/搜索