Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок1 ответ
+ 6
yes!
yes!
Source:
try:
def hu():
print('yes!')
5/0
except:
hu()
finally:
hu()
(of course this will only work if the function is defined before the exception is raised)