Python 获取主机名

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