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发布于 2020-07-13 22:06:44
在存储库https://github.com/KehaoWu/pgdb/blob/master/pgdb/pgdb.py#L15中,类名是Connection
PYPY项目pypi.org/ project /pgdb
https://stackoverflow.com/questions/62876039
复制相似问题