Does anyone know how to fix this error:
File "lcd3.py", line 54
SyntaxError: Non-ASCII character '\xc4' in file lcd3.py on line 54, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
Adding this line doesn't change anything:
# -*- coding: utf-8 -*-
Try adding both of these to the beginning of your code, and take out what you have right now at the top:
#!/usr/bin/env python
# -*- coding: utf-8 -*-
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.