-
Notifications
You must be signed in to change notification settings - Fork 0
/
timetable.py
50 lines (42 loc) · 1.95 KB
/
timetable.py
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
import info
import join
import schedule
def monday():
schedule.every().monday.at(firstClass).do(joinChem)
schedule.every().monday.at(secondClass).do(joinEnglish)
schedule.every().monday.at(thirdClass).do(joinPhysics)
schedule.every().monday.at(fourthClass).do(joinComputer)
schedule.every().monday.at(fifthClass).do(joinMaths)
def tuesday():
schedule.every().tuesday.at(firstClass).do(joinChem)
schedule.every().tuesday.at(secondClass).do(joinEnglish)
schedule.every().tuesday.at(thirdClass).do(joinPhysics)
schedule.every().tuesday.at(fourthClass).do(joinComputer)
schedule.every().tuesday.at(fifthClass).do(joinMaths)
def wednesday():
schedule.every().wednesday.at(firstClass).do(joinChem)
schedule.every().wednesday.at(secondClass).do(joinEnglish)
schedule.every().wednesday.at(thirdlass).do(joinPhysics)
schedule.every().wednesday.at(fourthClass).do(joinComputer)
schedule.every().wednesday.at(fifthClass).do(joinMaths)
def thursday():
schedule.every().thursday.at(firstClass).do(joinChem)
schedule.every().thursday.at(secondClass).do(joinEnglish)
schedule.every().thursday.at(thirdClass).do(joinPhysics)
schedule.every().thursday.at(fourthClass).do(joinComputer)
schedule.every().thursday.at(fifthClass).do(joinMaths)
def friday():
schedule.every().friday.at(firstClass).do(joinChem)
schedule.every().friday.at(secondClass).do(joinEnglish)
schedule.every().friday.at(thirdClass).do(joinPhysics)
schedule.every().friday.at(fourthClass).do(joinComputer)
schedule.every().friday.at(fifthClass).do(joinMaths)
def saturday():
schedule.every().saturday.at(firstClass).do(joinChem)
schedule.every().saturday.at(secondClass).do(joinEnglish)
schedule.every().saturday.at(thirdClass).do(joinPhysics)
schedule.every().saturday.at(fourthClass).do(joinComputer)
schedule.every().saturday.at(fifthClass).do(joinMaths)
while True:
schedule.run_pending()
time.sleep(60)