预测整条流水线的产出
运行下面的 Python 3 程序,填写结果。
orders = [{"city": "北京", "amount": 120},
{"city": "上海", "amount": 80},
{"city": "北京", "amount": 200},
{"city": "广州", "amount": 150}]
total = 0
for o in orders:
if o["amount"] >= 100:
total = total + o["amount"] * 10
print(total)
全部评论