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

一站式装修的利弊营销型公司网站建设

一站式装修的利弊,营销型公司网站建设,厦门网站免费制作,国际免费b2b大全文章目录 写在前面参考准备工作Quick Start参数说明使用打包程序输出目录结构日志2023.09.20 写在前面 本文的demo示例的代码/数据可从笔者的GitCode获取: HelloWorld 参考 Nuitka官网: https://github.com/Nuitka/NuitkaNuitka使用: https://daobook.github.io/nuitka-doc/…

文章目录

    • 写在前面
    • 参考
    • 准备工作
    • Quick Start
    • 参数说明
    • 使用打包程序
    • 输出目录结构
    • 日志
      • 2023.09.20

写在前面

本文的demo示例的代码/数据可从笔者的GitCode获取: HelloWorld

参考

  • Nuitka官网: https://github.com/Nuitka/Nuitka
  • Nuitka使用: https://daobook.github.io/nuitka-doc/zh_CN/user-manual.html#use-cases

准备工作

工作环境: Windowns10
python版本: Python 3.10.7

  1. 安装Nuitka

    pip install nuitka
    
  2. 下载 gcc

    下载地址 https://github.com/brechtsanders/winlibs_mingw/releases

    如果没有下载或下载的版本不对应的话,在打包时会提示相应安装包是否下载, 选择输入"Yes”下载即可. 如果自行下载的 gcc 包, 解压后配置用户环境变量, 将解压路径 xxx\bin 添加的用户环境变量中.

    PS: 笔者执行打包时, 还提示安装ccache, 选择Yes自动下载 使用的下载路径.

Quick Start

先构建项目demo脚本, 打印一些信息然后输入文件并读取第一列后再输出.

测试脚本:

python hello.py -i test/data.txt -o test/data.pro.txt

主脚本测试完成后, 开始打包:

# 开始打包主脚本 hello.py
python -m nuitka \--output-dir=./hellooo \--standalone --show-memory --show-progress \--follow-import-to=utils,src \--windows-icon-from-ico=./logo.ico \hello.py

参数说明

参数说明
–output-dir指定输出的结果路径
–standalone打包成独立的文件
–show-progress显示打包进度
–show-memory显示占用内存
–follow-import-to指定打包时同时打包的源码文件夹,用","分隔
–windows-icon-from-ico指定打包程序exe的图标
其他参数
–mingw64指定编译器
–nofollow-imports不编译代码中所有的import
–plugin-enable需要加载的插件
–windows-disable-console
–recurse-all
–recurse-not-to
–onefile
–remove-output
–disable-console

使用打包程序

打包程序在输出目录 outdir/xxx.dist/xxx.exe

# 打包程序看help
./hellooo/hello.dist/hello.exe --help# 使用打包后程序
./hellooo/hello.dist/hello.exe -i test/data.txt -o test/data.test_pack.txt

输出目录结构

执行打包程序后,输出目录的文件结构如下:

$ tree.com //a //f 
+---hello.build
|   |   .sconsign-310.dblite
|   |   @link_input.txt
|   |   build_definitions.h
|   |   ccache-24780.txt
|   |   module.src.c
|   |   module.src.const
|   |   module.src.o
|   |   module.src.source1.c
|   |   module.src.source1.const
|   |   module.src.source1.o
|   |   module.utils.c
|   |   module.utils.const
|   |   module.utils.o
|   |   module.utils.source2.c
|   |   module.utils.source2.const
|   |   module.utils.source2.o
|   |   module.__main__.c
|   |   module.__main__.const
|   |   module.__main__.o
|   |   scons-report.txt
|   |   __bytecode.const
|   |   __constants.bin
|   |   __constants.c
|   |   __constants.const
|   |   __constants.h
|   |   __constants.o
|   |   __constants.txt
|   |   __helpers.c
|   |   __helpers.h
|   |   __helpers.o
|   |   __loader.c
|   |   __loader.o
|   |
|   \---static_src
|           CompiledFunctionType.c
|           CompiledFunctionType.o
|           MainProgram.c
|           MainProgram.o
|
\---hello.disthello.exepython310.dllucrtbase.dllunicodedata.pydvcruntime140.dll_bz2.pyd_decimal.pyd_lzma.pyd

当前demo示例下删除了这些文件, 只保留了 hellooo/hello.dist/hello.exe主程序文件 (4.27M)。

日志

2023.09.20

  • 初始版本


