From a1ddf2add6980faa2f75e7fa4150b4a1227b615c Mon Sep 17 00:00:00 2001 From: xx572959496 <572959496@qq.com> Date: Wed, 4 Dec 2024 22:38:15 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0python=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/python/Sign.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/main/python/Sign.py 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()