发布时间:2019-09-25 08:17:04编辑:auto阅读(5049)
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)
53046
39976
34353
30110
25002
24808
23181
16647
14823
14322
637°
599°
659°
668°
722°
845°
815°
842°
931°
854°