我有一份缩写表
字母=['Ala'、'Asx'、'Cys'、…'Glx']
我想将其输出到一个文本文件,该文件如下所示:
字母
阿拉巴马州,Asx,Cys。。。。。Glx公司
这里没有程序员!我总是忘记最简单的事情!啊
请帮忙,谢谢!在
import Bio
from Bio import Seq
from Bio.Seq import Alphabet
output = 'alphabetSoupOutput.txt'
fh = open(output, 'w')
ThreeLetterProtein = '#Three Letter Protein'
Letters = Bio.Alphabet.ThreeLetterProtein.letters
fh.write(ThreeLetterProtein + '\n')
#Don't know what goes here
fh.close()
那
fh.write(', '.join(Letters))
怎么样?在我对生物包不太了解,但我想。。。在
或者
^{pr2}$相关问题 更多 >
编程相关推荐