我的文件扩展名为 .mod。 该文件包含每个字段下的字段和数据,就像每个csv文件一样。 我需要使用Python读取这个.mod文件。
请使用Pandas或任何其他可以帮助我解决此问题的软件包,建议我使用Python。
谢谢!
答案 0 :(得分:1)
在Windows 10上,使用Python 3.6,我可以成功打开文件并阅读第一行:
with open('09nested.mod') as f:
print(f.readlines()[0])
// File: 09nested.mod
>>>