1.原因:
代码注释中有中文,而Python ASCII 码不支持中文
2.解决方法:
在代码头文件中添加以下代码
# -*- coding: utf-8 -*-
示例:
# -*- coding: utf-8 -*-
from turtle import *
from random import *
         …...
			分类:Python
			标签:
		
	代码注释中有中文,而Python ASCII 码不支持中文
在代码头文件中添加以下代码
# -*- coding: utf-8 -*-
# -*- coding: utf-8 -*-
from turtle import *
from random import *
         …...
评论已关闭!