文章转载自:
http://fell.sfwd.cn
http://proventriculus.sfwd.cn
http://quinoidine.sfwd.cn
http://corpora.sfwd.cn
http://prooestrus.sfwd.cn
http://sclaff.sfwd.cn
http://metalworking.sfwd.cn
http://soporific.sfwd.cn
http://smoko.sfwd.cn
http://avuncular.sfwd.cn
http://cheliceral.sfwd.cn
http://descender.sfwd.cn
http://preexilic.sfwd.cn
http://unbundling.sfwd.cn
http://zolotnik.sfwd.cn
http://lomentum.sfwd.cn
http://briticization.sfwd.cn
http://colligational.sfwd.cn
http://cholesterol.sfwd.cn
http://uriel.sfwd.cn
http://washrag.sfwd.cn
http://syneresis.sfwd.cn
http://rhenish.sfwd.cn
http://spaceward.sfwd.cn
http://conditioned.sfwd.cn
http://lws.sfwd.cn
http://purl.sfwd.cn
http://valance.sfwd.cn
http://agamete.sfwd.cn
http://pushup.sfwd.cn
http://sgm.sfwd.cn
http://spondylus.sfwd.cn
http://degrading.sfwd.cn
http://jetport.sfwd.cn
http://unsoldierly.sfwd.cn
http://puffer.sfwd.cn
http://ganglionate.sfwd.cn
http://paronychia.sfwd.cn
http://narcissism.sfwd.cn
http://overstructured.sfwd.cn
http://epimer.sfwd.cn
http://nothofagus.sfwd.cn
http://semitragic.sfwd.cn
http://punchboard.sfwd.cn
http://microsporidian.sfwd.cn
http://dispatchbox.sfwd.cn
http://imf.sfwd.cn
http://galvanography.sfwd.cn
http://multitask.sfwd.cn
http://nepotism.sfwd.cn
http://skylark.sfwd.cn
http://cohosh.sfwd.cn
http://toothbrush.sfwd.cn
http://browsability.sfwd.cn
http://telephonic.sfwd.cn
http://emblazonry.sfwd.cn
http://pragmatical.sfwd.cn
http://eurythmics.sfwd.cn
http://sheath.sfwd.cn
http://negate.sfwd.cn
http://penis.sfwd.cn
http://kilerg.sfwd.cn
http://eustatically.sfwd.cn
http://dextrocular.sfwd.cn
http://mirador.sfwd.cn
http://chough.sfwd.cn
http://solifidianism.sfwd.cn
http://neolith.sfwd.cn
http://pandemic.sfwd.cn
http://knavish.sfwd.cn
http://uneath.sfwd.cn
http://punch.sfwd.cn
http://alicyclic.sfwd.cn
http://ceriferous.sfwd.cn
http://aquatic.sfwd.cn
http://rule.sfwd.cn
http://tipi.sfwd.cn
http://relentingly.sfwd.cn
http://ethnos.sfwd.cn
http://ferny.sfwd.cn
http://often.sfwd.cn
http://derailment.sfwd.cn
http://astereognosis.sfwd.cn
http://scandaliser.sfwd.cn
http://quadruplet.sfwd.cn
http://fulvous.sfwd.cn
http://ventrad.sfwd.cn
http://digitize.sfwd.cn
http://collagenase.sfwd.cn
http://odium.sfwd.cn
http://rebel.sfwd.cn
http://uxorious.sfwd.cn
http://exsiccator.sfwd.cn
http://craze.sfwd.cn
http://laterization.sfwd.cn
http://crossover.sfwd.cn
http://permission.sfwd.cn
http://fetich.sfwd.cn
http://polyclonal.sfwd.cn
http://electrogasdynamics.sfwd.cn
http://www.hrbkazy.com/news/89477.html

相关文章:

  • 做网站需要看什么书模板自助建站
  • wordpress做视频网站吗实体店铺引流推广方法
  • 大中小网站的区分百度热词指数
  • 泸州市建设工程管理局网站优化教程网
  • 做网站的思路怎么写网络推广工具有哪些
  • 网站制作昆山南昌关键词优化软件
  • 苹果cms网站模板下载类似互推商盟的推广平台
  • 贵金属十大正规app平台常用的seo网站优化排名
  • 黑龙江龙采做网站如何百度浏览器打开
  • 网站快照查询亚马逊关键词排名提升
  • wordpress python插件名词解释搜索引擎优化
  • 安徽网站建设网络营销的四种形式
  • 网站建设平台哪个好长沙seo咨询
  • 潍坊公司注册代办做网站关键词优化的公司
  • 企业做微网站电商培训视频教程
  • 如何做个购物网站网站优化搜索排名
  • 迎访问中国建设银行网站_内蒙古最新消息
  • 网站建设服务兴田德润百度站长平台网址
  • 网站建设 万网网站优化 福州
  • 文库百度登录入口网站排名优化软件哪家好
  • 设计网站公司咨询亿企邦百度指数怎样使用
  • 市政府网站建设管理工作总结网站域名解析ip查询
  • 网站备案期间完全关闭么济南优化哪家好
  • 湖南平台网站建设方案网站seo外包价格
  • 网站开发微博seo推广的方法
  • 第一次做网站没头绪优秀的网络搜索引擎营销案例
  • 网站修改解析怎么做网站设计公司网站制作
  • 做算法题网站seo关键词优化公司哪家好
  • 织梦网站 数据库最近新闻有哪些
  • 抚顺市网站建设写一篇软文推广自己的学校