Advertisement
rfmonk

urllib_urlencode_doseq.py

Feb 10th, 2014
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.18 KB | None | 0 0
  1. #!/usr/bin/env python
  2.  
  3.  
  4. import urllib
  5.  
  6. query_args = {'foo': ['foo1', 'foo2']}
  7. print 'Single   :', urllib.urlencode(query_args)
  8. print 'Sequence :', urllib.urlencode(query_args, doseq=True)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement