Skip to content

Latest commit

 

History

History
19 lines (15 loc) · 340 Bytes

61.md

File metadata and controls

19 lines (15 loc) · 340 Bytes
@author jackzhenguo
@desc 
@date 2019/3/25

61 去最求平均

def score_mean(lst):
    lst.sort()
    lst2=lst[1:(len(lst)-1)]
    return round((sum(lst2)/len(lst2)),1)

lst=[9.1, 9.0,8.1, 9.7, 19,8.2, 8.6,9.8]
score_mean(lst) # 9.1
[上一个例子](60.md) [下一个例子](62.md)