以下代码的输出结果是【】。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}
C
举一反三
- 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
内容
- 0
I had __________egg and some milk for breakfast this morning. A: a B: an C: the D: /
- 1
以下是healthy food的有: A: ice cream B: bread C: egg D: fish E: vegetable F: rice G: noodles
- 2
This morning I had ____ egg and ____ bottle of milk for my breakfast. A: an; a B: a; a C: the; an D: a; an
- 3
For Stanley, which of the following is available for breakfast? A: Bread, biscuits, milk, ice-cream B: Milk, bread, biscuit and orange C: Egg, bread, biscuit, and milk
- 4
In this passage, "artificial food" refers to food made from ______. A: milk B: grain C: protein D: soybeans