擅长:python、mysql、java
<p>别费心做任何形式的口述。你不需要dict给你的属性,你需要dict转换丢失的信息。来自<code>SeqIO.parse</code>的记录迭代器已经为您提供了所需的:</p>
<pre><code>with open(i1) as infile, open(out, 'w') as f:
for record in SeqIO.parse(infile, 'fasta'):
# Do what you were going to do with the record.
</code></pre>
<p>如果您需要dict键中的信息,那就是<code>record.id</code>。在</p>