hozer

Untitled

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