第25328题 单选题
Python实现「几天后是星期几」功能的代码中,横线处应填入的内容是?

下面Python代码执行后,求出⼏天后星期⼏。如果星期日则输出“星期天”否则输出形如“星期1”。横线处应填入的代码是:

nowDay = int(input("今天星期几? "))
afterDays = int(input("求几天后星期几? "))
N = nowDay+afterDays
if ___________________________:
   print("星期天")
else:
   print(f"星期{N%7}")
{{ option.label }}
子题{{ index + 1 }} {{ child.type_label }}
{{ option.label }}
✓ 正确 ◐ 部分正确 ✗ 错误
程序运行统计
暂无判题统计
提交{{ questionInfo.stats ? questionInfo.stats.submit_count : 0 }}次 正确率{{ statsAccuracy }}%
答案解析