python中函数isinstance()用来判断某个实例是否属于某个类

NoSuchKey