- keyerror
-
A Python KeyError exception is what is raised when you try to access a key that isn’t in a dictionary (dict).
当查询字典中没有出现的某个元素时就会出现keyerror错误
-

A Python KeyError exception is what is raised when you try to access a key that isn’t in a dictionary (dict).
当查询字典中没有出现的某个元素时就会出现keyerror错误