python3练习100题——040

原题链接:http://www.runoob.com/python/python-exercise-example40.html

题目:将一个数组逆序输出。

a=[1,2,3,4,5]
print a[::-1]

太容易了,我觉得没必要按照原答案里,将首位和末尾的数交换。

原文地址:https://www.cnblogs.com/drifter/p/9212119.html