reverse
用法
list.reverse()
names = ['香蕉', '水果', '苹果']
names.reverse()
print(names)
结果
['苹果', '水果', '香蕉']
用法
list.reverse()
names = ['香蕉', '水果', '苹果']
names.reverse()
print(names)
结果
['苹果', '水果', '香蕉']