Python Tuple(元组) min()方法
Python 教程
· 2019-02-03 06:14:00
描述
Python 元组 min() 函数返回元组中元素最小值。
语法
min()方法语法:
min(tuple)
参数
- tuple -- 指定的元组。
返回值
返回元组中元素最小值。
实例
以下实例展示了 min()函数的使用方法:
#!/usr/bin/python tuple1, tuple2 = (123, 'xyz', 'zara', 'abc'), (456, 700, 200) print "min value element : ", min(tuple1); print "min value element : ", min(tuple2);
以上实例输出结果如下:
min value element : 123 min value element : 200
点击查看所有 Python 教程 文章: https://codercto.com/courses/l/8.html
Beginning ASP.NET 4 in C# and Vb
Imar Spaanjaars / Wrox / 2010-3-19 / GBP 29.99
This book is for anyone who wants to learn how to build rich and interactive web sites that run on the Microsoft platform. With the knowledge you gain from this book, you create a great foundation to ......一起来看看 《Beginning ASP.NET 4 in C# and Vb》 这本书的介绍吧!