第25661题 单选题
补全Python代码实现周六后第N天星期几计算,横线处应填入的代码是?

本题要求实现:已知今天是星期六,求其后第N天是星期几,星期一到星期六输出格式为「星期1」、「星期2」等,星期天输出「星期天」。现有Python代码如下:

N = int(input())

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