int i = 1;
int j = i == 1 ? 1 : i == 2 ? 2 : 3;
结果 j = 1;
int i = 4;
int j = i == 1 ? 1 : i == 2 ? 2 : 3;
结果j = 3
int i = 1;
int j = i == 1 ? 1 : i == 2 ? 2 : 3;
结果 j = 1;
int i = 4;
int j = i == 1 ? 1 : i == 2 ? 2 : 3;
结果j = 3