发布时间:2019-09-25 08:17:04编辑:auto阅读(4586)
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)
 51245
 50682
 41282
 38103
 32566
 29467
 28330
 23192
 23156
 21485
 1558°
 2278°
 1886°
 1825°
 2137°
 1872°
 2559°
 4291°
 4147°
 2955°