Skip to content

isLeapYear 可能是笔误,不过应该加上() #2

Open
@nonocoke

Description

@nonocoke

def isLeapYear(year):
# return (not year % 4 and year % 100) or (not year % 400)
return (not (year % 4 and year % 100)) or (not year % 400)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions