单选题

运行下列 Python 代码,输出结果是( )

animal = ['老虎', '1', '狮子', '2', '长颈鹿', '3']
print(animal['狮子'])

A

3

B

狮子

C

2

D

1

赣ICP备20007335号-2