摘要:
import socket import commands def get_ip(): hostname = socket.gethostname() #print(hostname) hostip = "127.0.0.1" try: hostip = socket.gethostbyname(h 阅读全文
posted @ 2021-12-08 16:50
huxl1
阅读(141)
评论(0)
推荐(0)
摘要:
#!/usr/bin/env python # encoding: utf-8 # 查看主机名 import socket def gethostname(): hostname = socket.gethostname() return hostname ret = gethostname() p 阅读全文
posted @ 2021-12-08 16:15
huxl1
阅读(65)
评论(0)
推荐(0)

浙公网安备 33010602011771号