这个错误是因为你正在尝试将一个 types.GenericAlias 类型的对象与一个字符串进行拼接。在这种情况下,你需要将 types.GenericAlias 类型的对象转换为字符串,然后再进行拼接。

可以尝试使用 str() 函数将 types.GenericAlias 类型的对象转换为字符串,然后再进行拼接,像这样:

kk = kk + str(list[ll.index(jj)])
TypeError can only concatenate str not typesGenericAlias to str kk=kk+listllindexjj用中文回答

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

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