【python】:python中time和calendar模块重要函数详解
2016-03-20 22:17
736 查看
<span style="color: rgb(90, 90, 90); font-family: 'microsoft yahei'; font-size: 18px; line-height: 29.7px; white-space: pre-wrap;">详见如下一段代码及输出结果:</span>
import time,calendar; ticks = time.time() print ticks localtime = time.localtime(time.time()) print localtime newtime = time.asctime(localtime) print newtime cal = calendar.month(2015,1) print cal
输出结果:
然后基本的说完了,更加详细的参考如下链接:
http://www.yiibai.com/python/python_date_time.html
相关文章推荐
- Python 从零学起——读《笨办法学Python v1.0》小结 随时更新
- python web框架之django环境搭建
- Python中文分词组件 jieba
- Python的zip函数
- Python学习笔记
- 多进程同步问题,python多进程解读
- 据廖雪峰python3教程----python学习第四天
- python+webdriver+autoit实现百度云盘文件上传
- Mac系统10.11及以上升级numpy、scipy等python包报错解决方案
- python爬虫 前程无忧网页抓取
- python之SQLAlchemy
- Python笔记(4)——Python Web框架
- python 面向对象编程学习
- python笔记---列表
- Python ord
- Python出现TypeError: file() argument 1 must be encoded string without NULL bytes, not str问题解决
- Python安装
- Python 学习笔记(一)
- Python体验(07)-图形界面之菜单
- 我在这里安家了,准备第一天零基础学习python