发布时间:2019-08-26 07:20:06编辑:auto阅读(2363)
>>> import socket
>>> name = socket.gethostname()
>>> print name
***-***-***-**
>>> ip_addr = socket.gethostbyname(name)
>>> print ip_addr
10.***.*.*
上一篇: 【python】 倒序输出字符串
下一篇: Python除法运算和幂运算代码实例
51567
51145
41663
38421
32906
29881
28600
23562
23492
21841
1991°
2700°
2265°
2187°
2638°
2207°
2957°
4884°
4721°
3357°