发布时间:2019-08-26 07:20:06编辑:auto阅读(2364)
>>> import socket
>>> name = socket.gethostname()
>>> print name
***-***-***-**
>>> ip_addr = socket.gethostbyname(name)
>>> print ip_addr
10.***.*.*
上一篇: 【python】 倒序输出字符串
下一篇: Python除法运算和幂运算代码实例
51572
51158
41666
38425
32913
29887
28603
23564
23499
21848
1999°
2710°
2269°
2189°
2650°
2208°
2963°
4898°
4733°
3375°