Python 获取主机名

import socket
print socket.gethostname()
posted @ 2018-09-29 18:41  salami_china  阅读(305)  评论(0编辑  收藏  举报