2018-12-28 23:09:46 +08:00
|
|
|
|
# 自定义import
|
|
|
|
|
需要Python3.5.2(或者自行编译xxtea)
|
|
|
|
|
|
|
|
|
|
简单的了解了下import的原理
|
|
|
|
|
|
|
|
|
|
# 测试过程
|
|
|
|
|
- 1.在src中编写一个test.py
|
|
|
|
|
- 2.通过build.py 利用xxtea加密src/test.py 到当前目录的test.irony文件
|
|
|
|
|
- 3.运行main.py 进行测试
|
|
|
|
|
|
|
|
|
|
# 截图
|
|
|
|
|
test.py
|
|
|
|
|
|
|
|
|
|
![test.py](ScreenShot/1.png)
|
|
|
|
|
|
|
|
|
|
test.irony
|
|
|
|
|
|
|
|
|
|
![test.irony](ScreenShot/2.png)
|
|
|
|
|
|
|
|
|
|
main.py
|
|
|
|
|
|
2018-01-28 20:26:39 +08:00
|
|
|
|
![main.py](ScreenShot/3.png)
|