<分区>
我只是对 python 异常的语法感到好奇,因为我似乎无法理解您何时应该使用下面的语法来捕获异常。
try:
"""
Code that can raise an exception...
"""
except Exception as e:
pass
和
try:
"""
Code that can raise an exception...
"""
except Exception, e:
pass
有什么区别?