我知道这是一个奇怪的问题,可能没有答案.在捕获异常并执行except块之后,我正在尝试执行try块的其余部分.
例:
[...] try: do.this() do.that() [...] except: foo.bar() [...]
do.this()提出由管理的异常foo.bar(),然后我想执行代码do.that().我知道没有GOTO声明,但也许某种黑客或解决方法!
do.this()
foo.bar()
do.that()
谢谢!
python exception-handling
exception-handling ×1
python ×1