') # or this way with URI (Postgres 9.2 and above) uri = f'postgresql://{user}:{pass}@{host}:{port}/{database}' try: conn = psycopg2.connect(uri) ...
確定! 回上一頁