l = [1,2,3,4] print( 1>2 ) #False print( 4 in l) #True print(1 not in l) #False print( len(l) > 3) #True
比如,想写个while的死循环,可以写
while True:
....
布尔类型
原文:https://www.cnblogs.com/Noul/p/14775644.html