<?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:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>调度器 - 四号程序员</title>
	<atom:link href="https://www.coder4.com/archives/tag/%E8%B0%83%E5%BA%A6%E5%99%A8/feed" rel="self" type="application/rss+xml" />
	<link>https://www.coder4.com</link>
	<description>Keep It Simple and Stupid</description>
	<lastBuildDate>Wed, 28 Oct 2015 09:10:56 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.3</generator>
	<item>
		<title>Python的sched模块和Timer类</title>
		<link>https://www.coder4.com/archives/1589</link>
					<comments>https://www.coder4.com/archives/1589#comments</comments>
		
		<dc:creator><![CDATA[coder4]]></dc:creator>
		<pubDate>Wed, 25 May 2011 15:55:03 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[cron]]></category>
		<category><![CDATA[crontab]]></category>
		<category><![CDATA[sched]]></category>
		<category><![CDATA[Timer]]></category>
		<category><![CDATA[定时执行]]></category>
		<category><![CDATA[调度器]]></category>
		<guid isPermaLink="false">http://www.coder4.com/?p=1589</guid>

					<description><![CDATA[我们经常需要定时的执行某个任务，在Linux下我们有强大的crontab，但是在Python这个粒度（定时执行函数），如何处理呢？ 除了第三方的模块外，标准库为我们提供了sched模块和Timer类。 先说sched模块，准确的说，它是一个调度（延时处理机制），每次想要定时执行某任务都必须写入一个调度。 使用步骤如下： (1)生成调度器： s = sched.scheduler(time.time,time.sleep) 第一个参数是一个可以返回时间戳的函数，第二个参数可以在定时[......] 继续阅读]]></description>
		
					<wfw:commentRss>https://www.coder4.com/archives/1589/feed</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
			</item>
	</channel>
</rss>
