Latest web development tutorials

Python beinhaltet 32 ​​Übungen

Python 100 Li Python 100 Li

Titel: In umgekehrter Reihenfolge Ausgabewert der Liste.

Programmanalyse: Keine.

Source Code:

#!/usr/bin/python
# -*- coding: UTF-8 -*-

a = ['one', 'two', 'three']
for i in a[::-1]:
	print i

Das obige Beispiel Ausgabe lautet:

three
two
one

Python 100 Li Python 100 Li