reversed()l = [1,2,3,4,5]l.reverse()print(l) l = [1,2,3,4,5]l2 = reversed(l)reversed:更加节省内存资源print(l2)保留原列表,返回一个反序的迭代器 l = [1,2,23,213,456,231314,24]sli = slice(1,5,2)print(l[sli])print(l[1:5:2]) format 调整格式print(format('test','<20')) # 参数一: 操作字符串对象,…