python获得本机机器名 2015/08/26 33411 清华大佬耗费三个月吐血整理的几百G的资源,免费分享!....>>> import sys, socket hostname = socket.gethostname() # Try to get the fully-qualified name. print 'Fully-qualified name:', socket.getfqdn(hostname)