📜  尝试多个除了 python 代码示例

📅  最后修改于: 2022-03-11 14:47:15.606000             🧑  作者: Mango

代码示例1
try:
   ...
except FirstException:
   handle_first_one()

except SecondException:
   handle_second_one()

except (ThirdException, FourthException, FifthException) as e:
   handle_either_of_3rd_4th_or_5th()

except Exception:
   handle_all_other_exceptions()