We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 44aefc1 commit 054360fCopy full SHA for 054360f
1118.一月有多少天/1118-一月有多少天.py
@@ -6,8 +6,7 @@ def numberOfDays(self, Y, M):
6
:rtype: int
7
"""
8
9
- if (Y % 100 != 0 and Y % 4 ==0) or (Y % 100 == 0 and Y % 400 == 0) :
+ if (Y % 100 != 0 and Y % 4 ==0) or Y % 400 == 0:
10
return [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31][M - 1]
11
else:
12
- return [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31][M - 1]
13
-
+ return [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31][M - 1]
0 commit comments