[cse491] (no subject)

C. Titus Brown ctb at msu.edu
Tue Sep 23 18:20:16 PDT 2008


On Tue, Sep 23, 2008 at 09:17:31PM -0400, Brett Thomas Mcmillen wrote:
-> 
-> You helped me earlier, but I'm still a little confused. 
-> 
-> I have:  for keys in x:
->          for i in keys:
->            value_key = 'key=',keys[i],+';'+' '+'value=',???? 
-> 
-> I'm just not so sure how you reference the VALUES? 

Is 'x' the result of parse_qs?

It should be something like:

x = parse_qs(...)
for key in x:
   value_list = x[key]
   for value in value_list:
      ...

-titus
-- 
C. Titus Brown, ctb at msu.edu



More information about the cse491-fall-2008 mailing list