#encoding=utf-8#reverse,用来反转lista=['aa','bb','cc']a.reverse()print a#['cc', 'bb', 'aa']#不能直接print a.reverse(),报None#'tuple','dict','str' object has no attribute 'reverse',不能jiang字符串reverse #join以指定连接符连接tuple,list,strin,dict,输出为str类型seq1 = ['hello','g…