📅  最后修改于: 2022-03-11 14:48:31.839000             🧑  作者: Mango
>>> import psycopg2
>>> c = psycopg2.connect("host='localhost' dbname='mydb' user='myuser' password='secret' sslmode='disable' gssencmode='disable'")