import datetime
x = (datetime.datetime.now() + datetime.timedelta(days=17)) print("星期%d" % (x.weekday() + 1))