好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

详解Python日历模块的使用

calendar模块的函数都是日历相关的,提供了对日期的一些操作方法,和生成日历的方法.

}

calendar模块的属性

calendar.day_name 、calendar.day_abbr、calendar.month_name、calendar.month_abbr

通过改变这些属性,可以修改显示星期、月份的文字

其他相关模块和函数

在Python中,其他处理日期和时间的模块还有:

datetime模块

pytz模块

dateutil模块

以上就是详解Python日历模块的使用的详细内容,更多请关注Gxl网其它相关文章!

查看更多关于详解Python日历模块的使用的详细内容...

  阅读:52次