Python 如何查找数组中最小元素

python 查找整数数组中最小的数

>>> nums = [7,3,2,5,8,6]
>>> min( nums )

Python查找字符串数组中最小的元素(按字典顺序排序)

>>> siteName = ["hello","on","it","road","java", "world"]  
>>> min( siteName )
日期:2020-09-17 00:10:33 来源:oir作者:oir