脚本
kuaileXG
这个作者很懒,什么都没留下…
展开
-
Python 打包exe
pyinstaller -D -w xxx.py 生成带动态库的exe使用xxx.bat 脚本调用:@echo onecho "====begin===="rem cd /d %~dp0cd distcd Copy\dist\CopyCopy.exeecho "====end===="pause原创 2020-04-10 11:18:01 · 71 阅读 · 0 评论 -
Python 批处理传递入参(电脑:Win7 64位),python版本:python3.65
1.批处理中运行python程序 并传入n个参数:https://zhidao.baidu.com/question/518929003200927285.html2.批处理中运行exe程序 并传入n个参数:比如:c:\abc.exe"我是参数1""我是参数2"在程序处理是main(string[]args){//args[0]就等于"我是参数1"...原创 2019-12-16 21:07:42 · 234 阅读 · 0 评论 -
Python 获取路径(电脑:Win7 64位),python版本:python3.65
CurFile_path = os.getcwd() //当前运行第一个脚本路径print(sys.path[0])//当前执.py的路径原创 2019-12-16 19:57:48 · 294 阅读 · 0 评论 -
Python Json(电脑:Win7 64位),python版本:python3.65
JSONedit软件:http://www.downza.cn/soft/278832.html1.使用JSONedit编辑生成json模板2.通过https://mp.csdn.net/postedit/103530851操作修改、读取json中的配置参数。原创 2019-12-16 16:59:36 · 125 阅读 · 0 评论 -
Python读写json文件(作为程序配置参数的文件)
读写json到字典,举例:import jsondef ReadJson(JsonFile): with open(JsonFile,'r') as f1: content = jison.load(f1) return contentdef WriteJson(JsonFile,Content): with open(JsonFile...原创 2019-12-13 17:21:40 · 854 阅读 · 0 评论 -
Python 脚本转 exe(电脑:Win7 64位),python版本:python3.65
背景:win系统python命令 pyinstaller -F xxx.py 生成exe 常常不能使用推荐:生成带各种python附带文件的exe命令: pyinstaller -Dxxx.py原创 2019-12-13 17:02:50 · 198 阅读 · 0 评论