擅长:python、mysql、java
<p>你不需要正则表达式。在第二个部分选择“>:</p>
<pre><code>text = '>4L type=chromosome; loc=6L:1.733034524; ID=4L; length=4534673;
release=r2.32; species=Homo;
CCAACATATTGTGCTAATGAGTGCCTCTCGTTCTCTGTCTTATATTACCG
CAAACCCAAAAAGACAATACACGACAGAGAGAGAGAGCAGCGGAGATATT
TAGATTGCCTATTAAATATGATCGCGTATGCGAGAGTAGTGCCAACATAT
TGTGCTCTCTATATAATGACTGCCTCTCATTCTGTCTTATTTTACCGCAA'
test = test.split('>')[1]
print(test)
</code></pre>