The python boolean

Boolean type, only two values: True and False. True in arithmetic operations is 1, False is 0
True case is not False, False is the case

These values ​​are the following
False
None
0
0.0
0 + 0j
Blank
‘’
“”
‘’’ ‘’’
[]
()
{}

Guess you like

Origin blog.csdn.net/GrofChen/article/details/91394460