单选题

执行下面Python代码后,输出的结果是?(    )

def func(lst):

      lst.append(10)

      return lst

lstA = [1,2,3]

func(lstA)

print(lstA,func(lstA))

A

[1, 2, 3, 10, 10] [1, 2, 3, 10, 10]

B

[1, 2, 3] [1, 2, 3, 10]

C

[1, 2, 3, 10] [1, 2, 3, 10]

D

[1, 2, 3, 10] [1, 2, 3, 10, 10]

赣ICP备20007335号-2