第11995题 单选题
关于以下Python异常处理程序,下列说法不正确的是?

有如下Python异常处理代码:

while True:
    try:
        n=int(input("请输入一个数字:"))
        print(f"您输入的数字是:{n}")
        break
    except ValueError:
        print("输入无效,请重新输入数字。")
{{ option.label }}
子题{{ index + 1 }} {{ child.type_label }}
{{ option.label }}
✓ 正确 ◐ 部分正确 ✗ 错误
程序运行统计
暂无判题统计
提交{{ questionInfo.stats ? questionInfo.stats.submit_count : 0 }}次 正确率{{ statsAccuracy }}%
答案解析