擅长:python、mysql、java
<p>回溯是dbfpy告诉您文件中有一个dbfpy不支持的字段类型代码<code>0</code>。这是一个visualfoxpro(“VFP”)的东西。在</p>
<p>这和备忘录文件无关。是的,如果有备注字段,则它们存储在<code>.FPT</code>文件中。^当您访问<code>foo.dbf</code>时,{<cd3>}需要出现。在</p>
<p>你说“我最终使用了python dBase模块”。。。假设您指的是ethanfurman的<code>dbf</code>模块,根据它的<a href="http://pypi.python.org/pypi/dbf/" rel="nofollow">PyPI entry</a>不支持空字段。在</p>
<p>我有一个DBF阅读模块(<code>pydbfrw</code>),我一直想在“有一天”发布它。以下是其文档摘录:</p>
<pre><code>Field Type Description DBF variety Python 2.x type
0 (digit zero) _NullFlags VFP N/A
Notes: This field type is used only for the hidden _NullFlags field which
is a bit mask saying which fields in the record should be interpreted as NULL.
</code></pre>
<p>我的模块实现了识别,并在需要的地方为字段值返回<code>None</code>。如果你想要这个模块的副本,请找到我的电子邮件地址,例如google(“john machin xlrd”)给我发电子邮件,我会把它发给你。在</p>