解决方法: 使用.astype(‘int’) 将label转换为int型 参考:https://blog.youkuaiyun.com/qq_41870817/article/details/89419726