SHARE
TWEET

Untitled

Mirasio Feb 18th, 2020 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. f = open("dicof","r")
  2. dic = {}
  3. for line in f:
  4.         try:
  5.                 res = line.split("_")
  6.                 char = res[1].split("\n")[0]
  7.                 code = res[0].split("K")[0].split("0x00")[1]
  8.                 dic[char] = code
  9.         except Exception:
  10.                 pass
  11. print dic
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