添加這個更簡潔 #coding: utf-8
在文件頭部添加這一句即可# -*- coding: utf-8 -*
SyntaxError: Non-ASCII character '\xe5' in file ex16.py on line 1,
ng declared; see http://python.org/dev/peps/pep-0263/ for details
意思是在文件中存在非ASCII字符(中文);
在頭部添加
# -*- coding: utf-8 -*-
或
# -*- coding: cp936 -*-

