![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
CCIEFZ
网络工程师
展开
-
pygame小甲鱼飞机大战游戏打包为exe文件遇到的各种问题终极解决办法
在python中比较常用的python转exe方法有三种,分别是cx_freeze py2exe PyInstaller。两种似乎对python3的支持不好,操作也没cx_freeze简单,所以选择cx_freeze来打包python程序。一、pyinstaller打包方法安装Pyinstaller1、安装pywin32win+R打开cmd使用pip命令安装:pip install...原创 2019-11-27 14:20:47 · 1386 阅读 · 1 评论 -
《飞机大战》pygame异常报错信息:NameError: name ' ' is not defined,名称错误,名称“ ”未定义
准备在游戏页面添加一个历史最高分的显示,在关卡得分和关卡等级后面,recordscore 在这之前还没有定义,直接做了一个 global recordscore 全局变量,但是还是报错;报错信息如下:pygame 1.9.6Hello from the pygame community. https://www.pygame.org/contribute.htmlTraceback (mo...原创 2019-11-02 14:23:37 · 6632 阅读 · 3 评论