发布时间:2019-09-25 08:17:04编辑:auto阅读(4737)
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)
51755
51441
41849
38621
33112
30106
28776
23774
23689
22053
101°
2287°
2982°
2487°
2424°
3041°
2435°
3242°
5346°
5162°