python4.3内置函数

常见的内置函数

a=[12,31,31,232,34,32,43,54,36]
max1=max(a)#最大函数
print(max1)
min1=min(a)#最小函数
print(min1)
sum1=sum(a)
print(sum1)#求和函数

c=10
b=3
d=c/b
print(round(d,2))#小数位的精确函数

 其他的内置函数网上百度

猜你喜欢

转载自www.cnblogs.com/lma0702/p/11109405.html
今日推荐