代码报错下,显示操作数类型不受支持

self.a = c * math.ceil(np.log2(b))

TypeError: unsupported operand type(s) for *: ‘module’ and ‘int’
放在网络之前这个步骤没有问题,放进去之后出现上述问题

讨论数量: 4
Jason990420

What values for the b and c ? It looks like the type of value for c is class module.

1年前 评论
heiha (楼主) 1年前
Jason990420 (作者) 1年前

先确定一下*两边的类型。比如 print(type(c))

1年前 评论

讨论应以学习和精进为目的。请勿发布不友善或者负能量的内容,与人为善,比聪明更重要!