Output:

T 4

C 2

G 6

A 6

N 0

E 0

G 2

M 1

S 0

B 0

R 1

P 0

D 0

H 0

V 0

W 0

Y 1

K 2

X 0

Z 0

Note: The output shows the count of each character in the given sequence. The characters that are not present in the sequence are also included in the output with a count of 0.

# 简单序列计数 sequece = TCGAAATTCGGGCATGGAG count = for character in sequece countsetdefaultcharacter 0 countcharacter = countcharacter + 1 for k v in countitems printk + + strv

原文地址: https://www.cveoy.top/t/topic/boWi 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录