C++猿的Python笔记07异常处理 try: if err: raise Exception except Exception: # do some special else: # no exception finally: # always do