版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/soulwyb/article/details/84971263
在Python中 if判断为假的条件有:
False
None
0
""
''
()
[]
{}
这里要注意 Nan不会判断为假 ‘ ’也是真
在Python中 if判断为假的条件有:
False
None
0
""
''
()
[]
{}
这里要注意 Nan不会判断为假 ‘ ’也是真