python学习——读取染色体长度(一、简化问题)时间:2024-06-19 21:03:02 # 读取fasta # 解析每条序列的长度 chr1_len = 10 chr2_len = 20 chr3_len = 30 chr4_len = 40 chr5_len = 50 # 求和 total_len = chr1_len + chr2_len + chr3_len + chr4_len + chr5_len # 输出结果 print(total_len)