一、python自带的系统异常:
如:Typeerror,IOerrord,Importerror,indentationerror(语法,缩进异常),syntaxerror,ctrl+c等等!
我们可以写个小程序来捕获这些异常,注意indentationerror,syntaxerror(强类型错误)抓不到,因为这2个错误连编译都过不了。
try:
...
11-26 653 views
一、python自带的系统异常:
如:Typeerror,IOerrord,Importerror,indentationerror(语法,缩进异常),syntaxerror,ctrl+c等等!
我们可以写个小程序来捕获这...