导入时间模块

import time

时间戳

print(time.time())

获取本地时间

print(time.localtime(time.time()))

时间显示格式化

print(time.asctime(time.localtime(time.time())))
print(time.strftime('%Y-%m-%d %H:%M:%S',time.localtime()))

月历

import calendar
print(calendar.month(2019,2))

获取函数的使用帮助

print(help(calendar.month))

最新文章

  1. 通过jquery js 实现幻灯片切换轮播效果
  2. Java生成随机验证码
  3. linux下配置mysql默认编码utf8
  4. 常用的MIME类型
  5. C++ 获取vector容器最后一个元素
  6. DOS中cmd里常见的命令
  7. Flex 加载 wmf,svg
  8. Bootstrap系列 -- 14. 表单控件输入框input
  9. tomcat PermGen space
  10. xampp 安装后无法启动apache 的解决方法
  11. 数位DP入门Ural1057
  12. C# Sending data using GET or POST ZZ
  13. Sea.Js的运行原理(转)
  14. background-size IE8兼容方案
  15. Struts 2 之类型转换器
  16. Mac gitk安装与优化
  17. 使用树莓派 Raspberry Pi 播放豆瓣 FM
  18. java io系列24之 BufferedWriter(字符缓冲输出流)
  19. oracle中计算某月的天数
  20. word 中如何取消格式标记

热门文章

  1. Codeforces Round 56-A. Dice Rolling(思维题)
  2. Java EE学习笔记(九)
  3. (转) cocos 里面scrollView一些方法
  4. 解决Linux下SSH等终端乱码问题
  5. vue-cli3项目中解决动态引入图片img404的问题
  6. JavaScript笔记4-数组
  7. SpringBoot LogBack文件配置
  8. 编写生成32位大写和小写字符的md5的函数
  9. WebClient UI和Tomcat的启动器
  10. 2017-3-7-lint183-wood-cut