22 lines
421 B
Markdown
22 lines
421 B
Markdown
|
# 自定义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
|
|||
|
|
|||
|
![main.py](ScreenShot/3.png)
|