try:

    pass

  except Exception as e:

    print(e)

  import sys

  try:

    pass

  except:

    print(sys.exc_info())

下面有其他的方法:

http://blog.sina.com.cn/s/blog_628cc2b70102wccg.html

 

相关文章:

  • 2022-02-10
  • 2021-11-01
  • 2022-01-15
  • 2022-12-23
  • 2022-01-03
  • 2022-12-23
  • 2021-09-17
  • 2021-06-18
猜你喜欢
  • 2022-01-21
  • 2021-10-11
  • 2021-09-18
  • 2022-02-07
  • 2022-01-12
  • 2021-11-23
  • 2021-09-07
相关资源
相似解决方案