本帖最后由 雷昊天 于 2022-8-25 19:04 编辑
[Python] 纯文本查看 复制代码 def count(price_list):
total = sum(price_list):
if total >= 200:
result = total * 0.6
elif total >= 100:
result = total * 0.7
else:
result = total * 0.8
print(result)
a = [54,76,23,90,67,84]
count (a)
|