Page 661 - 3-3
P. 661
late_class_input('1','1')
# 수업 중임을 의미하는 1 과 현재 교시인 1 을 보냄
elif now.minute%6==3:
#2 교시 전 쉬는 시간일 경우
late_class_input('0','2')
# 수업 중이 아님을 의미하는 0 과 현재 교시인 2 를 보냄
elif now.minute%6==4:
#2 교시 진행중일 경우
late_class_input('1','2')
# 수업 중임을 의미하는 1 과 현재 교시인 2 를 보냄
elif now.minute%6==5:
#3 교시 전 쉬는 시간일 경우
late_class_input('0','3')
# 수업 중이 아님을 의미하는 0 과 현재 교시인 3 을 보냄
elif now.minute%6==0:
#3 교시 진행중일 경우
late_class_input('1','3')
# 수업 중임을 의미하는 1 과 현재 교시인 3 을 보냄
def late_class_input(late,current_class):
# 지각 여부와 현재 교시를 입력하는 메쏘드
with open(lalala,'w') as late_t:
# 지각여부 텍스트 파일 염
late_t.write(late)
# 지각 여부를 입력함
with open("current_class.txt",'w') as current_class_t:
# 현재 교시 텍스트 파일 염
current_class_t.write(current_class)
# 현재 교시를 입력함
def nfc_flag_input(flag):
with open("nfc_flag.txt",'w') as flag_t:
- 661 -