raise语句
# -*- coding: utf-8 -*- #python 27 #xiaodeng #Python学习手册 868 #raise语句 res=[IndexError,TypeError] #raise res[0] raise IndexError ''' Traceback (most recent call last): File "C:\Users\Administrator\Desktop\my.py", line 10, in <module> raise IndexError IndexError '''
无语言基础,自学python所做的各种笔记,欢迎大牛指点.