try : finally语句


try:finally语句不管有没有异常他都会执行:
他就是用来清理的


try:
h=open("ll","r")
y=h.read()
print (int(y))
finally :
h.close()
print("hello")
原文地址:https://www.cnblogs.com/zang963469010/p/6047128.html