学习笔记 : 异常处理

1.语法

try:
  print(10/0)
except Exception  as e:
  print("0不能做除数!")
finally:
     print("后面操作")

 

posted @ 2018-11-25 22:53  不烦~~!  阅读(126)  评论(0编辑  收藏  举报