发布时间:2019-08-26 07:20:06编辑:auto阅读(2904)
>>> import socket
>>> name = socket.gethostname()
>>> print name
***-***-***-**
>>> ip_addr = socket.gethostbyname(name)
>>> print ip_addr
10.***.*.*
上一篇: 【python】 倒序输出字符串
下一篇: Python除法运算和幂运算代码实例
54956
41752
36339
31771
26671
26363
24886
20493
16435
15853
2983°
2709°
2809°
2955°
2893°
3153°
3044°
2889°
2880°
2859°