|
Python3.6版本,Windows10操作系统,geany下编辑代码如下:
#-*- coding:utf-8 -*-
#coding=utf-8
class settings():
"""存储《外星人入侵》的所有设置的类"""
def __init__(self):
"""初始化游戏的设置"""
# 屏幕设置
self.screen_width = 1200
self.screen_heith = 700
self.bg_color = (230, 230, 230)
错误反馈如下:
File "settings.py", line 5
SyntaxError: (unicode error) 'utf-8' codec can't decode byte 0xb4 in position 0: invalid start byte
------------------
(program exited with code: 1)
请按任意键继续. . .
求助各位大神给予帮助,谢谢。
|
|