菜鸟教程 练习实例32 (python3)

题目:按相反的顺序输出列表的值。
程序分析:无。

# -*- coding:utf-8 -*-

list_1 = ['a', 'b', 'c']
for i in range(len(list_1) - 1, -1, -1):
    print(list_1[i])

猜你喜欢

转载自blog.csdn.net/zhangyu4863/article/details/80544663