单项选择题

在Python Socket编程中,哪个函数用于将域名转换为IP地址?()

A.socket.gethostbyname()
B.socket.bind()
C.socket.listen()
D.socket.connect()