exception_action

for i in range(3, -2, -1):
    try:
        print(4 / i)
    except Exception as e:
        print(Exception)
        print(e)
原文地址:https://www.cnblogs.com/rsapaper/p/7728714.html