f = open("interest.txt","r",encoding='utf-8') #设置文件对象
result=[]
for line in f.readlines():#readlines以列表输出文件内容
line
将txt读取 并转换为dataframe
最新推荐文章于 2023-05-26 08:38:27 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)
f = open("interest.txt","r",encoding='utf-8') #设置文件对象
result=[]
for line in f.readlines():#readlines以列表输出文件内容
line