** NOTE python
This function does not end at return 1.
def predict2():
try:
return 1
except Exception:
print('...')
finally:
print('still call finally')
predict2()
This function ends at return 1.
def predict2():
try:
return 1
except Exception:
print('...')
#finally:
#print('still call finally')
print('no call this')
predict2()
Comments
Post a Comment