发布时间:2019-09-25 08:17:04编辑:auto阅读(4440)
import calendar import datetime def getNextMonday(): today = datetime.date.today() print today oneday = datetime.timedelta(days = 1) m1 = calendar.MONDAY while today.weekday() != m1: today += oneday nextMonday = today.strftime('%Y%m%d') return nextMonday print getNextMonday()
======================================================= 输出: 2017-11-28 20171204
上一篇: Python开根号
下一篇: python处理音频文件(mp3)
50139
49396
40057
37086
31490
28324
27281
22072
22029
20369
588°
423°
410°
596°
556°
1160°
2177°
2003°
1578°
3193°