-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstudy_free.py
More file actions
76 lines (62 loc) · 2.11 KB
/
Copy pathstudy_free.py
File metadata and controls
76 lines (62 loc) · 2.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# -*- coding: utf-8 -*-
# @File : study_free.py
# @Date : 2021-12-12
# @Author : luoyu
from listen_reading.reading_module import *
from listen_reading.listen_module import *
from subscribe.subscribe_module import *
from subscribe.check_image_color import *
from push.push_wechat import *
from push.send_mail import *
from unit.check_date_time import *
from unit.config import *
from unit.database import *
from unit.init_chromedriver import *
from unit.log_module import *
from unit.machine_code import *
from unit.progress_bar import *
from unit.unit import *
from unit.wechat_report import *
import uiautomator2 as u2
import urllib3, logging, requests, datetime, re, os, time, shlex, subprocess, sqlite3, random, logging, sys, colorsys, json, zmail, wmi, base64
from pyDes import *
from functools import reduce
from PIL import Image
from selenium import webdriver
from ctypes import *
from rich.progress import *
from rich import logging
from rich.style import Style
from rich.console import Console
from answer_questions.competition import *
from answer_questions.answer_questions_base import *
from answer_questions.auto_study import *
from answer_questions.challenge_module import ChallengeQuestions
from answer_questions.daily_module import *
from answer_questions.double_battle_module import *
from answer_questions.four_man_battle_module import *
from answer_questions.special_module import *
from answer_questions.weekly_module import *
from study import *
from terminal_layout.extensions.choice import *
from terminal_layout import *
def time_sleep_random(func):
def wrapper(*args, **kwargs):
day: int = datetime.datetime.now().day
print("start project")
if day % 2 != 0:
time.sleep(random.randint(20, 300))
func(*args, **kwargs)
return wrapper
@time_sleep_random
def study():
Main().run_order()
if __name__ == "__main__":
study()
# ChallengeQuestions().entry()
# WechatHealthReport().start()
# Main().run_order()
# print(type(datetime.datetime.now().day))
# FourManAimHigh().entry()
# ChallengeQuestns().entry()
# WechatHealthReport().start()