摘要: try 后面写正常运行的程序代码,except即为异常情况 a = 0 b = 10 try: c = b / int(a) print(c) except: print("error") a = 0 b = 10 try: c = b / int(a) print(c) except Except 阅读全文
posted @ 2020-10-30 18:19 耐烦不急 阅读(112) 评论(0) 推荐(0) 编辑