Latest web development tutorials

Python comprend des exercices 77

Python 100 Li Python 100 Li

Titre: liste de sortie de cycle

Analyse du programme: Aucun.

Source Code:

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

if __name__ == '__main__':
    s = ["man","woman","girl","boy","sister"]
    for i in range(len(s)):
        print s[i]

L'exemple ci-dessus sortie est:

man
woman
girl
boy
sister

Python 100 Li Python 100 Li