Python timer定时器
2016-01-06 20:50
597 查看
from threading import Timer import time timer_interval=10 def delayrun(): print 'running...' t=Timer(timer_interval,delayrun) t.start() while True: time.sleep(1) print 'main running......'
相关文章推荐
- Python 删除文件特定字符的行
- Python进行科学计算
- Python运算符
- Python项目小结
- Python数据类型
- Python学习手册 - 04
- 在Python中使用protocol buffers参考指南
- python 代码片段25
- Python的一些基础知识
- Ipython简介(一)
- 《统计学习方法》-感知机笔记和python源码
- Python 图形处理库PIL批量修改图片大小和格式
- python面向对象
- win10 安装 Python 和 pip 详解
- [转] 用python做自动化测试
- openstack python sdk list tenants get token get servers
- Seaborn使用说明
- Python资料汇总
- Python之pandas数据加载、存储
- Python之pandas数据加载、存储