发布时间:2019-08-26 07:20:06编辑:auto阅读(2290)
>>> import socket
>>> name = socket.gethostname()
>>> print name
***-***-***-**
>>> ip_addr = socket.gethostbyname(name)
>>> print ip_addr
10.***.*.*
上一篇: 【python】 倒序输出字符串
下一篇: Python除法运算和幂运算代码实例
50991
50374
40989
37857
32321
29213
28096
22926
22894
21221
1087°
1776°
1448°
1385°
1660°
1469°
2127°
3685°
3621°
2543°