1、
>>> a = ["aaa","bbb","ccc","ddd"] >>> b = reversed(a) >>> c = [] >>> for i in b: c.append(i) >>> c ['ddd', 'ccc', 'bbb', 'aaa']
2、
>>> a = ["aaa","bbb","ccc","ddd"] >>> a.reverse() >>> a ['ddd', 'ccc', 'bbb', 'aaa']
2023-11-12 15:26:10
1、
>>> a = ["aaa","bbb","ccc","ddd"] >>> b = reversed(a) >>> c = [] >>> for i in b: c.append(i) >>> c ['ddd', 'ccc', 'bbb', 'aaa']
2、
>>> a = ["aaa","bbb","ccc","ddd"] >>> a.reverse() >>> a ['ddd', 'ccc', 'bbb', 'aaa']