if(month==2)
return year%4==0?(year%100==0?(year%400==0?29:28):29):28;
return (month==4||month==6||month==9||month==11)?30:31;
03-29
2675
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
if(month==2)
return year%4==0?(year%100==0?(year%400==0?29:28):29):28;
return (month==4||month==6||month==9||month==11)?30:31;