Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/321.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 这是复活节彩蛋吗?_Python_Messaging_Etetoolkit - Fatal编程技术网

Python 这是复活节彩蛋吗?

Python 这是复活节彩蛋吗?,python,messaging,etetoolkit,Python,Messaging,Etetoolkit,(用于系统发育树探索的Python环境)有一个方法.phonehome(),可以在树/节点类对象上调用该方法。这将返回: == Calling home... Got answer! He11o alien, How is everything in the Earth? We miss you in Brodo Asogi. I see you are in shape. No updates are available. == Do you want to leave any mess

(用于系统发育树探索的Python环境)有一个方法
.phonehome()
,可以在树/节点类对象上调用该方法。这将返回:

== Calling home... Got answer!

He11o alien,
How is everything in the Earth?
We miss you in Brodo Asogi.

I see you are in shape.
No updates are available.

== Do you want to leave any message?
(Press enter to finish)
如果您想亲自测试,请尝试:

from ete2 import Tree
t = Tree()      # generate random Tree
t.phonehome()   # communicate with Aliens!
这是复活节彩蛋吗?

是:

所以你可以叫它复活节彩蛋。但它也有一个真正的目的,因为它是项目版本检查方法,以一点幽默命名:

''' I use this module to check for newer versions of ETE '''

以及:


请参阅

还会是什么?我注意到该项目使用标志性的ET飞行自行车轮廓作为标志。一个真正的外星人试图communicate@hello_there_andy你好,我对你的侦探技巧感到敬畏@你好,安迪:有什么改变使这个答案不再有用吗?我试图删除帖子:(这是邪恶的帖子!它一定会死的!
def call():
    print "  == Calling home...",
    try:
        f = url.urlopen('http://ete.cgenomics.org/et_phone_home.php?VERSION=%s&ID=%s' 
                %(__VERSION__, __ETEID__))
if not latest:
    print "I could not find data about your version [%s]" %module_name
    print "Are you ok?"
elif not current:
    print "I could not determine your version [%s]" %module_name
    print "Are you ok?"
    print "Latest stable ETE version is", latest
elif latest > current:
    print "You look a bit old."
    print "A newer version is available: rev%s" %latest
    print "Use 'easy_install -U %s' to upgrade" %module_name
else:
    print "I see you are in shape."
    print "No updates are available."