1 Star 0 Fork 19

恢恢娱乐 / e23-file-check

forked from e23-cn / e23-file-check 
Create your Gitee Account
Explore and code with more than 6 million developers,Free private repositories !:)
Sign up
Clone or download
test_check.py 601 Bytes
Copy Edit Web IDE Raw Blame History
walkskyer authored 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)

Comment ( 0 )

Sign in for post a comment

Python
1
https://gitee.com/hhyl/e23-file-check.git
git@gitee.com:hhyl/e23-file-check.git
hhyl
e23-file-check
e23-file-check
master

Search