1 def week(today, n): 2 s = n % 7 + today 3 return "n天后是星期:{}".format(s) 4 5 6 print(week(1, 3)) 转载于:https://www.cnblogs.com/tttzqf/p/9270467.html