Last active
August 23, 2017 10:23
-
-
Save FaithPatrick/1186d5c24695ce2bc738e8331f147123 to your computer and use it in GitHub Desktop.
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 os | |
a = '\xd2\xbb' | |
open(os.path.dirname(os.path.realpath(__file__)) + '/file.txt', 'w').write(a) | |
with open(os.path.dirname(os.path.realpath(__file__)) + '/file.txt', "r") as f: | |
tmp = f.read() | |
print(tmp) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment