Python 中有非ASCII字符时,需要在第一行加入 #coding=utf-8 因此有注释时,特别是中文注释, 不加这个会报错. 转载于:https://www.cnblogs.com/cfdljc/p/4878877.html