Python实现DNA转录RNA
with open("rosalind_rna.txt") as f: dna_fragment = f.read().rsplit() rna_fragment = ''.join("U" if x=="T" else x for x in dna_fragment[0]) rna_fragmentwith open("rosalind_rna.txt") as f: dna_fragment = f.read().rsplit() rna_fragment = ''.join("U" if x=="T" else x for x in dna_fragment[0]) rna_fragment