[Python-de] Problem mit Liste
Klaus Boehm
k.boehm at ewt.de
Die Jun 7 14:46:33 CEST 2005
Hallo,
ich habe ein kleines Problem.
Ich hole mir über ein python-script
aus zope eine liste von Werten.
a = []
for c in container.customers.objectValues('Customer'):
if c.active and c.ip:
a.append(c.ip)
return a
Ich bekomme eine Liste zurück und möchte dann
mit einer for-Schleife über diese Liste gehen.
['213.20.130.135', '213.20.131.178', '217.188.108.22', '213.20.131.179']
for i in a:
print i
Als Ergebnis bekomme ich aber jedes einzelen Zeichen
in dieser Liste.
Vielleicht hat jemand eine Tip.
Danke im voraus.
Klaus
--
---------------------------------------------
Klaus Boehm
Systemadministrator
ewt multimedia GmbH & Co. KG
D-86152 Augsburg, Volkhartstr. 4-6
Phone: +49.(0)821.3106-319
Fax: +49.(0)821.310660-319
mailto:k.boehm at ewt.de
http://www.ewt.de
http://www.surf-club.de
---------------------------------------------