[python] python에서 제곱은 ^이 아닌 **이다
까먹어서 ^를 썼더니 xor 쓸수 없다고 에러가 떴다.
ufunc 'bitwise_xor' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule ''safe''
^ -> **
까먹어서 ^를 썼더니 xor 쓸수 없다고 에러가 떴다.
ufunc 'bitwise_xor' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule ''safe''
^ -> **
댓글
댓글 쓰기