Skip to content

Instantly share code, notes, and snippets.

@Plasma0909
Created October 10, 2022 08:10
Show Gist options
  • Save Plasma0909/6018e0c75170e543b4d1d52a5b7e73b8 to your computer and use it in GitHub Desktop.
Save Plasma0909/6018e0c75170e543b4d1d52a5b7e73b8 to your computer and use it in GitHub Desktop.
logical_operator ( 論理演算子 )
演算子動作式がTrueになる時
and論理積左辺と右辺の両方が
Trueの時

a > 0 and b < 0
(aが0より大きく、かつbが
0より小さい場合にTrue)
or論理和左辺と右辺の少なくとも
どちらかがTrueの時

a > 0 or b < 0
(aが0より大きい、またはbが
0より小さい場合にTrue)
not否定右辺がFalseの時
(左辺はなし)

not a > 0
(aが0より大きくない場合に
True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment