单选题

小明的妈妈在超市里买了一些商品,商品的价格放在列表里,现在超市对商品进行打折处理,请运行如下代码输出结果?( )
def fun(lst):
   total = 0
   for x in lst:
       if x >= 100:
           total += x * 0.5
       else:
           total += x
   return total
goods = [140, 90, 120, 60]
print(fun(goods))

A

390.0

B

280.0

C

260.0

D

150.0

赣ICP备20007335号-2