1. 问题 UnicodeDecodeError: ‘utf-8’ codec can’t decode bytes in position 7-8: invalid continuation byte 2. 解决 在文件最上方添加 # -*- coding: utf-8 -*-