Advertisement
Guest User

Untitled

a guest
Sep 2nd, 2014
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. fd = {}
  2. fo = {'yandex.ru': ['page-url', 'wmode', 'wv-type', 'wv-hit', 'wv-part', 'wv-check', 'browser-info']}
  3.  
  4. def add(form, fdict):
  5. dom = form.keys()[0]
  6. if dom in fdict.keys():
  7. if form[dom] not in fdict[dom]:
  8. fdict[dom].append(form[dom])
  9. else:
  10. fdict[dom] = [form[dom]]
  11. return fdict
  12. fd = add(fo, fd)
  13. print(fd)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement