#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
Powered by: 博客园 Copyright © 2024 蓝绝 Powered by .NET 9.0 on Kubernetes