Python求最大值,如何做?
问题描述:
题目描述
从键盘录入一组数字(采用逗号分隔),输出该组数字中的最大值
输入
1.2,3
输出
3
样例输入Copy
75.9.6
答
a=map(int,input().split(','))
print(max(a))