#今天你敲代码了吗,社畜? #author : Jack Sun #2021-4-1 09:17:18 t = True f = False print(t, type(t)) print(f, type(f)) 布尔值可以进行运算,值为整型 print(t+1, type(t+1)) print(f+1, type(f+1)) print(t+f, type(t+f)) 运算结果:1 <class ‘int’>