1 Star 0 Fork 24

xiaoyangge / e23-file-check

forked from e23-cn / e23-file-check 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
test_check.py 601 Bytes
一键复制 编辑 原始数据 按行查看 历史
walkskyer 提交于 2020-07-26 11:01 . 格式化代码
#!/usr/bin/env python
# -*- coding:utf-8 -*-
from util import sign
import os
if __name__ == '__main__':
origin_file = 'test-file/original.html'
target_file = 'test-file/original-sign.html'
target_file = 'target-file/original.html'
sign_val = sign.sign_file(origin_file)
print sign_val
sign.sign2file(sign_val, origin_file, target_file)
filename = os.path.basename(target_file)
f = open(target_file)
content = f.read()
f.close()
sign_str, sign_ret = sign.retrieve_sign(content)
print sign_str
print sign_ret
print sign.sign_check(target_file)
Python
1
https://gitee.com/xiaoyangge_admin/e23-file-check.git
git@gitee.com:xiaoyangge_admin/e23-file-check.git
xiaoyangge_admin
e23-file-check
e23-file-check
master

搜索帮助