#-*- coding: gb2312 -*- import pyodbc DBfile = r"test.accdb" conn = pyodbc.connect("Driver={Microsoft Access Driver (*.mdb, *.accdb)};DBQ=" + DBfile) cursor = conn.cursor() SQL = "SELECT * from Desktop" for row in cursor.execute(SQL): print(row[1] +' '+ row[2]) cursor.close()