It checks for a Truthy value, i.e., a value that does not evaluate to False
. Falsy values might include, for example, None
, 0
, False
etc. In a nutshell, the while loop stops at the first Falsy value.
For a list of Falsy values, check this answer.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…