1 / 15
文档名称:

Python 读取DBFFPT 文件 [Python俱乐部].doc

格式:doc   大小:15KB   页数:15页
下载后只包含 1 个 DOC 格式的文档,没有任何的图纸或源代码,查看文件列表

如果您已付费下载过本站文档,您可以点这里二次下载

分享

预览

Python 读取DBFFPT 文件 [Python俱乐部].doc

上传人:学习的一点 2021/10/11 文件大小:15 KB

下载得到文件列表

Python 读取DBFFPT 文件 [Python俱乐部].doc

文档介绍

文档介绍:Python 读取DBFFPT 文件 [Python俱乐部]
目录Python 读取DBF/FPT 文件
FPT 文件格式
Python DBF模块

dbfpy
Python 读取DBF/FPT 文件
DBF/FPT是 FoxPro 数据库存储文件的格式,虽然现在 FoxPro 已经不用了,但是有些情况下我们需要读取DBF/FPT数据库文件。这里整理了用Python读取DBF/FPT文件相关 Python 模块。
FPT 文件格式
FPT文件是FoxPro存储备注信息的文件。 The file format is used by Fox Pro 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 ) | |
| | |
| | |
| (. 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| |
: