diff --git a/src/main/python/Sign.py b/src/main/python/Sign.py new file mode 100644 index 0000000..99d55ce --- /dev/null +++ b/src/main/python/Sign.py @@ -0,0 +1,15 @@ +import csv +import hashlib +import json +import os + +with open('users.csv', 'r') as users_file: + lines = csv.DictReader(users_file) + i = 1 + for line in lines: + print("====== 开始读取第 " + str(i) + " 条数据 ======") + i = i+1 + password = line['password'] + username = line['username'] + print("开始打卡 " + username + "的账号, 读取到的密码是:" + password) + md5_password = hashlib.new('md5', str(line['password']).encode()).hexdigest()