如何获取三个数的最大值

// 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
posted @ 2020-09-29 09:41  下_冰雹  阅读(111)  评论(0)    收藏  举报