Python List max()方法
Python 教程
· 2019-02-02 20:27:26
描述
max() 方法返回列表元素中的最大值。
语法
max()方法语法:
max(list)
参数
- list -- 要返回最大值的列表。
返回值
返回列表元素中的最大值。
实例
以下实例展示了 max()函数的使用方法:
#!/usr/bin/python list1, list2 = ['123', 'xyz', 'zara', 'abc'], [456, 700, 200] print "Max value element : ", max(list1); print "Max value element : ", max(list2);
以上实例输出结果如下:
Max value element : zara Max value element : 700
点击查看所有 Python 教程 文章: https://www.codercto.com/courses/l/8.html
Ethnography and Virtual Worlds
Tom Boellstorff、Bonnie Nardi、Celia Pearce、T. L. Taylor / Princeton University Press / 2012-9-16 / GBP 21.00
"Ethnography and Virtual Worlds" is the only book of its kind - a concise, comprehensive, and practical guide for students, teachers, designers, and scholars interested in using ethnographic methods t......一起来看看 《Ethnography and Virtual Worlds》 这本书的介绍吧!