发布时间:2019-09-25 08:17:04编辑:auto阅读(4334)
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)
49360
48551
39252
36336
30749
27559
26558
21376
21232
19580
220°
457°
444°
541°
888°
610°
1286°
1403°
1215°
1203°