Guest User

Untitled

a guest
Dec 12th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. class clean_string:
  2.  
  3. def __init__(self,cadena):
  4. self.replace_chars = {"á":"a","ó":"o"}
  5. self.cadena = cadena
  6. def split_func(self):
  7. return self.cadena.split(' ')
  8.  
  9. python3 clean.py
  10.  
  11. $ python clean.py
  12. File "clean.py", line 4
  13. SyntaxError: Non-ASCII character 'xc3' in file clean.py on line 4, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
Add Comment
Please, Sign In to add comment