Skip to content

Instantly share code, notes, and snippets.

@duythinht
Created July 5, 2017 13:12
Show Gist options
  • Save duythinht/5dbcd5ca8e8ea2601c7978826c943962 to your computer and use it in GitHub Desktop.
Save duythinht/5dbcd5ca8e8ea2601c7978826c943962 to your computer and use it in GitHub Desktop.
with open("values.txt") as f:
key_pairs = (line.split("=") for line in f.readlines())
values = {item[0]: item[1] for item in key_pairs}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment