AI题库 · GESP-Python三级题库
题目分享 #18356
执行下面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’)
AI题库 · 编程考级与信奥赛真题库
查看答案 →
复制链接后可在微信、QQ、小红书等平台粘贴分享;答案与解析在题目页。