如何获取三个数的最大值
// c语言条件运算符
int temp = (a > b ? a : b);
int max = (temp > c ? temp : c);
# python条件运算符
temp = a > b if a else b
max = temp > c if temp else c
本文来自博客园,作者:下_冰雹,转载请注明原文链接:https://www.cnblogs.com/fastword/p/13748122.html
// c语言条件运算符
int temp = (a > b ? a : b);
int max = (temp > c ? temp : c);
# python条件运算符
temp = a > b if a else b
max = temp > c if temp else c
本文来自博客园,作者:下_冰雹,转载请注明原文链接:https://www.cnblogs.com/fastword/p/13748122.html