python在linux环境读取access数据库mdb文件

用的包是meza

通过mdbtools读取

 

先安装包和环境

$ sudo apt install mdbtools
$ pip install meza

 

代码demo

from meza import io

records = io.read('/Users/yuyu/ct/Data_Logger/Logger.mdb')

i = 1
    while len(next(records)) > 0:
        print(next(records))
        print(i)
        i += 1        

 

posted @ 2020-05-22 19:05  wangyuyu  阅读(1974)  评论(0编辑  收藏  举报