时间

打印时间
import time
# 格式化成2016-03-20 11:45:39形式
print time.strftime("%Y-%m-%d %H:%M:%S", time.localtime())

打印日历
import calendar
cal = calendar.month(2016, 1)
print "以下输出2016年1月份的日历:"
print cal;

posted on 2018-02-13 11:04  悬剑  阅读(69)  评论(0编辑  收藏  举报

导航