Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- with open(filepath, 'w') as file_:
- file_.write(my_content.decode('base64'))
- from base64 import b64decode
- with open(filepath, 'wb') as file_:
- file_.write(b64decode(my_content.encode('utf-8')))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement