Beijing_Daxuexi/main.py

24 lines
642 B
Python
Raw Normal View History

2023-12-18 14:59:37 +08:00
import os
import time
import sys
from study import study
2023-12-18 09:52:55 +00:00
ua = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36'
2023-12-18 14:59:37 +08:00
accounts=[('16634486740', 'Anye20031003')]
print(f'账号数量:{len(accounts)}')
successful = 0
count = 0
for username, password in accounts:
if username=='********':
continue
count += 1
print(f'--User {count}--')
if study(username, password, ua):
successful += 1
failed = count - successful
print('--Summary--')
print(f'成功:{successful},失败:{failed}')
if failed != 0:
raise Exception(f'{failed}个失败!')