isleap
Python calendar.isleap()方法 (Python calendar.isleap() Method)
isleap() method is an inbuilt method of the calendar module in Python. It works on simple text calendars and checks whether the given year is a leap or not. It returns true if the year is leap else returns false.
isleap()方法是Python中日历模块的内置方法。 它适用于简单的文本日历,并检查给定的年份是否是leap年。 如果年份是leap年,则返回true ,否则返回false 。
Module:
模块:
import calendar
Syntax:
句法:
isleap(year)
Parameter(s):
参数: