Python学习异常检测

# -*- coding: utf-8 -*- """ Created on Mon Aug 21 14:11:22 2017 @author: cq """ #python处理异常 try :     2/0 except Exception,e: #其中e为实例,即错误的实况     print(e)           try:     a = 1/0 except Exception,e:
相关文章
相关标签/搜索