下列哪些选项中的代码在实际运行过程中会报错( )
A: animals = ('猫','狗','猪')print(animals[0])
B: animals = ('猫','狗','猪')animals[0] = '蛇'
C: animals = ('猫','狗','猪')animals = ('蛇',)
D: animals = ('猫','狗','猪')animals.append('蛇')print(animals)
A: animals = ('猫','狗','猪')print(animals[0])
B: animals = ('猫','狗','猪')animals[0] = '蛇'
C: animals = ('猫','狗','猪')animals = ('蛇',)
D: animals = ('猫','狗','猪')animals.append('蛇')print(animals)
举一反三
- People couldn't live without water; ______. A: neither are animals B: nor are animals C: neither could animals D: so could animals
- In China every year is represented by a repeated cycle of ___________. A: 12 birth animals B: 12 great animals C: 12 zodiac animals D: 12 beloved animals
- If visitors provide food the animals, this may upset the animals’ ______.
- The case ________ using animals in research: a) Animals ________ a lot during the experiments. b) Much of the research is ________. c) Animals have ________ as humans do.
- Only when they are injured______. A: will some animals attack a human being B: a human being will be attacked by some animals C: some animals will attack a human being D: that some animals attack a human being