| Python 2.2 für Einsteiger | ||
|---|---|---|
| <<< Previous | Einführung anhand von Beispielen | Next >>> |
#!/usr/bin/python2.2
from __future__ import generators
try:
while 1:
Liste = [1,2,"test"]
i = iter(Liste)
print i.next()
print i.next()
print i.next()
print i.next()
except StopIteration: pass
| <<< Previous | Home | Next >>> |
| MySQL Datenbankanschluß | Up | Programmaufruf aus Python |