以下代码的输出结果是【】。food_counter = 0def addone(food):if food in food_counter:food_counter[food] += 1else:food_counter[food] = 1addone('egg')addone('milk')addone('egg')print(food_counter)
A: {'egg':1, 'milk':1, 'egg':1}
B: {'egg':1, 'milk':1}
C: {'egg':2, 'milk':1}
D: {'egg':2, 'milk':1, 'egg':1}
A: {'egg':1, 'milk':1, 'egg':1}
B: {'egg':1, 'milk':1}
C: {'egg':2, 'milk':1}
D: {'egg':2, 'milk':1, 'egg':1}
举一反三
- What are you interested in about cooking food ?<br/>We are all interested in () . A: how egg is fried B: how is egg fried C: how egg fries D: how does egg fry
- Which kind of following foods belongs to protective food? A: meat B: cereal C: egg D: vegetable
- She has __ egg and some milk every morning. A: a B: an C: the
- Which of the following foods cannot remove heavy metals from food? A: Egg B: Kelp C: Carrot D: Vegetable oil
- Which one isn't Chinese food? A: Curry crab B: Jiaozi C: hand-pulled noodles D: egg and tomato soup