立即学习:https://edu.csdn.net/course/play/7372/149496?utm_source=blogtoedu
Python 中三元运算法
a=200
b=300
max=a if a>b else b
print(max)
Java中三元运算符
int a = 10;
int b = 20;
int max;
max=a>b ?a:b;
System.out.println(max);
立即学习:https://edu.csdn.net/course/play/7372/149496?utm_source=blogtoedu
Python 中三元运算法
a=200
b=300
max=a if a>b else b
print(max)
Java中三元运算符
int a = 10;
int b = 20;
int max;
max=a>b ?a:b;
System.out.println(max);