DaysInMonth(int year, int month) DaysInMonth(2018,7) //结果 31 转载于:https://www.cnblogs.com/shiruina/p/9354817.html