单选题

下列Python代码执行后,将输出的是(     )。

def DIV(m,n):

if n ==0:

raise ZeroDivisionError("除数不能为0")

return m/n


try:

print(10/0)

print(DIV(10/0))

except ZeroDivisionError:

print(0,end="#")

except:

print(1,end="#")

finally:

print(2,end="#")

A

0#2#

B

0#1#2#

C

1#2#

D

0#

赣ICP备20007335号-2