题库 Python题库 题目列表 运行下面程序,错误的输入和输出数据是?( )try: &...
单选题

运行下面程序,错误的输入和输出数据是?( )

try:
    x=int(input())
    y=int(input())
    m=divmod(x,y)
    print(m)
except:
    print('error')
else:
    print('right')
finally:
    print('OK')
A.
输入
1
0
输出
error
OK
B.
输入
0
5
输出
(0, 0)
right
OK
C.
输入
5
1
输出
(5, 0)
right
OK
D.
输入
5
0
输出
0
right
OK
题目信息
2023年 12月 选择题
100%
正确率
0
评论
57
点击