#print(10/0) #ZeroDivisionError lst=[11,22,33,44] #print(lst[4]) #IndexError 索引从0开始 dic={'name':'张三','age':20} #print(dic['gender']) #KeyError #print(num) #NameError #int a=20 #SyntaxError #a=int('hello') #ValueError
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/288460.html