<?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/"
	>

<channel>
	<title>The Townes &#187; 去除空格换行回车</title>
	<atom:link href="https://thetownes.coolpage.biz/?feed=rss2&#038;tag=%E5%8E%BB%E9%99%A4%E7%A9%BA%E6%A0%BC%E6%8D%A2%E8%A1%8C%E5%9B%9E%E8%BD%A6" rel="self" type="application/rss+xml" />
	<link>https://thetownes.coolpage.biz</link>
	<description>本站已转移至：http://www.thetownes.info</description>
	<lastBuildDate>Thu, 01 Aug 2013 11:49:56 +0000</lastBuildDate>
	<language>zh-CN</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.2</generator>
		<item>
		<title>Python去除String中的空格/换行/回车等</title>
		<link>https://thetownes.coolpage.biz/?p=466</link>
		<comments>https://thetownes.coolpage.biz/?p=466#comments</comments>
		<pubDate>Thu, 01 Aug 2013 03:38:48 +0000</pubDate>
		<dc:creator>Will</dc:creator>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[去除空格换行回车]]></category>

		<guid isPermaLink="false">http://thetownes.coolpage.biz/?p=466</guid>
		<description><![CDATA[join:在序列中添加元素 split: 将字符串分解成序列 两者为互逆方法 P &#8230; <a href="https://thetownes.coolpage.biz/?p=466">继续阅读 <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>join:在序列中添加元素<br />
split: 将字符串分解成序列<br />
两者为互逆方法</p>
<p><a href="http://www.2cto.com/kf/web/Python/" target="_blank">Python</a>代码&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;&nbsp; s = &#8220;as, asdas \r\nasda&#8221;&nbsp;<br />
&nbsp;&nbsp;&nbsp; print s.split();&nbsp;<br />
#&nbsp;&nbsp; result: ['as,', 'asdas', 'asda']&nbsp;<br />
&nbsp;<br />
&nbsp;&nbsp;&nbsp; print &#8220;&#8221;.join(s.split());&nbsp;<br />
#&nbsp;&nbsp;&nbsp; result: as,asdasasda&nbsp;<br />
&nbsp;<br />
&nbsp;&nbsp;&nbsp; l = &#8220;&#8221;.join(s.split()).split(&#8216;,&#8217;);&nbsp;<br />
&nbsp;&nbsp;&nbsp; print l;&nbsp;<br />
#&nbsp;&nbsp; result: ['as', 'asdasasda']&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>https://thetownes.coolpage.biz/?feed=rss2&#038;p=466</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
