try与except

本知识库目录
Python6 行展开代码收起代码
try:
  需要运行的程序
except:
  错误后执行的代码
except IndexError:
  当程序发生IndexError错误是执行的代码
0%