问题:
I need to calculate the number of days for a given month in python.我需要在 python 中计算给定月份的天数。 If a user inputs Feb 2011 the program should be able to tell me that Feb 2011 has 28 days.如果用户输入 2011 年 2 月,程序应该能够告诉我 2011 年 2 月有 28 天。 Could any one tell me which library I should use to determine the length of a given month.谁能告诉我应该使用哪个图书馆来确定给定月份的长度。
解决方案:
参考一: https://en.stackoom.com/question/Kii5参考二: https://stackoom.com/question/Kii5