pythonhois,python2.7.6和2.7的区别

2024-06-16 08:33:17 发布

您现在位置:Python中文网/ 问答频道 /正文

我有一个运行在python2.7.6和python2.7.5上的bellow函数

这是2.7.6

[root@NMCT-MSL-116-1 python_whois-0.2-py2.6.egg-info]# python
Python 2.7.6 (default, Sep 26 2014, 13:25:30)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import whois as wh
>>> wh.whois('199.96.57.7').emails
['mathew@twitter.com', 'sleibrand@twitter.com', 'noc@twitter.com', 'sconnor@twitter.com',   
'rjohnson@twitter.com', 'fawad@twitter.com', 'net-abuse@twitter.com']

这是2.7.5

^{pr2}$

它是相同的代码2不同的Centos版本。第一个是6.5,2.7.6的定制python安装。第二个是Centos 7和2.7.5默认安装。当我手动检查两台服务器都能用whois cli工具找到这个主机。在

我被卡住了,我找不到这两台机器的区别。除了基于相同的网络配置外,它们基于相同的网络配置。在

这是版本之间的区别吗?有人知道这个吗?在


Tags: 函数版本网络infocomeggtwitterroot