python处理异常

str1="hello"
try:
  print("%d" %str1)
except Exception as F:
    print(F)
finally:
    print("%s" %str1)

原文地址:https://www.cnblogs.com/wenjing2019/p/12030814.html