异常处理

a = 0
try:
    2 / a
except Exception as e:
    print('a---', e)

最后更新于

这有帮助吗?