#!/usr/bin/env python  
#-*- coding:utf-8 _*-  
""" 
@author:jimbray 
@file: test.py 
@time: 2021/10/08
@contact: jimbra16@gmail.com
@site: http://jimbray.xyz
@Descriptions: 
"""

from numpy import *

def cal():
    data = [10.1, 10.3, 10.3, 10.4, 10.5, 10.5, 10.6, 10.6, 10.6, 10.6, 10.7, 10.8, 10.8, 10.8, 10.9, 10.9, 10.9, 11.0, 11.0, 11.0, 11.0, 11.0, 11.1, 11.1, 11.1, 11.2, 11.2, 11.2, 11.2, 11.2, 11.2, 11.2, 11.2, 11.3, 11.4, 11.4, 11.4, 11.4, 11.4, 11.4, 11.4, 11.5, 11.5, 11.5, 11.5, 11.5, 11.5, 11.6, 11.6, 11.6, 11.6, 11.6, 11.6, 11.7, 11.7, 11.7, 11.7, 11.7, 11.8, 11.8, 11.8, 11.8, 11.8, 11.8, 11.8, 11.8, 11.8, 11.8, 11.9, 11.9, 11.9, 11.9, 11.9, 12.0, 12.1, 12.1, 12.1, 12.1, 12.1, 12.1, 12.2, 12.2, 12.2, 12.2, 12.2, 12.2, 12.3, 12.3, 12.3, 12.3, 12.3, 12.3, 12.3, 12.3, 12.4, 12.4, 12.4, 12.4, 12.4, 12.5, 12.5, 12.5, 12.5, 12.5, 12.5, 12.6, 12.6, 12.6, 12.6, 12.6, 12.7, 12.7, 12.7, 12.8, 12.8, 12.8, 12.8, 12.9, 12.9, 12.9, 13.0, 13.0, 13.0, 13.2, 13.2, 13.2, 13.2, 13.2, 13.3, 13.3, 13.3, 13.3, 13.4, 13.4, 13.5, 13.6, 13.7, 13.7, 13.7, 13.8, 13.9, 13.9, 14.1, 14.2, 14.2, 14.3, 14.4, 14.4, 14.5, 14.5, 14.6, 15.1, 15.2, 15.3, 15.4, 15.8, 15.8, 15.9, 16.0, 16.1, 16.1, 16.4, 16.6, 16.6, 16.9, 17.0, 17.5, 18.4, 20.6, 20.9, 24.2, 39.1, 92.9]
    print("数组长度为：" + str(len(data)))
    print("平均值为：" + str(mean(data)))

    sum = 0
    for x in data:
        sum += x
    print("总和为：" + str(sum))
    mean_value = sum / len(data)
    print(mean_value)


if __name__ == '__main__':
    cal()
709aa1afc8e7d831ae9b9feed88c4b41b556a5cf
<mask token>

<mask token>


def cal():
    data = [10.1, 10.3, 10.3, 10.4, 10.5, 10.5, 10.6, 10.6, 10.6, 10.6, 
        10.7, 10.8, 10.8, 10.8, 10.9, 10.9, 10.9, 11.0, 11.0, 11.0, 11.0, 
        11.0, 11.1, 11.1, 11.1, 11.2, 11.2, 11.2, 11.2, 11.2, 11.2, 11.2, 
        11.2, 11.3, 11.4, 11.4, 11.4, 11.4, 11.4, 11.4, 11.4, 11.5, 11.5, 
        11.5, 11.5, 11.5, 11.5, 11.6, 11.6, 11.6, 11.6, 11.6, 11.6, 11.7, 
        11.7, 11.7, 11.7, 11.7, 11.8, 11.8, 11.8, 11.8, 11.8, 11.8, 11.8, 
        11.8, 11.8, 11.8, 11.9, 11.9, 11.9, 11.9, 11.9, 12.0, 12.1, 12.1, 
        12.1, 12.1, 12.1, 12.1, 12.2, 12.2, 12.2, 12.2, 12.2, 12.2, 12.3, 
        12.3, 12.3, 12.3, 12.3, 12.3, 12.3, 12.3, 12.4, 12.4, 12.4, 12.4, 
        12.4, 12.5, 12.5, 12.5, 12.5, 12.5, 12.5, 12.6, 12.6, 12.6, 12.6, 
        12.6, 12.7, 12.7, 12.7, 12.8, 12.8, 12.8, 12.8, 12.9, 12.9, 12.9, 
        13.0, 13.0, 13.0, 13.2, 13.2, 13.2, 13.2, 13.2, 13.3, 13.3, 13.3, 
        13.3, 13.4, 13.4, 13.5, 13.6, 13.7, 13.7, 13.7, 13.8, 13.9, 13.9, 
        14.1, 14.2, 14.2, 14.3, 14.4, 14.4, 14.5, 14.5, 14.6, 15.1, 15.2, 
        15.3, 15.4, 15.8, 15.8, 15.9, 16.0, 16.1, 16.1, 16.4, 16.6, 16.6, 
        16.9, 17.0, 17.5, 18.4, 20.6, 20.9, 24.2, 39.1, 92.9]
    print('数组长度为：' + str(len(data)))
    print('平均值为：' + str(mean(data)))
    sum = 0
    for x in data:
        sum += x
    print('总和为：' + str(sum))
    mean_value = sum / len(data)
    print(mean_value)


