python
weixin_47296041
这个作者很懒,什么都没留下…
展开
-
python匹配数字结尾字符串并排序,获取序号最小的未用的字符串
import reimport operatorpoint_list = []point_list.append(['测试list', 12, 10])point_list.append(['感应点1', 12, 10])point_list.append(['感应点2',12,10])point_list.append(['感应点4',12,10])point_list.append(['感应点15',12,10])node_list_tmp = []pattern = r'^{path原创 2021-09-27 16:29:01 · 196 阅读 · 0 评论 -
python打包
1.安装pyinstaller运行命令C:\Users\xiaofang.li\AppData\Local\Programs\Python\Python38\Scripts\pip3.exe install pyinstaller2.执行打包命令:C:\Users\xiaofang.li\AppData\Local\Programs\Python\Python38\Scripts\pyinstaller -w -D -i ./system/images/ico/game.ico --key wella原创 2021-09-24 18:20:47 · 40 阅读 · 0 评论 -
window下用dumpbin查看动态依赖库
命令行下执行:D:\software\vc++\install\VC\Tools\MSVC\14.29.30037\bin\Hostx86\x64\dumpbin.exe /dependents vlc.exe可以查看vlc的依赖库查看举例:原创 2021-09-18 08:50:45 · 524 阅读 · 0 评论 -
python键盘事件处理
本次练习通过上下左右键分别加载四张不同的照片代码如下:import pygameimport osTIMER_EVENT= pygame.USEREVENT + 2 # 定时器事件#游戏刷新帧率,每秒40次FRAME_PER_SEC = 40SCREEN_RECT = pygame.Rect(0, 0, 1000, 700)FULLSCREEN = -2147483648image1_path="./images/image1.jpg"image2_path="./images/原创 2021-08-03 17:53:28 · 869 阅读 · 0 评论 -
python库pgu安装
以下缺库的情况,有时候找不到:from pgu import guiModuleNotFoundError: No module named ‘pgu’选择安装pygame-gpu安装步骤如下:,原创 2021-07-22 09:00:57 · 367 阅读 · 0 评论 -
winrandom库问题
遇到winrandom库需要安装,搜索发现没有同名库,后同事说把crypto下的文件内容改一下,我的库安装路径是C:\Users\xiaofang.li\AppData\Local\Programs\Python\Python38\Lib\site-packages把这个路径下的Crypto/Random/OSRNG/nt.py中的import winrandom 改为from Crypto.Random.OSRNG import winrandom即可...原创 2021-07-21 15:35:04 · 202 阅读 · 0 评论 -
安装pythoncrypto 出现的一连串错误
安装pythoncrypto 出现的一连串错误**1.错误信息如下:warning: GMP or MPIR library not found; Not building Crypto.PublicKey._fastmath.building ‘Crypto.Random.OSRNG.winrandom’ extensionerror: Microsoft Visual C++ 14.0 or greater is required. Get it with “Microsoft C++ Buil原创 2021-07-21 14:39:01 · 1054 阅读 · 2 评论