python获取计算机名 作者:马育民 • 2019-04-20 10:57 • 阅读:10119 import socket hostname = socket.gethostname() print(hostname)