题解 | Python 3 求list的最大值与索引

牛妹的烦恼

https://www.nowcoder.com/practice/e7e616bf2f00406b80b0d41e5368ee93

from operator import index
num = input().split()
num_list = ["Python","Java","C"]
print(num_list[num.index(max(num))])

全部评论

相关推荐

点赞 评论 收藏
分享
评论
1
2
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务