报错信息:
Message=module 'cfg' has no attribute 'SCREENSIZE'
Source=C:\Users\Desktop\Work\whu\python\pythonGame\pygames\pygames.py
StackTrace:
File "C:\Users\Desktop\Work\whu\python\pythonGame\pygames\pygames.py", line 136, in main
screen = pygame.display.set_mode(cfg.SCREENSIZE)
File "C:\Users\Desktop\Work\whu\python\pythonGame\pygames\pygames.py", line 149, in <module> (Current frame)
main()
出错代码:
screen = pygame.display.set_mode(cfg.SCREENSIZE)
请问是cfg模块出了问题吗?
在我的电脑上安装的cfg模块的源码里确实没有“SCREENSUIZE”的描述?
解决了吗?
降低版本也不行呢
这个是pygame的模块问题,你降低pygame的版本试试