Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from pathlib import Path
- import codecs
- def decode(filename: Path) -> str:
- with open(filename, encoding='Big5') as file:
- text = file.read()
- return text
- print(decode('one.txt'))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement