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