<mask token>

<mask token>


def cal():
    data = [10.1, 10.3, 10.3, 10.4, 10.5, 10.5, 10.6, 10.6, 10.6, 10.6, 
        10.7, 10.8, 10.8, 10.8, 10.9, 10.9, 10.9, 11.0, 11.0, 11.0, 11.0, 
        11.0, 11.1, 11.1, 11.1, 11.2, 11.2, 11.2, 11.2, 11.2, 11.2, 11.2, 
        11.2, 11.3, 11.4, 11.4, 11.4, 11.4, 11.4, 11.4, 11.4, 11.5, 11.5, 
        11.5, 11.5, 11.5, 11.5, 11.6, 11.6, 11.6, 11.6, 11.6, 11.6, 11.7, 
        11.7, 11.7, 11.7, 11.7, 11.8, 11.8, 11.8, 11.8, 11.8, 11.8, 11.8, 
        11.8, 11.8, 11.8, 11.9, 11.9, 11.9, 11.9, 11.9, 12.0, 12.1, 12.1, 
        12.1, 12.1, 12.1, 12.1, 12.2, 12.2, 12.2, 12.2, 12.2, 12.2, 12.3, 
        12.3, 12.3, 12.3, 12.3, 12.3, 12.3, 12.3, 12.4, 12.4, 12.4, 12.4, 
        12.4, 12.5, 12.5, 12.5, 12.5, 12.5, 12.5, 12.6, 12.6, 12.6, 12.6, 
        12.6, 12.7, 12.7, 12.7, 12.8, 12.8, 12.8, 12.8, 12.9, 12.9, 12.9, 
        13.0, 13.0, 13.0, 13.2, 13.2, 13.2, 13.2, 13.2, 13.3, 13.3, 13.3, 
        13.3, 13.4, 13.4, 13.5, 13.6, 13.7, 13.7, 13.7, 13.8, 13.9, 13.9, 
        14.1, 14.2, 14.2, 14.3, 14.4, 14.4, 14.5, 14.5, 14.6, 15.1, 15.2, 
        15.3, 15.4, 15.8, 15.8, 15.9, 16.0, 16.1, 16.1, 16.4, 16.6, 16.6, 
        16.9, 17.0, 17.5, 18.4, 20.6, 20.9, 24.2, 39.1, 92.9]
    print('数组长度为：' + str(len(data)))
    print('平均值为：' + str(mean(data)))
    sum = 0
    for x in data:
        sum += x
    print('总和为：' + str(sum))
    mean_value = sum / len(data)
    print(mean_value)


if __name__ == '__main__':
    cal()

<mask token>
from numpy import *


