题目:找出两个整数中的较大者
注 一般方法比较简单,不再演示
a,b = eval(input('please two integer:'))
print(a if a>b else b)
输出结果
please two integer:5,8
8
题目:找出两个整数中的较大者
注 一般方法比较简单,不再演示
a,b = eval(input('please two integer:'))
print(a if a>b else b)
输出结果
please two integer:5,8
8