python批量读取dbf_Python 读取DBF/FPT 文件

FPT文件是FoxPro存储备注信息的文件。

The file format is used by Fox Pro 2.x and later The size of the header is 512 bytes

_______________________ _______

00h / 0 | Number of next | ^

00h / 1 | available block | |

00h / 2 | for appending data | Header

00h / 3 | (binary) *1| |

|-----------------------| |

00h / 4 | ( Reserved ) | |

00h / 5 | | |

|-----------------------| |

00h / 6 | Size of blocks N *1| |

00h / 7 | *2| |

|-----------------------| |

00h / 8 | ( Reserved ) | |

| | |

| | |

| (i.e. garbage) | |

: : |

: : |

00h / 511| | |

|=======================| _v_____

00h / 0| | ^ Used block

| | | __ |=======================|

| | | / 0| Record type *3|

: : | / 1| *1|

: : | / 2| |

| | | / 3| |

00h / N| | | / |-----------------------|

|=======================| _|_____/ 4| Length of memo field |

00h / 0| | | 5| *1|

: : | 6| |

: : | 7| |

| | | |-----------------------|

00h / N| | _|_____ 8| Memo data |

|=======================| | \ : :

0| | | \ N| |

| | | \_____ |=======================|

| | |

: : |

00h / N| | _v_____

|=======================|

Big-endian. Binary value with high byte first.

Size of blocks in memo file (SET BLOCKSIZE). Default is 512 bytes.

Record type

Value Description

00h Picture. This normally indicates that file is produced on a MacIntosh, since pictures on the DOS/Windows platform are "objects".

01h Memo

02h Object

A memo field can be longer than the 512 byte block. It simply continues through the next block. The field is logically terminated by two End-of-file marks in the field. The reminder of the block is unused.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值