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