Lua三目运算符由and 和 or 组成 local bool_a,bool_b local value value = ((a>b) and a) b 当a>b的时候 返回true 结果选择a ,当a<b的时候不成立返回b