我有 .dat 文件,我试图在 python 中读取。文件格式为:
1.1 CDR description1
Field length(bytes) Offset
x 4 0
x1 2 4
x2 1 6
x3 1 7
......
......
......
x4 16 210
x5 4 226
x6 70 230
Total length of information 300
这些是 CDR 记录,我正在尝试使用该struct
模块进行读取,但我不明白如何将它与我的特定文件格式一起使用...有什么帮助吗?