daily pastebin goal
9%
SHARE
TWEET

Untitled

a guest Jan 14th, 2018 50 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top