[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''

^  ->  **

댓글

이 블로그의 인기 게시물

js 스트링에서 요소 갯수 세기

STUDY

javascript cheatsheet