humanL=123151136425842计算L的最大值、最小值加和。使用Python
最大值:max(L) 结果为11
最小值:min(L) 结果为1
加和:sum(L) 结果为55
Python代码:
L=[1,2,3,1,5,11,3,6,4,2,5,8,4,2]
print("最大值为:",max(L))
print("最小值为:",min(L))
print("加和为:",sum(L))
原文地址: https://www.cveoy.top/t/topic/fcTm 著作权归作者所有。请勿转载和采集!