\print-student>Pythonpyinstxtractor.py.\main.exeDeprecationWarning:theimpmoduleisdeprecatedinfavourofimportlib;seethemodule's documentation for alternative usesimportimp[*]Processing.\main.exe[*]Pyinstallerversion:2.1+[*]Pythonversion:309[*]Lengthofpackage:5835756bytes[*]Found59filesinCArchive[*]Beginningex...
Python打开exe文件的实现方法 一、整体流程 二、具体步骤及代码注释 步骤一:导入subprocess模块 importsubprocess 1. 该模块用于创建新的进程或子进程,并与它们进行交互。 步骤二:设置exe文件路径 exe_path="C:/path/to/your/exe_file.exe" 1. 请将C:/path/to/your/exe_file.exe替换为你实际的exe文件路径。
通过subprocess模块,我们可以在Python中执行其他程序,包括exe文件。 下面是一个使用subprocess模块执行exe文件的示例代码: importsubprocess# 执行exe文件subprocess.run(["path/to/exe/file.exe","arg1","arg2"])# 获取exe文件的输出result=subprocess.run(["path/to/exe/file.exe"],capture_output=True,text=True...
exe_file =r"D:/PycharmProjects/gui_project/dist/auto_organize_gui.exe"sys.argv = ['pyinstxtractor', exe_file] pyinstxtractor.main()# 恢复当前目录位置os.chdir("..") [*]ProcessingD:/PycharmProjects/gui_project/dist/auto_organize_gui.exe[*]Pyinstallerversion:2.1+[*]Pythonversion:37[*]L...
代码语言:python 代码运行次数:0 运行 AI代码解释 pip install uncompyle6 uncompyle6 xxx.pyc>xxx.py 如:uncompyle6 .\pycfile_tmp\main.pyc # uncompyle6 version 3.9.0 # Python bytecode version base 3.9.0 (3425) # Decompiled from: Python 3.9.13 (tags/v3.9.13:6de2ca5, May 17 2022,...
pip install uncompyle6 uncompyle6 xxx.pyc>xxx.py 如:uncompyle6 .\pycfile_tmp\main.pyc # uncompyle6 version 3.9.0 # Python bytecode version base 3.9.0 (3425) # Decompiled from: Python 3.9.13 (tags/v3.9.13:6de2ca5, May 17 2022, 16:36:42) [MSC v.1929 64 bit (AMD64)] ...
执行pyi-archive_viewer [filename]即可查看 exe 内部的文件结构: 代码语言:javascript 代码运行次数:0 运行 AI代码解释 pyi-archive_viewer auto_organize.exe 操作命令: 代码语言:javascript 代码运行次数:0 运行 AI代码解释 U:go Up one levelO<name>:open embedded archive nameX<name>:extract nameQ:quit ...
第四步:反编译pyc文件得到python源代码 第五步:欣赏一下反编译的代码 # uncompyle6 version 3.9.0 # Python bytecode version base 3.6 (3379) # Decompiled from: Python 3.6.13 |Anaconda, Inc.| (default, Mar 16 2021, 11:37:27) [MSC v.1916 64 bit (AMD64)] # Embedded file name: autoTi...
zipfile: 用于把程序需要的dll等文件打包zip 默认打包 设置none则不打包 options里: excludes: 用于排除不需要的python模块。 includes: 用于强制包含某些python模块。 packages: 用于自动包含某些python包。 dist_dir: 指定输出目录。 dll_excludes: 用于排除某些不需要的dll文件。
打开命令行窗口后,输入Auto-py-to-exe回车,即弹出一个如下的用户操作界面,若报错,则回到Auto-py-to-exe环境变量配置的步骤。首先在Script Location处,点击Browse选择需要打包的文件,接着,在Onefile一栏根据需要点击One Directory(打包成文件夹)或One file(打包成单个的文件);同理,在Console Window处可以...