Guest User

Untitled

a guest
Jan 14th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. headers = {}
  2. with open(r"e:/test/header") as f:
  3. s = f.read()
  4. for i in s.split("\n"):
  5. k = i.split(":")[0]
  6. v = i.split(":")[1]
  7. headers[k.strip()] = v.strip()
Add Comment
Please, Sign In to add comment