The error message indicates that you are trying to use the exponentiation operator ** or the pow() function with an integer and a list. Exponentiation can only be performed on two integers or floats.

To fix this error, make sure that both operands are of type int or float. If you want to raise each element in the list to a specific power, you can use a loop or a list comprehension to iterate over the list and perform the exponentiation operation on each element individually.

TypeError unsupported operand types for or pow int and list

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

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