增加python脚本

This commit is contained in:
xx572959496 2024-12-04 22:38:15 +08:00
parent 58f853d828
commit a1ddf2add6

15
src/main/python/Sign.py Normal file
View File

@ -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()