单选题

下列Python代码的输出为?( )

g=[1,2,3,4,5] 
a=g.pop(1) 
print(g[-a])

A

2

B

5

C

3

D

4

赣ICP备20007335号-2