发布时间:2019-08-26 07:20:06编辑:auto阅读(2903)
>>> import socket
>>> name = socket.gethostname()
>>> print name
***-***-***-**
>>> ip_addr = socket.gethostbyname(name)
>>> print ip_addr
10.***.*.*
上一篇: 【python】 倒序输出字符串
下一篇: Python除法运算和幂运算代码实例
54956
41751
36339
31770
26670
26363
24886
20492
16435
15853
2981°
2708°
2808°
2954°
2890°
3152°
3043°
2888°
2879°
2858°