# 数据类型 :int bool ...# 数据结构 : dict list tuple set str reversed()l = [1,2,3,4,5]l.reverse()print(l)l = [1,2,3,4,5]l2 = reversed(l)print(l2)保留原列表,返回一个反向的迭代器 l = (1,2,23,213,5612,342,43)sli = slice(1,5,2)print(l[sli])print(l[1:5:2]) print(format('test',…