Python Programming: An Introduction to Computer Science 第 7 章第 15 题:
The days of the year are oftennumberedfrom 1 to through365(or 366). This number can be computed in three steps using int arithmetic: (a) dayNum=31*(month-1)+day (b) if the month is after February, subtract (4*month+23)/10 from dayNum (c) if it’s a leap year and after February 29, add 1
这个方法好巧妙,为什么第 2 步要那样算