views:

30

answers:

1

(1)

a={'b':'bbbb','c':'ccc',....}

(2)

self.redirect('/tribes/view?b=' + a['b'] + '&c=' + a['c'])

so i want to get

b=' + a['b'] + '&c=' + a['c'] ...

from dict a

hae any easy way to do this ?

thanks

+5  A: 
from urllib import urlencode
urlencode({'b':'bbbb', 'c':'ccc'})
Satoru.Logic