<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	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/"
		xmlns:xhtml="http://www.w3.org/1999/xhtml"
>

<channel>
	<title>仙人の心得 &#187; python</title>
	<atom:link href="http://blog.mktime.com/archive/category/python/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.mktime.com</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Tue, 31 Aug 2010 12:04:45 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://blog.mktime.com/archive/category/python/feed" />
		<item>
		<title>python：リストの内包表現</title>
		<link>http://blog.mktime.com/archive/200.html</link>
		<comments>http://blog.mktime.com/archive/200.html#comments</comments>
		<pubDate>Sun, 14 Jun 2009 15:54:42 +0000</pubDate>
		<dc:creator>nak</dc:creator>
				<category><![CDATA[python]]></category>
		<category><![CDATA[list]]></category>
		<category><![CDATA[内包表現]]></category>

		<guid isPermaLink="false">http://blog.mktime.com/?p=200</guid>
		<description><![CDATA[
リストが持つデータに着目して新たなリストを作り出す書き方

memberList = [{'id': 1 ,'name': 'Jhon' ,'sex': 1 },{'id': 1 ,'name': 'Mary' ,'s [...]]]></description>
			<content:encoded><![CDATA[<p>
リストが持つデータに着目して新たなリストを作り出す書き方<br />
<pre class="brush: python;">
memberList = [{'id': 1 ,'name': 'Jhon' ,'sex': 1 },{'id': 1 ,'name': 'Mary' ,'sex': 2 }]
</pre>
このようなリストから性別=1のリストの&#8217;name&#8217;だけを抜き出したいときはこう書く<br />
<pre class="brush: python;">
newMemberList = [lst['name'] for lst in memberList if lst['sex'] == 1]
</pre></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.mktime.com/archive/200.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://blog.mktime.com/archive/200.html" />
	</item>
	</channel>
</rss>
