我试图以一种与平台无关的方式复制Linux shell的cat功能,以便我可以将两个文本文件合并到下列方式: file_1包含: 42 bottles of beer on the wall
file_2包含: Beer is clearly the answer
合并后的文件应包含: 42 bottles of beer on the wall
Beer is clearly the
我有一个FASTA文件,可以很容易地被SeqIO.parse解析。 我有兴趣提取序列号和序列长度。我用这些行做的,但我觉得这是waaaay太沉重(两次迭代,转换等) from Bio import SeqIO
import pandas as pd
# parse sequence fasta file
identifiers = [seq_record.id for seq_recor