这个错误是因为 isinstance() 函数的第二个参数不是一个类型或类型元组。正确的使用方式是将第二个参数设置为一个类型或类型元组,例如 isinstance(obj, int) 或 isinstance(obj, (int, float))。请检查您的代码,确保第二个参数设置正确。

TypeError isinstance arg 2 must be a type or tuple of typess 是什么问题

原文地址: https://www.cveoy.top/t/topic/g2Qy 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录