with open('test.fa') as fa: f = fa.read() print(f) print(type(f)) print('------') f = f.split('\n') print(f[0]) ##2. readlines()方法.
確定! 回上一頁