略語のリストがあります
文字 = ['Ala', 'Asx', 'Cys', ... 'Glx']
これを次のようなテキスト ファイルに出力したいと考えています。
#文字 Ala、 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()