def cal():
    data = [10.1, 10.3, 10.3, 10.4, 10.5, 10.5, 10.6, 10.6, 10.6, 10.6, 
        10.7, 10.8, 10.8, 10.8, 10.9, 10.9, 10.9, 11.0, 11.0, 11.0, 11.0, 
        11.0, 11.1, 11.1, 11.1, 11.2, 11.2, 11.2, 11.2, 11.2, 11.2, 11.2, 
        11.2, 11.3, 11.4, 11.4, 11.4, 11.4, 11.4, 11.4, 11.4, 11.5, 11.5, 
        11.5, 11.5, 11.5, 11.5, 11.6, 11.6, 11.6, 11.6, 11.6, 11.6, 11.7, 
        11.7, 11.7, 11.7, 11.7, 11.8, 11.8, 11.8, 11.8, 11.8, 11.8, 11.8, 
        11.8, 11.8, 11.8, 11.9, 11.9, 11.9, 11.9, 11.9, 12.0, 12.1, 12.1, 
        12.1, 12.1, 12.1, 12.1, 12.2, 12.2, 12.2, 12.2, 12.2, 12.2, 12.3, 
        12.3, 12.3, 12.3, 12.3, 12.3, 12.3, 12.3, 12.4, 12.4, 12.4, 12.4, 
        12.4, 12.5, 12.5, 12.5, 12.5, 12.5, 12.5, 12.6, 12.6, 12.6, 12.6, 
        12.6, 12.7, 12.7, 12.7, 12.8, 12.8, 12.8, 12.8, 12.9, 12.9, 12.9, 
        13.0, 13.0, 13.0, 13.2, 13.2, 13.2, 13.2, 13.2, 13.3, 13.3, 13.3, 
        13.3, 13.4, 13.4, 13.5, 13.6, 13.7, 13.7, 13.7, 13.8, 13.9, 13.9, 
        14.1, 14.2, 14.2, 14.3, 14.4, 14.4, 14.5, 14.5, 14.6, 15.1, 15.2, 
        15.3, 15.4, 15.8, 15.8, 15.9, 16.0, 16.1, 16.1, 16.4, 16.6, 16.6, 
        16.9, 17.0, 17.5, 18.4, 20.6, 20.9, 24.2, 39.1, 92.9]
    print('数组长度为：' + str(len(data)))
    print('平均值为：' + str(mean(data)))
    sum = 0
    for x in data:
        sum += x
    print('总和为：' + str(sum))
    mean_value = sum / len(data)
    print(mean_value)


if __name__ == '__main__':
    cal()

#!/usr/bin/env python  
#-*- coding:utf-8 _*-  
""" 
@author:jimbray 
@file: test.py 
@time: 2021/10/08
@contact: jimbra16@gmail.com
@site: http://jimbray.xyz
@Descriptions: 
"""

from numpy import *

def cal():
    data = [10.1, 10.3, 10.3, 10.4, 10.5, 10.5, 10.6, 10.6, 10.6, 10.6, 10.7, 10.8, 10.8, 10.8, 10.9, 10.9, 10.9, 11.0, 11.0, 11.0, 11.0, 11.0, 11.1, 11.1, 11.1, 11.2, 11.2, 11.2, 11.2, 11.2, 11.2, 11.2, 11.2, 11.3, 11.4, 11.4, 11.4, 11.4, 11.4, 11.4, 11.4, 11.5, 11.5, 11.5, 11.5, 11.5, 11.5, 11.6, 11.6, 11.6, 11.6, 11.6, 11.6, 11.7, 11.7, 11.7, 11.7, 11.7, 11.8, 11.8, 11.8, 11.8, 11.8, 11.8, 11.8, 11.8, 11.8, 11.8, 11.9, 11.9, 11.9, 11.9, 11.9, 12.0, 12.1, 12.1, 12.1, 12.1, 12.1, 12.1, 12.2, 12.2, 12.2, 12.2, 12.2, 12.2, 12.3, 12.3, 12.3, 12.3, 12.3, 12.3, 12.3, 12.3, 12.4, 12.4, 12.4, 12.4, 12.4, 12.5, 12.5, 12.5, 12.5, 12.5, 12.5, 12.6, 12.6, 12.6, 12.6, 12.6, 12.7, 12.7, 12.7, 12.8, 12.8, 12.8, 12.8, 12.9, 12.9, 12.9, 13.0, 13.0, 13.0, 13.2, 13.2, 13.2, 13.2, 13.2, 13.3, 13.3, 13.3, 13.3, 13.4, 13.4, 13.5, 13.6, 13.7, 13.7, 13.7, 13.8, 13.9, 13.9, 14.1, 14.2, 14.2, 14.3, 14.4, 14.4, 14.5, 14.5, 14.6, 15.1, 15.2, 15.3, 15.4, 15.8, 15.8, 15.9, 16.0, 16.1, 16.1, 16.4, 16.6, 16.6, 16.9, 17.0, 17.5, 18.4, 20.6, 20.9, 24.2, 39.1, 92.9]
    print("数组长度为：" + str(len(data)))
    print("平均值为：" + str(mean(data)))

    sum = 0
    for x in data:
        sum += x
    print("总和为：" + str(sum))
    mean_value = sum / len(data)
    print(mean_value)


if __name__ == '__main__':
    cal()