三元

表达式 (expr1) ? (expr2) : (expr3)

在 expr1 求值为 TRUE 时的值为 expr2,在 expr1 求值为 FALSE 时的值为 expr3。

猜你喜欢

转载自www.cnblogs.com/z5-26/p/9317292.html