1

我使用 biopython 从分类数据库中搜索谱系信息,但它返回空!

我昨天(2016/3/15)可以使用它!但是现在我不能使用它(2016/03/16)!

我使用的代码在这里,

>>> from Bio import Entrez   
>>> Entrez.email = "myemail@gmail.com"   
>>> handle = Entrez.esearch(db="Taxonomy", term="Cypripedioideae")    
>>> record = Entrez.read(handle)   
>>> record["IdList"]   
['158330']  
>>> record["IdList"][0]  
'158330'  
>>> handle = Entrez.efetch(db="Taxonomy", id="158330", retmode="xml")  
>>> records = Entrez.read(handle)   
>>> records[0].keys()  
Traceback (most recent call last):  
File "<stdin>", line 1, in <module>  
IndexError: list index out of range
>>> records
[]  #I can't understand why it returns empty today? 
4

0 回答 0