代码报错下,显示操作数类型不受支持
self.a = c * math.ceil(np.log2(b))
TypeError: unsupported operand type(s) for *: ‘module’ and ‘int’
放在网络之前这个步骤没有问题,放进去之后出现上述问题
关于 LearnKu
What values for the
bandc? It looks like the type of value forcis classmodule.先确定一下
*两边的类型。比如print(type(c))