发布时间:2019-09-25 08:17:04编辑:auto阅读(5226)
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)
54138
40894
35412
31048
25939
25675
24127
19661
15728
15195
1959°
1804°
1890°
1978°
1962°
2145°
2103°
1918°
2002°
1986°