#线上产品运营
import math
def assess():
nums = []
iNumStr = input("请输入对质量的评分(1-5直接回车退出):")
nums.append(eval(iNumStr))
iNumStra = input("请输入对物流的评分(1-5直接回车退出:")
nums.append(eval(iNumStra))
iNumStrb = input("请输入对客服的评分(1-5直接回车退出):")
nums.append(eval(iNumStrb))
return nums
def mean(numbers):
s = 0.0
for i in range(len(nums)):
s = s + nums[i]
c = s / len(nums)
return c
def analysis(c):
sta = ""
if 0<= c <2 :
sta = "差劲"
elif 2<= c <4 :
sta = "一般"
else:
sta = "优秀"
return sta
nums = assess()
a = mean(nums)
d = analysis(c)
print("平均值:{},评价为:".format(a,d))