小白教程
所有教程
关于
Search
172.71.254.230
172.71.254.230
参数设置
贡献
退出
操作
编辑
移动
保护
信息
历史
删除
查看“Python3 att list min”的源代码
本页内容
上一节:
Python3_att_list_max
下一节:
Python3_att_list_append
因为以下原因,您没有权限编辑本页:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
{{DISPLAYTITLE:min(list)}}[[Category:python3 list|3]] = Python3 List min()方法 = [[python3 list|Python3 列表]] == 描述 == min() 方法返回列表元素中的最小值。 == 语法 == min()方法语法: <sample title="" desc="" lang="python" hererun="1"> min(list) </sample> == 参数 == * list -- 要返回最小值的列表。 == 返回值 == 返回列表元素中的最小值。 以下实例展示了 min()函数的使用方法: <sample title="" desc="" lang="python" hererun="1"> #!/usr/bin/python3 list1, list2 = ['Google', 'xiaoBai', 'Taobao'], [456, 700, 200] print ("list1 最小元素值 : ", min(list1)) print ("list2 最小元素值 : ", min(list2)) </sample> 以上实例输出结果如下: <sample title="" desc="" lang="python" hererun="1"> list1 最小元素值 : Google list2 最小元素值 : 200 </sample> [[python3 list|Python3 列表]]
返回至“
Python3 att list min
”。
上一节:
Python3_att_list_max
下一节:
Python3_att_list_append