发布时间:2019-08-26 07:20:06编辑:auto阅读(2323)
>>> import socket
>>> name = socket.gethostname()
>>> print name
***-***-***-**
>>> ip_addr = socket.gethostbyname(name)
>>> print ip_addr
10.***.*.*
上一篇: 【python】 倒序输出字符串
下一篇: Python除法运算和幂运算代码实例
51268
50707
41309
38126
32584
29492
28348
23209
23179
21504
1579°
2300°
1909°
1850°
2165°
1892°
2581°
4321°
4171°
2975°