Trying to understand working with dicts
inshu chauhan
insideshoes at gmail.com
Fri Apr 5 08:34:03 EDT 2013
Hello everyone,
Here in my part of the code where cc is a dictionary. I want to understand
what actually cc.iterkeys() and cc[k] actually doing.
I am already reading
http://docs.python.org/2/library/stdtypes.html#dict.items
and http://www.tutorialspoint.com/python/python_dictionary.htm but still
not very clear.
cc = Computesegclass(segimage, refimage)
for k in sorted(cc.iterkeys()):
i = argmax(cc[k])
print >> f, i+1
Thanks in Advance
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20130405/76352406/attachment.html>
More information about the Python-list
mailing list