a = ['a', 'c', 'd','h','o'] print(a[::-1]) 结果: ['o', 'h', 'd', 'c', 'a'] Process finished with exit code 0