This commit is contained in:
2021-05-12 21:19:00 +08:00
commit a3fdb08a52
5 changed files with 63 additions and 0 deletions

7
utils.py Normal file
View File

@@ -0,0 +1,7 @@
def load_users(path):
with open(path, 'r', encoding='utf-8') as f:
users = f.read()
users = users.split('\n')
users = [u.strip() for u in users]
users = [u for u in users if u != '']
return users