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

^  ->  **

댓글

이 블로그의 인기 게시물

STUDY

vue

Capacitor 웹 기반 애플리케이션을 네이티브 앱으로 감싸고, 네이티브 기능에 접근할 수 있게 해주는 프레임워크