Advertisement
Guest User

Untitled

a guest
Sep 24th, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. with open(filepath, 'w') as file_:
  2. file_.write(my_content.decode('base64'))
  3.  
  4. from base64 import b64decode
  5. with open(filepath, 'wb') as file_:
  6. file_.write(b64decode(my_content.encode('utf-8')))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement