发布时间:2019-08-26 07:20:06编辑:auto阅读(2885)
>>> import socket
>>> name = socket.gethostname()
>>> print name
***-***-***-**
>>> ip_addr = socket.gethostbyname(name)
>>> print ip_addr
10.***.*.*
上一篇: 【python】 倒序输出字符串
下一篇: Python除法运算和幂运算代码实例
54808
41599
36177
31628
26533
26236
24761
20345
16300
15727
2805°
2567°
2652°
2796°
2743°
2969°
2877°
2722°
2726°
2699°