当前位置: 首页 > news >正文

网站图片引导页怎么做西安网站制作资源

网站图片引导页怎么做,西安网站制作资源,烟台商城网站建设,天蝎网站建设公司说明#xff1a; 自动获取当前根目录下所有py文件生成spec文件#xff0c;直接运行pyinstaller进行打包即可。直接打包成单执行文件。 直接上代码 import ospathex []def recursion(path, main):if path[:1] ! /:path /listpath os.listdir(path)for item in listpath:if…说明 自动获取当前根目录下所有py文件生成spec文件直接运行pyinstaller进行打包即可。直接打包成单执行文件。 直接上代码 import ospathex []def recursion(path, main):if path[:1] ! /:path /listpath os.listdir(path)for item in listpath:if os.path.isdir(path item):recursion(path item, main)# print(文件夹,path item)elif os.path.isfile(path item):# if .py in item and .pyc not in item and __init__ not in item and .pyz not in item and main not in item:if .py in item and all(i not in item for i in [.pyc, __init__, .pyz,.pyd, main]):# print(文件,path item)pathex.append(path item)else:print(未知文件, path item)def getTxt():return # -*- mode: python ; coding: utf-8 -*- block_cipher Nonea Analysis([${thisMain}.py],pathex${thisPath},binaries[],datas[],hiddenimports${thisPy}, runtime_hooks[],excludes[],win_no_prefer_redirectsFalse,win_private_assembliesFalse,cipherblock_cipher,noarchiveFalse) pyz PYZ(a.pure, a.zipped_data,cipherblock_cipher) exe EXE(pyz,a.scripts,a.binaries,a.zipfiles,a.datas,[],nameMain,debugFalse,bootloader_ignore_signalsFalse,stripFalse,upxTrue,upx_exclude[],runtime_tmpdirNone,consoleTrue )if __name__ __main__:# 要使用pyinstaller打包的项目路径# path E:/pythonProject/test1/pyqtpath os.path.dirname(__file__)# 打包项目的入口文件名main mainrecursion(path, main)hiddenimports []for i in pathex:if i ! path:# print(i[:i.rindex(/)])hiddenimports.append(i.replace(i[:i.rindex(/)], ).replace(i[i.index(.):], ).replace(/, ))pathexs []pathex.append(path)for i in pathex:if i ! path:pathexs.append(i.replace(os.path.abspath(os.path.join(os.getcwd(), ../)), ).replace(/, \\))continuepathexs.append(i.replace(/, \\))outTxt getTxt().replace(${thisPy},f{hiddenimports}).replace(${thisPath},f{pathexs}).replace(${thisMain},main)with open(f{path}/{main}.spec,w,encodingutf-8)as f:f.write(outTxt)f.close()exit(0) 打包后的spec文件怎么使用 直接在terminal窗口执行 pyinstaller 文件名.spec 然后回车即可
http://www.dnsts.com.cn/news/45007.html

相关文章:

  • hyip系统网站开发抖音推广引流平台
  • 江门市智企互联网站建设魔客吧wordpress主题如何安装
  • 电子产品网站开发背景腾讯云网站搭建教程
  • 牛股大转盘网站建设关键词怎么提取
  • 上传图片的网站要怎么做xss wordpress script
  • 东莞网站推广及优化创意品牌型网站
  • 上海网站建设最好的公司No餐饮网站建设
  • 什么网站可以做pptwordpress wp_list_categories
  • 高端外贸网站建设黑龙江生产建设兵团知识网站
  • 网站 备案 中国 名字免费源码下载网站
  • 有固定ip自己做网站门户网站建设自查整改
  • 网站开发外包价格石家庄建站网页模板
  • 山东住房和城乡建设厅网站注册中心优秀手机网站版式
  • 网站开发概要设计书模板智慧团建系统平台登录
  • 做网站要交百分七十定金wordpress小说网站模板下载
  • 合肥网络公司seoseo关键词工具
  • 500元做网站国外网站搜索引擎优化方案
  • wordpress搭建子網站使wordpress支持全局搜索
  • 唐山外贸网站建设网站keywords标签怎么写
  • 网站点击排名做设计什么兼职网站
  • 团建拓展网站建设需求分析国产apple
  • 有什么做动图比较方便的网站2022年中国企业500强榜单
  • ftp制作网站潜江网站开发
  • 做一个自己的网站流程网站设计模板psd
  • 珠海网站建设 骏域网站简约 网站 设计
  • 建设工程交易中心网站收费标准廊坊营销网站服务
  • 建设银行投诉处理网站竞价代运营公司哪家好
  • 腾讯公司做的购物网站信阳市网站建设公司
  • 外国 网站模板百度搜索关键词技巧
  • 中国有名的网站建设公司百度seo是什么意思