Hello Mat

 找回密码
 立即注册
查看: 5383|回复: 0

py_compile(将py文件转换为pyc文件)

[复制链接]

84

主题

115

帖子

731

金钱

管理员

Rank: 9Rank: 9Rank: 9

积分
1467
发表于 2019-5-17 23:01:22 | 显示全部楼层 |阅读模式
py_compile(将py文件转换为pyc文件):
加密文件
import py_compile
cmd:python -m py_compile main.py
  1. import py_compile
  2. py_compile.compile(r'getGPUinfo.py')#py文件完整的路径.
复制代码

反编译的话:
pip install uncompyle
uncompyle6 unet.cpython-37.pyc

参考:https://www.cnblogs.com/dengyg200891/p/5074481.html











回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Python|Opencv|MATLAB|Halcom.cn ( 蜀ICP备16027072号 )

GMT+8, 2024-4-26 05:20 , Processed in 0.225727 second(s), 21 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表