码迷,mamicode.com
首页 >  
搜索关键字:python queue pipe    ( 144597个结果)
Python查看MQ队列深度
分享一段代码,很简单但是也很实用。 1 #!/usr/bin/python 2 #-*- coding:gb18030 -*- 3 ''' 4 Usage: mq.py [Qmgr] 5 *get the queues' curdepth which type is local,...
分类:编程语言   时间:2014-07-16 23:06:47    阅读次数:226
python的任务调度 (转载)
方法1:import sched, timeimport oss = sched.scheduler(time.time,time.sleep)#scheduler的两个参数用法复杂,可以不做任何更改defplaymusic(x):os.system(x)def jobtodo():tmlist =...
分类:编程语言   时间:2014-07-16 23:01:43    阅读次数:235
Python读写csv文件
1. 写csv文件# coding: utf-8import csvcsvfile = file('csv_test.csv', 'wb')writer = csv.writer(csvfile)writer.writerow(['姓名', '年龄', '电话']) #写入单行data = [ .....
分类:编程语言   时间:2014-07-16 22:57:55    阅读次数:201
EBS与FMW集成工作流管理器的检查
工作流管理器的检查点(DB层面):--1:数据库job aq参数设置,建议设置job_queue_processes》=10select p.NAME,p.DESCRIPTION,p.VALUE fromv$parameter pwhere p.name in('job_queue_processe...
分类:其他好文   时间:2014-07-16 22:57:24    阅读次数:206
Python的设计模式学习
1.工厂模式#encoding=utf-8__author__ = 'kevinlu1010@qq.com'class ADD(): def getResult(self,*args): return args[0]+args[1]class SUB(): def getR...
分类:编程语言   时间:2014-07-16 22:56:35    阅读次数:213
Django模板1
上一篇中带参数的URLconf虽然可以做到传参动态显示内容,但是最终现实的内容还是硬编码到Python代码中的1 def hours_ahead(request,phours):2 try:3 phours = int(phours)4 except VauleErr...
分类:其他好文   时间:2014-07-12 08:52:40    阅读次数:154
Python查看MQ队列深度
分享一段代码,很简单但是也很实用。 1 #!/usr/bin/python 2 #-*- coding:gb18030 -*- 3 ''' 4 Usage: mq.py [Qmgr] 5 *get the queues' curdepth which type is local,...
分类:编程语言   时间:2014-07-12 08:40:14    阅读次数:502
select random item with weight 根据权重随机选出
http://eli.thegreenplace.net/2010/01/22/weighted-random-generation-in-python/类似俄罗斯轮盘赌
分类:其他好文   时间:2014-07-12 08:33:57    阅读次数:177
Python查看MQ队列深度
分享一段代码,很简单但是也很实用。 1 #!/usr/bin/python 2 #-*- coding:gb18030 -*- 3 ''' 4 Usage: mq.py [Qmgr] 5 *get the queues' curdepth which type is local,...
分类:编程语言   时间:2014-07-12 08:05:13    阅读次数:404
Python查看MQ队列深度
分享一段代码,很简单但是也很实用。 1 #!/usr/bin/python 2 #-*- coding:gb18030 -*- 3 ''' 4 Usage: mq.py [Qmgr] 5 *get the queues' curdepth which type is local,...
分类:编程语言   时间:2014-07-12 08:03:54    阅读次数:373
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!