[Tutor] accessing data in a usable format

jon vspython jonvspython at gmail.com
Thu Oct 18 23:35:35 CEST 2007


What about this?

dic = {}
for line in file("findvalue.dat"):
    a,b,c,d = line.split()
    dic [a] = (float(b), float(c), float(d))
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20071018/f4cbfdb2/attachment.htm 


More information about the Tutor mailing list