📜  虚假的python代码示例

📅  最后修改于: 2022-03-11 14:45:31.111000             🧑  作者: Mango

代码示例1
None
False
0
0.0
0j
Decimal(0)
Fraction(0, 1)
[] - an empty list
{} - an empty dict
() - an empty tuple
'' - an empty str
b'' - an empty bytes
set() - an empty set
an empty range, like range(0)
objects for which
obj.__bool__() returns False
obj.__len__() returns 0