摘要: def test(a): try: print('this is try...') if a == 0: raise ZeroDivisionError('customize erro') # 如果try有return则不再执行else的代码 return str(10/a) # 多个except之 阅读全文
posted @ 2020-01-02 14:40 turbolxq 阅读(393) 评论(0) 推荐(0)