python 把一个文档的各行内容变成数组的各个元素

2025-05-19 10:23:08
推荐回答(1个)
回答1:

with open('test.txt','r') as f0:
ret=f0.readlines()
print ret