Re: [python] Jak setridit dictionary

2017-03-31 Tema obsahu Michal Bozon
ot;my_keys_asc_sort =%s" %my_keys >> >> my_keys.sort(sort_fun) >> print "my_keys_desc_sort =%s" %my_keys >> >> >> >> >> "Ondrej Beran" <ondrej.be...@gmail.com> >> Sent by: python-boun...@py.cz >> 10.10.2007 11:0

[python] Jak setridit dictionary

2007-10-10 Tema obsahu Ondrej Beran
Ahoj vsichni, mam dictionary napr. {1:'z', 2:'m', 3:'a', } a potreboval bych k nemu vytvorit neco jako index setrideny podle hodnoty, napr. [3,2,1,...], abych mohl s polozkami v dicitionary pracovat v poradi danem tim indexem. Ale nenapada mi, jak to udelat... Poradi mi nekdo? Diky, Ondrej

Re: [python] Jak setridit dictionary

2007-10-10 Tema obsahu RMiklos
my_keys_desc_sort =%s %my_keys Ondrej Beran [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 10.10.2007 11:01 Please respond to Konference PyCZ python@py.cz To python@py.cz cc Subject [python] Jak setridit dictionary Ahoj vsichni, mam dictionary napr. {1:'z', 2:'m', 3:'a', } a potreboval

Re: [python] Jak setridit dictionary

2007-10-10 Tema obsahu rajcze
(sort_fun) print my_keys_desc_sort =%s %my_keys Ondrej Beran [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 10.10.2007 11:01 Please respond to Konference PyCZ python@py.cz To python@py.cz cc Subject [python] Jak setridit dictionary Ahoj vsichni, mam dictionary napr. {1:'z', 2:'m