def a():
int("123.123")
try:
print 1
except:
print 2
finally:
print 3
执行a():
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "<stdin>", line 2, in a
ValueError: invalid literal for int() with base 10: '123.123'
此处并不会执行到finally中,表明finally是指的是try:之后必须执行的代码块