单选题

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

t1 = ("python", "c++", "scratch")

t2 = tuple(i for i in t1[::-1])

print(t2)

A

('scratch', 'c++', 'python')

B

('python', 'scratch', 'c++')

C

('scratch', 'python','c++')

D

('c++','python','scratch')

赣ICP备20007335号-2