不,无论是否有例外,
finally时间
sys.exc_info都是无。采用:
try: whateverexcept: here sys.exc_info is valid to re-raise the exception, use a bare `raise`else: here you know there was no exceptionfinally: and here you can do exception-independent finalization
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)