发布时间:2019-09-25 08:17:04编辑:auto阅读(4733)
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)
51746
51427
41839
38612
33105
30096
28766
23764
23679
22047
76°
2274°
2967°
2472°
2415°
3014°
2423°
3229°
5321°
5145°