扫码下载编程狮APP
W3Cschool
恭喜您成为首批注册用户
获得88经验值奖励
Python 100例
题目:按相反的顺序输出列表的值。
程序分析:无。
程序源代码:
#!/usr/bin/python # -*- coding: UTF-8 -*- a = ['one', 'two', 'three'] for i in a[::-1]: print i
以上实例输出结果为:
three two one
更多建议:
扫描二维码
下载编程狮App
编程狮公众号
联系方式:
更多建议: