Latest web development tutorials

Python beinhaltet 34 Übungen

Python 100 Li Python 100 Li

Titel: Praxisfunktionsaufruf.

Programmanalyse: Keine.

Source Code:

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

def hello_world():
    print 'hello world'

def three_hellos():
    for i in range(3):
        hello_world()
if __name__ == '__main__':
    three_hellos()

Das obige Beispiel Ausgabe lautet:

hello world
hello world
hello world

Python 100 Li Python 100 Li