Advertisement
Guest User

Untitled

a guest
Feb 25th, 2020
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. from pathlib import Path
  2. import codecs
  3.  
  4. def decode(filename: Path) -> str:
  5. with open(filename, encoding='Big5') as file:
  6. text = file.read()
  7. return text
  8.  
  9. print(decode('one.txt'))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement