📜  python代码示例中的日历程序

📅  最后修改于: 2022-03-11 14:45:42.682000             🧑  作者: Mango

代码示例1
import calendar 

print("Your Calender\n \n ")

y = int(input("Enter the Year : "))
m = int(input("Enter the month : "))
try:
    mycalender = calendar.month(y , m)
    print("\n", mycalender)
except IndexError:
    print("Its out of range")