Browse Source

달력 업데이트

tobby48 6 years ago
parent
commit
3e86f85c3d

+ 0
- 1
src/kr/co/swh/lecture/algorithm/Lv5-2.py View File

51
     if st_mon > 12:
51
     if st_mon > 12:
52
         st_year+=1
52
         st_year+=1
53
         st_mon=1
53
         st_mon=1
54
-        st_day=1
55
     if st_mon<10:
54
     if st_mon<10:
56
         st_mon = "0"+ str(st_mon)
55
         st_mon = "0"+ str(st_mon)
57
     if st_day<10:
56
     if st_day<10:

+ 3
- 1
src/kr/co/swh/lecture/algorithm/Lv5-4.py View File

49
         print("%2d" % b, end="  ")
49
         print("%2d" % b, end="  ")
50
         a+=1
50
         a+=1
51
 
51
 
52
-calendar_month(2019, 11)
52
+y = input("년월을 입력:")
53
+
54
+calendar_month(int(y[:4]), int(y[4:6]))