反向遍历元祖、列表、字符串reversed() t=(1,'aa','哈') for i in reversed(t): print(i) 结果: 哈 aa 1 这里是引用 反向截取字符串 a='testfan' print(a[::-1]) 结果:naftset