E:\program\Anaconda3\python.exe E:/working/education_case/code/text_classification/code/构建文本分类器.py
File "E:/working/education_case/code/text_classification/code/构建文本分类器.py", line 2
SyntaxError: Non-UTF-8 code starting with '\xbc' in file E:/working/education_case/code/text_classification/code/构建文本分类器.py on line 2, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
经过百度查看其他人的博客,说是Python的默认编码格式是UTF-8,若指定编码格式则需在开头添加如下代码:
# -*- coding: UTF-8 -*-
#建议采用该语句
或
#-*-coding:gb2312-*-
问题即可解决!!