<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:media="http://search.yahoo.com/mrss/"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments on: Python的sched模块和Timer类	</title>
	<atom:link href="https://www.coder4.com/archives/1589/feed" rel="self" type="application/rss+xml" />
	<link>https://www.coder4.com/archives/1589</link>
	<description>Keep It Simple and Stupid</description>
	<lastBuildDate>Wed, 28 Oct 2015 09:10:56 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.3</generator>
	<item>
		<title>
		By: Anonymous		</title>
		<link>https://www.coder4.com/archives/1589#comment-1322</link>

		<dc:creator><![CDATA[Anonymous]]></dc:creator>
		<pubDate>Tue, 27 Oct 2015 18:09:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.coder4.com/?p=1589#comment-1322</guid>

					<description><![CDATA[时隔4年。。。居然在这会搜索到跟我一样，用同样的方法实现循环Timer的。。。。]]></description>
			<content:encoded><![CDATA[<p>时隔4年。。。居然在这会搜索到跟我一样，用同样的方法实现循环Timer的。。。。</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Kyle Sawyer		</title>
		<link>https://www.coder4.com/archives/1589#comment-1233</link>

		<dc:creator><![CDATA[Kyle Sawyer]]></dc:creator>
		<pubDate>Tue, 19 Nov 2013 11:26:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.coder4.com/?p=1589#comment-1233</guid>

					<description><![CDATA[其实sched是可以循环的，比如这样来写：

scheduler = sched.scheduler(time.time, time.sleep)

def event(action_time):
    print &quot;action_time:%s&quot; % (action_time)
    scheduler.enterabs(action_time + 5, 1, event, (action_time + 5,))

inittime = time.time()

scheduler.enterabs(inittime, 1, event, (inittime,))]]></description>
			<content:encoded><![CDATA[<p>其实sched是可以循环的，比如这样来写：</p>
<p>scheduler = sched.scheduler(time.time, time.sleep)</p>
<p>def event(action_time):<br />
    print "action_time:%s" % (action_time)<br />
    scheduler.enterabs(action_time + 5, 1, event, (action_time + 5,))</p>
<p>inittime = time.time()</p>
<p>scheduler.enterabs(inittime, 1, event, (inittime,))</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: fireflyliu		</title>
		<link>https://www.coder4.com/archives/1589#comment-1206</link>

		<dc:creator><![CDATA[fireflyliu]]></dc:creator>
		<pubDate>Fri, 17 May 2013 01:55:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.coder4.com/?p=1589#comment-1206</guid>

					<description><![CDATA[最近刚好需要使用这个模块，事前我居然不知道sched这个内置的模块，看了老兄的文章，醍醐灌顶啊，谢谢了]]></description>
			<content:encoded><![CDATA[<p>最近刚好需要使用这个模块，事前我居然不知道sched这个内置的模块，看了老兄的文章，醍醐灌顶啊，谢谢了</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
