摘要: 处理异常 1 money = 1000 2 num = input('Please enter a num:') 3 try: 4 num = float(num) 5 res = money/num 6 7 except Exception as e:#能获取到所有的异常 8 # except V 阅读全文
posted @ 2018-07-28 21:27 Mezhou 阅读(510) 评论(0) 推荐(0) 编辑