python处理异常

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

posted on 2019-12-12 18:07  wenjingtester  阅读(131)  评论(0编辑  收藏  举报