python获得本机机器名

2015-08-26 0 904
python获得本机机器名
import sys, socket

hostname = socket.gethostname()
# Try to get the fully-qualified name.
print 'Fully-qualified name:', socket.getfqdn(hostname)

遇见资源网 python python获得本机机器名 http://www.ox520.com/15715.html

常见问题

相关文章

发表评论
暂无评论
官方客服团队

为您解决烦忧 - 24小时在线 专业服务