python 时间模块学习
来源:互联网 发布:电视盒子软件破解论坛 编辑:程序博客网 时间:2024/04/29 09:34
import timeprint time.time() #返回纪元开始的秒数print time.ctime() # 正常的打印时间print time.clock() #clock()返回处理器时钟时间,它的返回值一般用于性能测试与基准测试。因此它们反映了程序的实际运行时间。from time import gmtime,strftimeprint strftime("%a, %d %b %Y %H:%M:%S ", gmtime())#Mon, 11 Jul 2016 14:25:11print strftime("%a, %d %b %Y %H:%M:%S ")'''def fucn(): time.sleep(5) print "hello, world"fucn()#sleep函数用于将当前线程交出,要求它等待系统将其再次唤醒,如果写程序只有一个线程,这实际上就会阻塞进程,什么也不做'''
0 0
- Python学习-时间模块
- python 时间模块学习
- Python time时间模块学习
- Python学习(时间模块)
- Python模块学习 ---- time 日期时间处理
- Python模块学习 ---- time 日期时间处理
- Python模块学习 ---- time 日期时间处理
- Python 中 datetime时间模块学习
- python模块之时间模块
- python模块:时间处理模块
- Python的时间模块
- python时间模块处理
- python 时间模块: datetime
- python 时间模块
- Python时间模块
- python 时间模块: datetime
- python 学习笔记 13 -- 常用的时间模块之time
- python 学习笔记 14 -- 常用的时间模块之datetime
- Android自定义控件:动画类----alpha、scale、translate、rotate、set的xml属性及用法
- jsp基础
- Milking Cows
- 11、mysql运算符----第2篇
- TOJ 3988.Password
- python 时间模块学习
- 画图板
- JZOJ4605. 【TJOI2016&HEOI2016】排序
- Android 基础知识总结---四大组件之一Activity(一)
- 矩阵的迹 特征值
- C 实现泛型ArrayList数组
- JMX的Hello World
- System V 进程间通信(IPC)之System V 消息队列
- NYOJ 95 众数 map找value的最值