import pgdb
myConnection = pgdb.connect( host=hostname, user=username, password=password, database=database )
doQuery( myConnection )
myConnection.close()
运行脚本时出现以下错误。
>>> AttributeError: 'module' object has no attribute 'connect'. Please help me out