<?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/%E5%9D%97/feed" rel="self" type="application/rss+xml" />
	<link>https://www.coder4.com</link>
	<description>Keep It Simple and Stupid</description>
	<lastBuildDate>Sun, 16 Oct 2011 15:56:09 +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中将list等分成N块</title>
		<link>https://www.coder4.com/archives/2089</link>
					<comments>https://www.coder4.com/archives/2089#comments</comments>
		
		<dc:creator><![CDATA[coder4]]></dc:creator>
		<pubDate>Mon, 22 Aug 2011 14:12:34 +0000</pubDate>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[分割]]></category>
		<category><![CDATA[块]]></category>
		<guid isPermaLink="false">http://www.coder4.com/?p=2089</guid>

					<description><![CDATA[#arr是被分割的list，n是每个chunk中含n元素。 def chunks(arr, n): return [arr[i:i+n] for i in range(0, len(arr), n)] #或者让一共有m块，自动分（尽可能平均） #split the arr into N chunks def chunks(arr, m): n = int(math.ceil(len(arr) / float(m))) return [arr[i:i +[......] 继续阅读]]></description>
		
					<wfw:commentRss>https://www.coder4.com/archives/2089/feed</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
	</channel>
</rss>
