演算子 | 説明 | 補足 |
---|---|---|
A == B | AとBが等しい | 「=」と混同しないこと |
A != B | AとBが等しくない | 等しくない時にTrue |
A > B | AがBより大きい | |
A >= B | AがBより大きいか等しい | 「=>」と書かないこと |
A < B | AがBより小さい | |
A <= B | AがBより小さいか等しい | 「=<」と書かないこと |
A in B | AがBの中に存在する | |
A not in B | AがBの中に存在しない | 存在しない時にTrue |
A is B | AとBが同一オブジェクト | 同じオブジェクトIDを 参照している時にTrue |
A is not B | AとBが同一オブジェクト ではない | 同一オブジェクト ではない時にTrue |
-
-
Save Plasma0909/d962044adb0e240e6cd6c7ae4e88ee67 to your computer and use it in GitHub Desktop.
comparison_operator (比較演算子)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment