普通方法:. 對列表進行排序,針對列表長度是奇數還是偶數的不同情況,計算中位數。 def get_median(data): data = sorted(data) size = len(data) if ...
確定! 回上一頁