题解 | #获得月份天数#
获得月份天数
http://www.nowcoder.com/practice/13aeae34f8ed4697960f7cfc80f9f7f6
while 1 : try: a, b = map(int, input().split()) if b in (4,6,9,11): print(30) elif b in (1,3,5,7,8,10,12): print(31) elif a % 4 ==0 and b == 2: print(29) elif b ==2 : print(28) except: break