发布时间:2019-09-25 08:17:04编辑:auto阅读(4226)
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)
48608
47594
38386
35611
30063
26785
25786
20680
20418
18820
95°
185°
219°
239°
233°
245°
278°
317°
446°
432°