真值表达式和条件表达式 1.真值表达式 语法 if 数据: 语句 本质:就是使用bool函数操作 if "a":#相当于 if bool(“a”): print("真值") if 100: #相当于 if bool(100): print("真值") if 1:if bool(1): # if bool(1): print("真值") if -1:if bool(-1): # if bool(-1):