这个错误可能是由于usercount.index返回的是一个一维数组,而尝试对其进行两次索引操作所导致的。可以检查一下usercount.index的返回值,看是否符合预期。可能需要使用usercount.index.values来获取一维数组。

10 usercount = get_counttp userId--- 11 tp = tptpuserIdisinusercountindexusercount = min_ucIndexError too many indices for array array is 1-dimensional but 2 were indexed为什么报错

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

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