摘要:
我们想再x秒后执行一个任务,可以使用twisted.internet.interfaces.IReactorTime:from twisted.internet import reactordef f(s):print "this will run 3.5 seconds after it was scheduled: %s" % sreactor.callLater(3.5, f, "hello, world")如果想每x秒就重复执行一个任务,可以使用twisted.internet.task.LoopingCall:from twisted.inte 阅读全文
posted @ 2012-06-04 13:52
很多不懂呀。。
阅读(705)
评论(0)
推荐(0)

浙公网安备 33010602011771号