try: try: a=1/0 except ZeroDivisionError as e: raise Exception("error") except Exception as e: print("da:%s" % e)
try了以后默认不向外传递(否则我try干嘛) 如果要继续传递的话,使用raise(把原错误raise出去),或者raise SomeException来raise一个新的错误