三目运算: x?y:z

x=true,则结果是y;

x=false,则结果是z;

原文地址:https://www.cnblogs.com/tsinghuaxiaobao/p/5726134.html