왜 try...except...finally
문에 finally
가 필요한지 잘 모르겠습니다. 제 생각에는 이 코드 블록
try: run_code1() except TypeError: run_code2() other_code()
finally
:
try: run_code1() except TypeError: run_code2() finally: other_code()
제가 누락된 것이 있습니까?
왜 try...except...finally
문에 finally
가 필요한지 잘 모르겠습니다. 제 생각에는 이 코드 블록
try: run_code1() except TypeError: run_code2() other_code()
finally
:
try: run_code1() except TypeError: run_code2() finally: other_code()
제가 누락된 것이 있습니까?