http://www.2cto.com/kf/201301/184121.html

http://www.w3cschool.cc/python/python-exceptions.html

 

try:   
    a=b   
    b=c   
except Exception,e:   #except后面加异常种类
    print Exception,":",e   
 
try: 
    a=b 
    b=c 
except Exception,e: 
    print Exception,":",e 

相关文章:

  • 2022-12-23
  • 2022-03-08
  • 2022-12-23
  • 2022-12-23
  • 2022-02-04
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-09-28
  • 2022-01-08
  • 2022-12-23
  • 2022-12-23
  • 2023-03-06
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案