Python 获取主机名

import socket
print socket.gethostname()

猜你喜欢

转载自www.cnblogs.com/wangjq19920210/p/9726145.html