[Python-de] Algorithmusfrage
Jochen Schulz
ml at well-adjusted.de
Don Aug 18 08:07:09 CEST 2005
Henning.Ramm at mediapro-gmbh.de:
>
> Ich dachte an sowas:
>
> return [ array[row][col] for row in array if col in array[row] else None ]
if col in array.keys()
Bin nicht sicher, ob das geht.
J.
--
In this bunker there are women and children. There are no weapons.
[Agree] [Disagree]
<http://www.slowlydownward.com/NODATA/data_enter2.html>
-------------- nächster Teil --------------
Ein Dateianhang mit Binärdaten wurde abgetrennt...
Dateiname : nicht verfügbar
Dateityp : application/pgp-signature
Dateigröße : 189 bytes
Beschreibung: Digital signature
URL : http://starship.python.net/pipermail/python-de/attachments/20050818/8ab031b2/attachment.pgp