单选题

下面Python代码执行后输出是(     )。

lstA = [1,2,3]

def Foo(lst):

       lst = [(i,i **2) for i in lst]

       return lst

print(Foo(lstA),lstA)

A

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

B

[1, 1, 2, 4, 3, 9] [1, 2, 3]

C

[(1, 1), (2, 4), (3, 9)] [1, 2, 3]

D

[(1, 1), (2, 4), (3, 9)] [(1, 1), (2, 4), (3, 9)]

赣ICP备20007335号-2