这段代码有什么问题?应该显示表格列表
import pg
con = pg.connect(dbname='xxx', host='xxxx', user='xxx')
pgqueryset = con.get_tables()
Traceback (most recent call last):
File "demo.py", line 42, in <module>
pgqueryset = con.get_tables()()
AttributeError: get_tables
Parameters:
None
Returns:
list: all tables in connected database