Skip to content
Snippets Groups Projects
Commit d796b6cb authored by Ziqian's avatar Ziqian
Browse files

read input

parent ec964cc0
No related branches found
No related tags found
No related merge requests found
......@@ -100,4 +100,16 @@ def seq_fre_get(input_seq, data_path):
print(seq_list[i])
ans_num = ans_num * len(seq_list[i])
print('可生成条数:', ans_num)
return seq_list
\ No newline at end of file
return seq_list
def read_input(specie_path, input_path):
with open(specie_path, "r") as f:
tar_specie = f.read()
ans = []
with open(input_path, "r") as f:
for line in f.readlines():
line = line.strip('\n') # 去除文本中的换行符
ans.append(line)
input_seq_fr = ans[0]
input_cdr = ans[1:]
return tar_specie, input_seq_fr, input_cdr
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment