手机
当前位置:查字典教程网 >脚本专栏 >python >python输出指定月份日历的方法
python输出指定月份日历的方法
摘要:本文实例讲述了python输出指定月份日历的方法。分享给大家供大家参考。具体实现方法如下:#!/usr/bin/pythonimportca...

本文实例讲述了python输出指定月份日历的方法。分享给大家供大家参考。具体实现方法如下:

#!/usr/bin/python import calendar cal = calendar.month(2008, 1) print "Here is the calendar:" print cal;

运行结果如下:

Here is the calendar: January 2008 Mo Tu We Th Fr Sa Su 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31

希望本文所述对大家的Python程序设计有所帮助。

【python输出指定月份日历的方法】相关文章:

Python调用C/C++动态链接库的方法详解

netbeans7安装python插件的方法图解

python中精确输出JSON浮点数的方法

python类定义的讲解

python发腾讯微博代码分享

跨平台python异步回调机制实现和使用方法

Python中的魔法方法深入理解

python处理json数据中的中文

python 输出一个两行字符的变量

python实现定制交互式命令行的方法

精品推荐
分类导航