sum_holiyday = 15
mounth_list = list(range(1,13))
day_list = list(range(1,32))
my_holiyday = []
print("휴가일정을 입력 해 주세요 :\n ex) 5월1일 = 5,1")
def s(): # 함수의 정의와 파일 내용을 데이터로 저장
file = open('D:\python_work\Holiday_check','a',encoding='utf8')
try:
a1,a2 = (input().split(','))
print('입력하신 휴가일정은 {}월 {}일 입니다.'.format(a1,a2),file=file)
print('입력하신 휴가일정은 {}월 {}일 입니다.'.format(a1,a2))
except ValueError:
print('형식에 맞춰 재 입력 하십시오 :', end =" ")
s() # ValueError 에러가 났을 경우 함수 재 실행
s() # 중요!! : s()함수를 실행
#파일 내용을 출력_잠시 주석
# with open('D:\\Holiday_check.txt','r',encoding='utf8') as ro:
# for i in ro:
# print(i.strip())