问题 I am porting the following 10 lines of Python code to Scala: import psycopg2 def execute(user, password, database, host, port, *queries): connection = psycopg2.connect(user=user, password=password, host=host, port=port, database=database) cursor = connection.cursor() for sql in queries: print(sql) cursor.execute(sql) connection.commit() cursor.close() connection.close() I have the following equivalent Scala code: def execute(user: String, password: String, database: String, host: String, port