外星人入侵游戏错误
返回错误:pygame 1.9.4
Hello from the pygame community. https://www.pygame.org/contribute.html
Traceback (most recent call last):
File "alien_invasion.py", line 5, in <module>
File "E:\python_work\settings.py", line 3
SyntaxError: (unicode error) 'utf-8' codec can't decode byte 0xb4 in position 0: invalid start byte
------------------
(program exited with code: 1)
代码:
# -*-coding:UTF-8 -*-
import sys
import pygame
from settings import Settings
def run_game():
是编码问题,你把开头一行的 coding: UTF-8 去掉试试
My_A 发表于 2019-2-9 23:20
是编码问题,你把开头一行的 coding: UTF-8 去掉试试
谢谢,一年多没有登录论坛了,刚刚找回了密码,谢谢
页:
[1]