thisを参照してくださいexponentiation operator
。 は、ECMAScript 2016 (ES7) 提案の一部である Python の累乗演算子のように、最初のオペランドを 2 番目のオペランドに累乗した結果を返します。
PythonでのBoolean
withの結果は、次のようにわかっています。exponentiation operator
>>> False ** False == True
True
>>> False ** True == False
True
>>> True ** False == True
True
>>> True ** True == True
True
Boolean
が で使用できるかどうかを知りたいexponentiation operator
ですか? もしそうなら、Pythonで上記と同じ動作をすることができますか?