python 输出上个月的月末日期实例 如下所示:importdateutildefbefore_month_lastday(ti):today=dateutil.parser.parse(str(ti))first=datetime.date(day=1,m 上个月