Created
January 23, 2015 07:00
-
-
Save dydx/be117282e56ba3f5cabc to your computer and use it in GitHub Desktop.
#wow so fast
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import subprocess | |
def set(key, val): | |
f = open(key, 'w') | |
f.write(val) | |
f.close() | |
def get(key): | |
return subprocess.check_output(["cat", key]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment