<?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>小生这厢有礼了(BioFaceBook Personal Blog) &#187; python</title>
	<atom:link href="https://www.biofacebook.com/?feed=rss2&#038;tag=python-2" rel="self" type="application/rss+xml" />
	<link>https://www.biofacebook.com</link>
	<description>记录生物信息学点滴足迹（NGS,Genome,Meta,Linux)</description>
	<lastBuildDate>Sun, 23 Aug 2020 03:28:53 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.1.41</generator>
	<item>
		<title>Python 字符串操作（string替换、删除、截取、复制、连接、比较、查找、包含、大小写转换、分割等</title>
		<link>https://www.biofacebook.com/?p=656</link>
		<comments>https://www.biofacebook.com/?p=656#comments</comments>
		<pubDate>Fri, 30 Nov 2012 07:50:56 +0000</pubDate>
		<dc:creator><![CDATA[szypanther]]></dc:creator>
				<category><![CDATA[脚本语言]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://www.biofacebook.com/?p=656</guid>
		<description><![CDATA[Python 字符串操作（string替换、删除、截取、复制、连接、比较、查找、包含、大小写转换、分割等） s.strip() .lstrip() .rstrip(',') 去空格及特殊符号 复制字符串 <p>Python</p> 1 #strcpy(sStr1,sStr2) 2 sStr1 = 'strcpy' 3 sStr2 = sStr1 4 sStr1 = 'strcpy2' 5 print sStr2 连接字符串 <p>Python</p> 1 #strcat(sStr1,sStr2) 2 sStr1 = 'strcat' 3 sStr2 = 'append' 4 sStr1 += sStr2 5 print sStr1 查找字符 <p>&#60; 0 未找到</p> <p>Python</p> 1 #strchr(sStr1,sStr2) 2 sStr1 = 'strchr' [...]]]></description>
				<content:encoded><![CDATA[<div><a name="cb_post_title_url" href="http://www.cnblogs.com/huangcong/archive/2011/08/29/2158268.html"></a>Python 字符串操作（string替换、删除、截取、复制、连接、比较、查找、包含、大小写转换、分割等）</div>
<pre>s.strip() .lstrip() .rstrip(',') 去空格及特殊符号</pre>
<h2>复制字符串</h2>
<p>Python</p>
<div>
<div>
<table>
<tbody>
<tr>
<td><code>1</code></td>
<td><code>#strcpy(sStr1,sStr2)</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table>
<tbody>
<tr>
<td><code>2</code></td>
<td><code>sStr1</code> <code>=</code> <code>'strcpy'</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table>
<tbody>
<tr>
<td><code>3</code></td>
<td><code>sStr2</code> <code>=</code> <code>sStr1</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table>
<tbody>
<tr>
<td><code>4</code></td>
<td><code>sStr1</code> <code>=</code> <code>'strcpy2'</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table>
<tbody>
<tr>
<td><code>5</code></td>
<td><code>print</code> <code>sStr2</code></td>
</tr>
</tbody>
</table>
</div>
</div>
<h2>连接字符串</h2>
<p>Python</p>
<div>
<div>
<table>
<tbody>
<tr>
<td><code>1</code></td>
<td><code>#strcat(sStr1,sStr2)</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table>
<tbody>
<tr>
<td><code>2</code></td>
<td><code>sStr1</code> <code>=</code> <code>'strcat'</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table>
<tbody>
<tr>
<td><code>3</code></td>
<td><code>sStr2</code> <code>=</code> <code>'append'</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table>
<tbody>
<tr>
<td><code>4</code></td>
<td><code>sStr1</code> <code>+</code><code>=</code> <code>sStr2</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table>
<tbody>
<tr>
<td><code>5</code></td>
<td><code>print</code> <code>sStr1</code></td>
</tr>
</tbody>
</table>
</div>
</div>
<h2>查找字符</h2>
<p>&lt; 0 未找到</p>
<p>Python</p>
<div>
<div>
<table>
<tbody>
<tr>
<td><code>1</code></td>
<td><code>#strchr(sStr1,sStr2)</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table>
<tbody>
<tr>
<td><code>2</code></td>
<td><code>sStr1</code> <code>=</code> <code>'strchr'</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table>
<tbody>
<tr>
<td><code>3</code></td>
<td><code>sStr2</code> <code>=</code> <code>'s'</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table>
<tbody>
<tr>
<td><code>4</code></td>
<td><code>nPos</code> <code>=</code> <code>sStr1.index(sStr2)</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table>
<tbody>
<tr>
<td><code>5</code></td>
<td><code>print</code> <code>nPos</code></td>
</tr>
</tbody>
</table>
</div>
</div>
<h2>比较字符串</h2>
<p>Python</p>
<div>
<div>
<table>
<tbody>
<tr>
<td><code>1</code></td>
<td><code>#strcmp(sStr1,sStr2)</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table>
<tbody>
<tr>
<td><code>2</code></td>
<td><code>sStr1</code> <code>=</code> <code>'strchr'</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table>
<tbody>
<tr>
<td><code>3</code></td>
<td><code>sStr2</code> <code>=</code> <code>'strch'</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table>
<tbody>
<tr>
<td><code>4</code></td>
<td><code>print</code> <code>cmp</code><code>(sStr1,sStr2)</code></td>
</tr>
</tbody>
</table>
</div>
</div>
<h2>扫描字符串是否包含指定的字符</h2>
<p>Python</p>
<div>
<div>
<table>
<tbody>
<tr>
<td><code>1</code></td>
<td><code>#strspn(sStr1,sStr2)</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table>
<tbody>
<tr>
<td><code>2</code></td>
<td><code>sStr1</code> <code>=</code> <code>'12345678'</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table>
<tbody>
<tr>
<td><code>3</code></td>
<td><code>sStr2</code> <code>=</code> <code>'456'</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table>
<tbody>
<tr>
<td><code>4</code></td>
<td><code>#sStr1 and chars both in sStr1 and sStr2</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table>
<tbody>
<tr>
<td><code>5</code></td>
<td><code>print</code> <code>len</code><code>(sStr1</code> <code>and</code> <code>sStr2)</code></td>
</tr>
</tbody>
</table>
</div>
</div>
<h2>字符串长度</h2>
<p>Python</p>
<div>
<div>
<table>
<tbody>
<tr>
<td><code>1</code></td>
<td><code>#strlen(sStr1)</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table>
<tbody>
<tr>
<td><code>2</code></td>
<td><code>sStr1</code> <code>=</code> <code>'strlen'</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table>
<tbody>
<tr>
<td><code>3</code></td>
<td><code>print</code> <code>len</code><code>(sStr1)</code></td>
</tr>
</tbody>
</table>
</div>
</div>
<h2>将字符串中的大小写转换</h2>
<p>Python</p>
<div>
<div>
<table>
<tbody>
<tr>
<td><code>1</code></td>
<td><code>#strlwr(sStr1)</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table>
<tbody>
<tr>
<td><code>2</code></td>
<td><code>sStr1</code> <code>=</code> <code>'JCstrlwr'</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table>
<tbody>
<tr>
<td><code>3</code></td>
<td><code>sStr1</code> <code>=</code> <code>sStr1.upper()</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table>
<tbody>
<tr>
<td><code>4</code></td>
<td><code>#sStr1 = sStr1.lower()</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table>
<tbody>
<tr>
<td><code>5</code></td>
<td><code>print</code> <code>sStr1</code></td>
</tr>
</tbody>
</table>
</div>
</div>
<h2>追加指定长度的字符串</h2>
<p>Python</p>
<div>
<div>
<table>
<tbody>
<tr>
<td><code>1</code></td>
<td><code>#strncat(sStr1,sStr2,n)</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table>
<tbody>
<tr>
<td><code>2</code></td>
<td><code>sStr1</code> <code>=</code> <code>'12345'</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table>
<tbody>
<tr>
<td><code>3</code></td>
<td><code>sStr2</code> <code>=</code> <code>'abcdef'</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table>
<tbody>
<tr>
<td><code>4</code></td>
<td><code>n</code> <code>=</code> <code>3</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table>
<tbody>
<tr>
<td><code>5</code></td>
<td><code>sStr1</code> <code>+</code><code>=</code> <code>sStr2[</code><code>0</code><code>:n]</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table>
<tbody>
<tr>
<td><code>6</code></td>
<td><code>print</code> <code>sStr1</code></td>
</tr>
</tbody>
</table>
</div>
</div>
<h2>字符串指定长度比较</h2>
<p>Python</p>
<div>
<div>
<table>
<tbody>
<tr>
<td><code>1</code></td>
<td><code>#strncmp(sStr1,sStr2,n)</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table>
<tbody>
<tr>
<td><code>2</code></td>
<td><code>sStr1</code> <code>=</code> <code>'12345'</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table>
<tbody>
<tr>
<td><code>3</code></td>
<td><code>sStr2</code> <code>=</code> <code>'123bc'</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table>
<tbody>
<tr>
<td><code>4</code></td>
<td><code>n</code> <code>=</code> <code>3</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table>
<tbody>
<tr>
<td><code>5</code></td>
<td><code>print</code> <code>cmp</code><code>(sStr1[</code><code>0</code><code>:n],sStr2[</code><code>0</code><code>:n])</code></td>
</tr>
</tbody>
</table>
</div>
</div>
<h2>复制指定长度的字符</h2>
<p>Python</p>
<div>
<div>
<table>
<tbody>
<tr>
<td><code>1</code></td>
<td><code>#strncpy(sStr1,sStr2,n)</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table>
<tbody>
<tr>
<td><code>2</code></td>
<td><code>sStr1</code> <code>=</code> <code>''</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table>
<tbody>
<tr>
<td><code>3</code></td>
<td><code>sStr2</code> <code>=</code> <code>'12345'</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table>
<tbody>
<tr>
<td><code>4</code></td>
<td><code>n</code> <code>=</code> <code>3</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table>
<tbody>
<tr>
<td><code>5</code></td>
<td><code>sStr1</code> <code>=</code> <code>sStr2[</code><code>0</code><code>:n]</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table>
<tbody>
<tr>
<td><code>6</code></td>
<td><code>print</code> <code>sStr1</code></td>
</tr>
</tbody>
</table>
</div>
</div>
<h2>将字符串前n个字符替换为指定的字符</h2>
<p>Python</p>
<div>
<div>
<table>
<tbody>
<tr>
<td><code>1</code></td>
<td><code>#strnset(sStr1,ch,n)</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table>
<tbody>
<tr>
<td><code>2</code></td>
<td><code>sStr1</code> <code>=</code> <code>'12345'</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table>
<tbody>
<tr>
<td><code>3</code></td>
<td><code>ch</code> <code>=</code> <code>'r'</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table>
<tbody>
<tr>
<td><code>4</code></td>
<td><code>n</code> <code>=</code> <code>3</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table>
<tbody>
<tr>
<td><code>5</code></td>
<td><code>sStr1</code> <code>=</code> <code>n</code> <code>*</code> <code>ch</code> <code>+</code> <code>sStr1[</code><code>3</code><code>:]</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table>
<tbody>
<tr>
<td><code>6</code></td>
<td><code>print</code> <code>sStr1</code></td>
</tr>
</tbody>
</table>
</div>
</div>
<h2>扫描字符串</h2>
<p>Python</p>
<div>
<div>
<table>
<tbody>
<tr>
<td><code>1</code></td>
<td><code>#strpbrk(sStr1,sStr2)</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table>
<tbody>
<tr>
<td><code>2</code></td>
<td><code>sStr1</code> <code>=</code> <code>'cekjgdklab'</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table>
<tbody>
<tr>
<td><code>3</code></td>
<td><code>sStr2</code> <code>=</code> <code>'gka'</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table>
<tbody>
<tr>
<td><code>4</code></td>
<td><code>nPos</code> <code>=</code> <code>-</code><code>1</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table>
<tbody>
<tr>
<td><code>5</code></td>
<td><code>for</code> <code>c</code> <code>in</code> <code>sStr1:</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table>
<tbody>
<tr>
<td><code>6</code></td>
<td><code> <wbr> <wbr> <wbr> <wbr></wbr></wbr></wbr></wbr></code><code>if</code> <code>c</code> <code>in</code> <code>sStr2:</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table>
<tbody>
<tr>
<td><code>7</code></td>
<td><code> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></code><code>nPos</code> <code>=</code> <code>sStr1.index(c)</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table>
<tbody>
<tr>
<td><code>8</code></td>
<td><code> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></code><code>break</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table>
<tbody>
<tr>
<td><code>9</code></td>
<td><code>print</code> <code>nPos</code></td>
</tr>
</tbody>
</table>
</div>
</div>
<h2>翻转字符串</h2>
<p>Python</p>
<div>
<div>
<table>
<tbody>
<tr>
<td><code>1</code></td>
<td><code>#strrev(sStr1)</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table>
<tbody>
<tr>
<td><code>2</code></td>
<td><code>sStr1</code> <code>=</code> <code>'abcdefg'</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table>
<tbody>
<tr>
<td><code>3</code></td>
<td><code>sStr1</code> <code>=</code> <code>sStr1[::</code><code>-</code><code>1</code><code>]</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table>
<tbody>
<tr>
<td><code>4</code></td>
<td><code>print</code> <code>sStr1</code></td>
</tr>
</tbody>
</table>
</div>
</div>
<h2>查找字符串</h2>
<p>Python</p>
<div>
<div>
<table>
<tbody>
<tr>
<td><code>1</code></td>
<td><code>#strstr(sStr1,sStr2)</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table>
<tbody>
<tr>
<td><code>2</code></td>
<td><code>sStr1</code> <code>=</code> <code>'abcdefg'</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table>
<tbody>
<tr>
<td><code>3</code></td>
<td><code>sStr2</code> <code>=</code> <code>'cde'</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table>
<tbody>
<tr>
<td><code>4</code></td>
<td><code>print</code> <code>sStr1.find(sStr2)</code></td>
</tr>
</tbody>
</table>
</div>
</div>
<h2>分割字符串</h2>
<p>Python</p>
<div>
<div>
<table>
<tbody>
<tr>
<td><code>1</code></td>
<td><code>#strtok(sStr1,sStr2)</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table>
<tbody>
<tr>
<td><code>2</code></td>
<td><code>sStr1</code> <code>=</code> <code>'ab,cde,fgh,ijk'</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table>
<tbody>
<tr>
<td><code>3</code></td>
<td><code>sStr2</code> <code>=</code> <code>','</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table>
<tbody>
<tr>
<td><code>4</code></td>
<td><code>sStr1</code> <code>=</code> <code>sStr1[sStr1.find(sStr2)</code> <code>+</code> <code>1</code><code>:]</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table>
<tbody>
<tr>
<td><code>5</code></td>
<td><code>print</code> <code>sStr1</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table>
<tbody>
<tr>
<td><code>6</code></td>
<td><code>或者</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table>
<tbody>
<tr>
<td><code>7</code></td>
<td><code>s</code> <code>=</code> <code>'ab,cde,fgh,ijk'</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table>
<tbody>
<tr>
<td><code>8</code></td>
<td><code>print</code><code>(s.split(</code><code>','</code><code>))</code></td>
</tr>
</tbody>
</table>
</div>
</div>
<h2>连接字符串</h2>
<p>Python</p>
<div>
<div>
<table>
<tbody>
<tr>
<td><code>1</code></td>
<td><code>delimiter</code> <code>=</code> <code>','</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table>
<tbody>
<tr>
<td><code>2</code></td>
<td><code>mylist</code> <code>=</code> <code>[</code><code>'Brazil'</code><code>,</code> <code>'Russia'</code><code>,</code> <code>'India'</code><code>,</code> <code>'China'</code><code>]</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table>
<tbody>
<tr>
<td><code>3</code></td>
<td><code>print</code> <code>delimiter.join(mylist)</code></td>
</tr>
</tbody>
</table>
</div>
</div>
<h2>PHP 中 addslashes 的实现</h2>
<p>Python</p>
<div>
<div>
<table>
<tbody>
<tr>
<td><code>1</code></td>
<td><code>def</code> <code>addslashes(s):</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table>
<tbody>
<tr>
<td><code>2</code></td>
<td><code> <wbr> <wbr> <wbr> <wbr></wbr></wbr></wbr></wbr></code><code>d</code> <code>=</code> <code>{</code><code>'"'</code><code>:</code><code>'\"'</code><code>, "</code><code>'":"\\'</code><code>", "</code><code>\</code><code>0</code><code>":"</code><code>\\\</code><code>0</code><code>", "</code><code>\\</code><code>":"</code><code>\\\"}</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table>
<tbody>
<tr>
<td><code>3</code></td>
<td><code> <wbr> <wbr> <wbr> <wbr></wbr></wbr></wbr></wbr></code><code>return</code> <code>''.join(d.get(c, c)</code> <code>for</code> <code>c</code> <code>in</code> <code>s)</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table>
<tbody>
<tr>
<td><code>4</code></td>
<td> <wbr></wbr></td>
</tr>
</tbody>
</table>
</div>
<div>
<table>
<tbody>
<tr>
<td><code>5</code></td>
<td><code>s</code> <code>=</code> <code>"John 'Johny' Doe (a.k.a. "Super Joe")\\\0"</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table>
<tbody>
<tr>
<td><code>6</code></td>
<td><code>print</code> <code>s</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table>
<tbody>
<tr>
<td><code>7</code></td>
<td><code>print</code> <code>addslashes(s)</code></td>
</tr>
</tbody>
</table>
</div>
</div>
<h2>只显示字母与数字</h2>
<p>Python</p>
<div>
<table>
<tbody>
<tr>
<td><code>1</code></td>
<td><code>def</code> <code>OnlyCharNum(s,oth</code><code>=</code><code>''):</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table>
<tbody>
<tr>
<td><code>2</code></td>
<td><code> <wbr> <wbr> <wbr> <wbr></wbr></wbr></wbr></wbr></code><code>s2</code> <code>=</code> <code>s.lower();</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table>
<tbody>
<tr>
<td><code>3</code></td>
<td><code> <wbr> <wbr> <wbr> <wbr></wbr></wbr></wbr></wbr></code><code>fomart</code> <code>=</code> <code>'abcdefghijklmnopqrstuvwx<wbr>yz0123456789'</wbr></code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table>
<tbody>
<tr>
<td><code>4</code></td>
<td><code> <wbr> <wbr> <wbr> <wbr></wbr></wbr></wbr></wbr></code><code>for</code> <code>c</code> <code>in</code> <code>s2:</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table>
<tbody>
<tr>
<td><code>5</code></td>
<td><code> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></code><code>if</code> <code>not</code> <code>c</code> <code>in</code> <code>fomart:</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table>
<tbody>
<tr>
<td><code>6</code></td>
<td><code> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></code><code>s</code> <code>=</code> <code>s.replace(c,'');</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table>
<tbody>
<tr>
<td><code>7</code></td>
<td><code> <wbr> <wbr> <wbr> <wbr></wbr></wbr></wbr></wbr></code><code>return</code> <code>s;</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table>
<tbody>
<tr>
<td><code>8</code></td>
<td> <wbr></wbr></td>
</tr>
</tbody>
</table>
</div>
<table>
<tbody>
<tr>
<td><code>9</code></td>
<td><code>print</code><code>(OnlyStr(</code><code>"a000 aa-b"</code><code>))</code></td>
</tr>
</tbody>
</table>
]]></content:encoded>
			<wfw:commentRss>https://www.biofacebook.com/?feed=rss2&#038;p=656</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Python 自建标准差函数</title>
		<link>https://www.biofacebook.com/?p=499</link>
		<comments>https://www.biofacebook.com/?p=499#comments</comments>
		<pubDate>Wed, 22 Aug 2012 01:42:22 +0000</pubDate>
		<dc:creator><![CDATA[szypanther]]></dc:creator>
				<category><![CDATA[脚本语言]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://www.biofacebook.com/?p=499</guid>
		<description><![CDATA[<p>def stdDeviation(a): l=len(a) m=sum(a)/l d=0 for i in a:</p> <p>d+=(i-m)**2 return (d*(1/l))**0.5</p> <p>a=[5,6,8,9] print(stdDeviation(a)) ======== 1.5811388300841898</p> ]]></description>
				<content:encoded><![CDATA[<p>def stdDeviation(a):<br />
l=len(a)<br />
m=sum(a)/l<br />
d=0<br />
for i in a:</p>
<p>d+=(i-m)**2<br />
return (d*(1/l))**0.5</p>
<p>a=[5,6,8,9]<br />
print(stdDeviation(a))<br />
========<br />
1.5811388300841898</p>
]]></content:encoded>
			<wfw:commentRss>https://www.biofacebook.com/?feed=rss2&#038;p=499</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[python] 关于python中的string.atoi()的问题</title>
		<link>https://www.biofacebook.com/?p=438</link>
		<comments>https://www.biofacebook.com/?p=438#comments</comments>
		<pubDate>Wed, 01 Aug 2012 08:32:20 +0000</pubDate>
		<dc:creator><![CDATA[szypanther]]></dc:creator>
				<category><![CDATA[脚本语言]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://www.biofacebook.com/?p=438</guid>
		<description><![CDATA[ #!/usr/bin/python #filename:string.py</p> <p>import string</p> <p>print string.atoi(&#8217;13&#8217;,8) #这里转换8进制的数 print string.atoi(&#8217;13&#8217;,16) #这里转换成16进制的数</p> <p>运行后的结果： 11 19 </p> <p>&#62;&#62;&#62; import string &#62;&#62;&#62; string.atoi(&#8217;13&#8217;,8) 11 &#62;&#62;&#62; string.atoi(&#8217;13&#8217;,10) 13 &#62;&#62;&#62; string.atoi(&#8217;13&#8217;) 13 &#62;&#62;&#62;</p> <p> ]]></description>
				<content:encoded><![CDATA[<table cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td id="postmessage_103859"><span class="Apple-style-span" style="font-size: 12px; line-height: 18px;">#!/usr/bin/python<br />
#filename:string.py</p>
<p>import string</p>
<p>print  string.atoi(&#8217;13&#8217;,8)      #这里转换8进制的数<br />
print string.atoi(&#8217;13&#8217;,16)     #这里转换成16进制的数</p>
<p>运行后的结果：<br />
11<br />
19    </span></p>
<p>&gt;&gt;&gt; import string<br />
&gt;&gt;&gt; string.atoi(&#8217;13&#8217;,8)<br />
11<br />
&gt;&gt;&gt; string.atoi(&#8217;13&#8217;,10)<br />
13<br />
&gt;&gt;&gt; string.atoi(&#8217;13&#8217;)<br />
13<br />
&gt;&gt;&gt;</p>
<p><span class="Apple-style-span" style="font-size: 12px; line-height: 18px;">   </span></td>
</tr>
</tbody>
</table>
]]></content:encoded>
			<wfw:commentRss>https://www.biofacebook.com/?feed=rss2&#038;p=438</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>python 正则表达 前向界定与后向界定</title>
		<link>https://www.biofacebook.com/?p=410</link>
		<comments>https://www.biofacebook.com/?p=410#comments</comments>
		<pubDate>Thu, 19 Jul 2012 08:11:12 +0000</pubDate>
		<dc:creator><![CDATA[szypanther]]></dc:creator>
				<category><![CDATA[脚本语言]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://www.biofacebook.com/?p=410</guid>
		<description><![CDATA[<p>&#62;&#62;&#62; a &#8216;[acyl-carrier-protein] S-malonyltransferase [EC:2.3.1.39]&#8217; &#62;&#62;&#62; b = re.findall(r'(?&#60;=\[EC:).+?(?=\])&#8217;,a) &#62;&#62;&#62; b [&#8216;2.3.1.39&#8242;] &#62;&#62;&#62; b = re.findall(r'(?&#60;=\[).+?(?=\])&#8217;,a) &#62;&#62;&#62; b [&#8216;acyl-carrier-protein&#8217;, &#8216;EC:2.3.1.39&#8242;]</p> <p> 前向界定与后向界定</p> <p>有时候需要匹配一个跟在特定内容后面的或者在特定内容前面的字符串，Python提供一个简便的前向界定和后向界定功能，或者叫前导指定和跟从指定功能。它们是：</p> <p>‘(?&#60;=…)’ 前向界定</p> <p>括号中’…’代表你希望匹配的字符串的前面应该出现的字符串。</p> <p>‘(?=…)’ 后向界定</p> <p>括号中的’…’代表你希望匹配的字符串后面应该出现的字符串。</p> <p>例： 你希望找出c语言的注释中的内容，它们是包含在’/*’和’*/’之间，不过你并不希望匹配的结果把’/*’和’*/’也包括进来，那么你可以这样用：</p> <p>&#62;&#62;&#62; s=r’/* comment 1 */ code /* comment 2 */’</p> <p>&#62;&#62;&#62; re.findall( r’(?&#60;=//*).+?(?=/*/)’ , s )</p> <p>[&#8216; comment 1 &#8216;, &#8216; comment 2 &#8216;]</p> [...]]]></description>
				<content:encoded><![CDATA[<p>&gt;&gt;&gt; a<br />
&#8216;[acyl-carrier-protein] S-malonyltransferase [EC:2.3.1.39]&#8217;<br />
&gt;&gt;&gt; b = re.findall(r'(?&lt;=\[EC:).+?(?=\])&#8217;,a)<br />
&gt;&gt;&gt; b<br />
[&#8216;2.3.1.39&#8242;]<br />
&gt;&gt;&gt; b = re.findall(r'(?&lt;=\[).+?(?=\])&#8217;,a)<br />
&gt;&gt;&gt; b<br />
[&#8216;acyl-carrier-protein&#8217;, &#8216;EC:2.3.1.39&#8242;]</p>
<p><strong>   </strong><strong>前向界定与后向界定</strong></p>
<p>有时候需要匹配一个跟在特定内容后面的或者在特定内容前面的字符串，Python提供一个简便的前向界定和后向界定功能，或者叫前导指定和跟从指定功能。它们是：</p>
<p><strong>‘(?&lt;=…)’ </strong><strong>前向界定</strong></p>
<p>括号中’…’代表你希望匹配的字符串的前面应该出现的字符串。</p>
<p><strong>‘(?=…)’  </strong><strong>后向界定</strong></p>
<p>括号中的’…’代表你希望匹配的字符串后面应该出现的字符串。</p>
<p>例： 你希望找出c语言的注释中的内容，它们是包含在’/*’和’*/’之间，不过你并不希望匹配的结果把’/*’和’*/’也包括进来，那么你可以这样用：</p>
<p>&gt;&gt;&gt; s=r’/* comment 1 */  code  /* comment 2 */’</p>
<p>&gt;&gt;&gt; re.findall( r’(?&lt;=//*).+?(?=/*/)’ , s )</p>
<p>[&#8216; comment 1 &#8216;, &#8216; comment 2 &#8216;]</p>
<p>注意这里我们仍然使用了最小匹配，以避免把整个字符串给匹配进去了。</p>
<p>要注意的是，前向界定括号中的表达式必须是常值，也即你不可以在前向界定的括号里写正则式。比如你如果在下面的字符串中想找到被字母夹在中间的数字，你不可以用前向界定：</p>
<p>例：</p>
<p>&gt;&gt;&gt; s = ‘aaa111aaa , bbb222 , 333ccc ‘</p>
<p>&gt;&gt;&gt; re.findall( r’(?&lt;=[a-z]+)/d+(?=[a-z]+)&#8217; , s )          # 错误的用法</p>
<p>它会给出一个错误信息：</p>
<p>error: look-behind requires fixed-width pattern</p>
<p>&nbsp;</p>
<p>不过如果你只要找出后面接着有字母的数字，你可以在后向界定写正则式：</p>
<p>&gt;&gt;&gt; re.findall( r’/d+(?=[a-z]+)’, s )</p>
<p>[&#8216;111&#8242;, &#8216;333&#8217;]</p>
<p>如果你一定要匹配包夹在字母中间的数字，你可以使用组（group）的方式</p>
<p>&gt;&gt;&gt; re.findall (r'[a-z]+(/d+)[a-z]+&#8217; , s )</p>
<p>[&#8216;111&#8242;]</p>
<p>组的使用将在后面详细讲解。</p>
<p>&nbsp;</p>
<p>除了前向界定前向界定和后向界定外，还有前向非界定和后向非界定，它的写法为：</p>
<p><code><strong>‘(?&lt;!...)’</strong></code><code><strong>前向非界定</strong></code></p>
<p><code>只有当你希望的字符串前面不是’…’的内容时才匹配</code></p>
<p><code><strong>‘(?!...)’</strong></code><code><strong>后向非界定</strong></code></p>
<p>只有当你希望的字符串后面不跟着’…’内容时才匹配。</p>
<p>接上例，希望匹配后面不跟着字母的数字</p>
<p>&gt;&gt;&gt; re.findall( r’/d+(?!/w+)’ , s )</p>
<p>[&#8216;222&#8242;]</p>
<p>注意这里我们使用了/w而不是像上面那样用[a-z]，因为如果这样写的话，结果会是：</p>
<p>&gt;&gt;&gt; re.findall( r’/d+(?![a-z]+)’ , s )</p>
<p>[&#8217;11&#8217;, &#8216;222&#8217;, &#8217;33&#8217;]</p>
<p>这和我们期望的似乎有点不一样。它的原因，是因为’111’和’222’中的前两个数字也是满足这个要求的。因此可看出，正则式的使用还是要相当小心的，因为我开始就是这样写的，看到结果后才明白过来。不过Python试验起来很方便，这也是脚本语言的一大优点，可以一步一步的试验，快速得到结果，而不用经过烦琐的编译、链接过程。也因此学习Python就要多试，跌跌撞撞的走过来，虽然曲折，却也很有乐趣。</p>
]]></content:encoded>
			<wfw:commentRss>https://www.biofacebook.com/?feed=rss2&#038;p=410</wfw:commentRss>
		<slash:comments>54</slash:comments>
		</item>
		<item>
		<title>python dic problem</title>
		<link>https://www.biofacebook.com/?p=397</link>
		<comments>https://www.biofacebook.com/?p=397#comments</comments>
		<pubDate>Thu, 12 Jul 2012 09:01:28 +0000</pubDate>
		<dc:creator><![CDATA[szypanther]]></dc:creator>
				<category><![CDATA[My project]]></category>
		<category><![CDATA[脚本语言]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://www.biofacebook.com/?p=397</guid>
		<description><![CDATA[<p>dic_cog_annot[h2[1]]={&#8216;orthologous_group':h[3]} dic_cog_annot[h2[1]][&#8216;protein_annot&#8217;]=h[4] 以上是增加个protein_annot键值，</p> <p>如果是以下,将会被替换，只一个键值！</p> <p>dic_cog_annot[h2[1]]={&#8216;orthologous_group':h[3]} dic_cog_annot[h2[1]]={&#8216;protein_annot':h[4]}</p> <p>&#160;</p> <p>dic[name]=&#8221;NA&#8221;</p> <p>dic[name] = {&#8216;nr_annot':&#8221;NA&#8221;} dic[name][&#8216;go_num&#8217;]=&#8221;NA&#8221; dic[name][&#8216;go_info&#8217;] = &#8220;NA&#8221; dic[name][&#8216;kegg_hit&#8217;] = &#8220;NA&#8221; dic[name][&#8216;kegg_annot&#8217;]=&#8221;NA&#8221; dic[name][&#8216;swiss_annot&#8217;]=&#8221;NA&#8221; dic[name][&#8216;cog_hit&#8217;] =&#8221;NA&#8221; dic[name][&#8216;orthologous_group&#8217;]=&#8221;NA&#8221; dic[name][&#8216;protein_annot&#8217;]=&#8221;NA&#8221;</p> <p>&#160;</p> ]]></description>
				<content:encoded><![CDATA[<p>dic_cog_annot[h2[1]]={&#8216;orthologous_group':h[3]}<br />
dic_cog_annot[h2[1]][&#8216;protein_annot&#8217;]=h[4]<br />
以上是增加个protein_annot键值，</p>
<p>如果是以下,将会被替换，只一个键值！</p>
<p>dic_cog_annot[h2[1]]={&#8216;orthologous_group':h[3]}<br />
dic_cog_annot[h2[1]]={&#8216;protein_annot':h[4]}</p>
<p>&nbsp;</p>
<p>dic[name]=&#8221;NA&#8221;</p>
<p>dic[name] = {&#8216;nr_annot':&#8221;NA&#8221;}<br />
dic[name][&#8216;go_num&#8217;]=&#8221;NA&#8221;<br />
dic[name][&#8216;go_info&#8217;] = &#8220;NA&#8221;<br />
dic[name][&#8216;kegg_hit&#8217;] = &#8220;NA&#8221;<br />
dic[name][&#8216;kegg_annot&#8217;]=&#8221;NA&#8221;<br />
dic[name][&#8216;swiss_annot&#8217;]=&#8221;NA&#8221;<br />
dic[name][&#8216;cog_hit&#8217;] =&#8221;NA&#8221;<br />
dic[name][&#8216;orthologous_group&#8217;]=&#8221;NA&#8221;<br />
dic[name][&#8216;protein_annot&#8217;]=&#8221;NA&#8221;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>https://www.biofacebook.com/?feed=rss2&#038;p=397</wfw:commentRss>
		<slash:comments>44</slash:comments>
		</item>
		<item>
		<title>python 键值排序输出</title>
		<link>https://www.biofacebook.com/?p=389</link>
		<comments>https://www.biofacebook.com/?p=389#comments</comments>
		<pubDate>Tue, 10 Jul 2012 03:43:05 +0000</pubDate>
		<dc:creator><![CDATA[szypanther]]></dc:creator>
				<category><![CDATA[脚本语言]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://www.biofacebook.com/?p=389</guid>
		<description><![CDATA[<p>method1:</p> <p>dic = {}</p> <p>keys= dic.keys()</p> <p>keys.sort()</p> <p>for key in keys:</p> <p>print dic[key]</p> <p>&#160;</p> <p>method2:</p> <p>for key in sorted(write_list_hash.keys()): print write_list_hash[key]</p> ]]></description>
				<content:encoded><![CDATA[<p>method1:</p>
<p>dic = {}</p>
<p>keys= dic.keys()</p>
<p>keys.sort()</p>
<p>for key in keys:</p>
<p>print dic[key]</p>
<p>&nbsp;</p>
<p>method2:</p>
<p>for key in sorted(write_list_hash.keys()):<br />
print write_list_hash[key]</p>
]]></content:encoded>
			<wfw:commentRss>https://www.biofacebook.com/?feed=rss2&#038;p=389</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ACEAssemblySplitter.py</title>
		<link>https://www.biofacebook.com/?p=235</link>
		<comments>https://www.biofacebook.com/?p=235#comments</comments>
		<pubDate>Tue, 05 Jun 2012 01:46:09 +0000</pubDate>
		<dc:creator><![CDATA[szypanther]]></dc:creator>
				<category><![CDATA[二代测序]]></category>
		<category><![CDATA[脚本语言]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://www.biofacebook.com/?p=235</guid>
		<description><![CDATA[#! /usr/bin/env python2.7 desc = """ Split an ACE format assembly file into multiple single ACE files each with a single contig. The resulting ACE contig files are formatted so that they can be read by CodonCode (http://www.codoncode.com). $ ACEAssemblySplitter.py test.ace -s 2 -e 3 - prints the second and third contigs in the test.ace [...]]]></description>
				<content:encoded><![CDATA[<pre>#! /usr/bin/env python2.7

desc = """

Split an ACE format assembly file into multiple single ACE files each with a
    single contig. The resulting ACE contig files are formatted so that they can
    be read by CodonCode (http://www.codoncode.com).

$ ACEAssemblySplitter.py test.ace -s 2 -e 3 
  - prints the second and third contigs in the test.ace file

Version 1.0
Cymon J. Cox
Nov 2011
"""

import sys
try:
    import argparse
except ImportError:
    print "Requires Python &gt;= 2.7."
    sys.exit()
import os
import argparse
import textwrap
import subprocess

def count(filename, verbose=True):

    cmd = "grep -c '^CO ' %s" % filename
    child = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True)
    stdout, stderr = child.communicate()
    if not child.returncode == 0:
        print "grep returned error %s" % child.returncode
        print "stderr: %s\n" %stderr
        sys.exit(1)
    else:
        if verbose:
            print "Number of contigs in %s: %s" % (filename, stdout)
    return int(stdout)

def main(filename, count_only, start, end, verbose):

    if not os.path.exists(filename):
        print "Cannot find file %s" % filename
        sys.exit(1)

    if count_only:
        count(filename)
        sys.exit(0)
    else:
        if start or end:
            n_contigs = count(filename, verbose=False)
        if start and end:
            if start &gt; end:
                msg = "Cannot start at %i and end at %i"
                print msg (start, end)
                sys.exit(1)
        if start &gt; n_contigs:
            msg = "Only %i contigs in %s - cannot start at %i"
            print msg % (n_contigs, filename, start)
            sys.exit(1)
        if end &gt; n_contigs:
            msg = "Only %i contigs in %s - cannot end at %i"
            print msg % (n_contigs, filename, end)
            sys.exit(1)

    if not end:
        end = n_contigs

    isPreviousAF = False
    inRT = False
    inCT = False
    skipNextLine = False
    inHeader = True
    foundStart = False
    lines = []
    counter = 1
    fileLines = open(filename).readlines()

    for line in fileLines:
        if line.startswith("CO "):
            if lines != []:
                if inHeader:
                    #Skip over header:
                    lines = []
                    inHeader = False
                    lines.append(line)
                    continue

                #Are we there yet?
                if not foundStart:
                    if counter == start:
                        foundStart = True
                    else:
                        lines = []
                        counter +=1
                        lines.append(line)
                        continue

                if foundStart:
                    if counter &lt; end:
                        #CO FucusALL_rep_c1 1819 1428 94 U
                        name = lines[0].split()[1]
                        outfilename = "%s.ace" % name
                        head = "AS 1 1\n\n"
                        lines.insert(0, head)
                        fh = open(outfilename, "w")
                        fh.writelines(lines)
                        fh.close()
                        counter +=1 
                        lines = []
                    else:
                        break

            lines.append(line)
            continue
        if skipNextLine:
            skipNextLine = False
            continue
        #Delete CT and RT stanzas
        elif line.startswith("RT{"):
            inRT = True
            continue
        elif line.startswith("CT{"):
            inCT = True
        elif line.startswith("}"):
            #Both CT and RT finish with a C}
            inCT = inRT = False
            #Need to miss the next "\n" line
            skipNextLine = True
            continue
        elif inCT or inRT:
            continue
        #Delete the blank line after AF line
        elif line.startswith("AF"):
            isPreviousAF = True
            lines.append(line)
        elif line.startswith("\n") and isPreviousAF:
            isPreviousAF = False
            continue
        elif line.startswith("RD "):
            #delete previous "\n" line
            lines = lines[:-1]
            lines.append(line)
        elif line.startswith("DS "):
            #delete previous "\n" line
            lines = lines[:-1]
            lines.append(line)
        else:
            lines.append(line)

    #print the last one:
    name = lines[0].split()[1]
    outfilename = "%s.ace" % name
    head = "AS 1 1\n\n"
    lines.insert(0, head)
    fh = open(outfilename, "w")
    fh.writelines(lines)
    fh.close()
    counter +=1 

    if verbose:
        print "Done. Split %i Contigs." % counter

if __name__ == "__main__":

    parser = argparse.ArgumentParser(
            formatter_class=argparse.RawDescriptionHelpFormatter,
            description=textwrap.dedent(desc),
            )
    parser.add_argument("filename",
                        help="ACE assembly filename",
                        )
    parser.add_argument("-c", "--count", default=False, action='store_true',
        help="Count number of contigs in assembly only. Default=False")
    parser.add_argument("-s", "--start", default=1, type=int, dest="start",
        help="Start at record number N (integer). Default=1")
    parser.add_argument("-e", "--end", default=None, type=int, dest="end",
        help="End at record number N (integer). Default=last in file")
    parser.add_argument("-v", "--verbose", default=False, action='store_true',
        help="Verbose. Default=False")
    args = parser.parse_args()
    main(args.filename, args.count, args.start, args.end, args.verbose)</pre>
]]></content:encoded>
			<wfw:commentRss>https://www.biofacebook.com/?feed=rss2&#038;p=235</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>python 删除列表空元素或相同元素</title>
		<link>https://www.biofacebook.com/?p=186</link>
		<comments>https://www.biofacebook.com/?p=186#comments</comments>
		<pubDate>Fri, 18 May 2012 03:56:15 +0000</pubDate>
		<dc:creator><![CDATA[szypanther]]></dc:creator>
				<category><![CDATA[脚本语言]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://www.biofacebook.com/?p=186</guid>
		<description><![CDATA[<p>a=[&#8216;a&#8217;,&#8217;b&#8217;,&#8217;c&#8217;,&#8217;a&#8217;,&#8217;d&#8217;,&#8217;a&#8217;]</p> <p>如何把所有的&#8217;a&#8217;删除呢？</p> <p>我的笨方法： for i in a: if i == &#8216;a': a[a.index(i)] = &#8221;</p> <p>while &#8221; in a: a.remove(&#8221;)</p> ]]></description>
				<content:encoded><![CDATA[<p>a=[&#8216;a&#8217;,&#8217;b&#8217;,&#8217;c&#8217;,&#8217;a&#8217;,&#8217;d&#8217;,&#8217;a&#8217;]</p>
<p>如何把所有的&#8217;a&#8217;删除呢？</p>
<p>我的笨方法：<br />
for i in a:<br />
if i == &#8216;a':<br />
a[a.index(i)] = &#8221;</p>
<p>while &#8221; in a:<br />
a.remove(&#8221;)</p>
]]></content:encoded>
			<wfw:commentRss>https://www.biofacebook.com/?feed=rss2&#038;p=186</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
