程序源代码:
实例
#!/usr/bin/python # -*- coding: UTF-8 -*- a = ['one', 'two', 'three'] for i in a[::-1]: print (i)
以上实例输出结果为:
three
two
one微信扫一扫
程序源代码:
#!/usr/bin/python # -*- coding: UTF-8 -*- a = ['one', 'two', 'three'] for i in a[::-1]: print (i)
以上实例输出结果为:
three
two
one相关推荐