我必须向用户请求一个查询,然后打印出匹配的数量,以及前5个返回结果的标题、第一作者姓名、最后一个作者姓名。在
到目前为止我所拥有的:
from Bio import Entrez
from Bio import Medline
pmquery = str(input("Enter the Pubmed query:"))
Entrez.email = "myemailadress@bdm.com"
handle = Entrez.esearch(db="pubmed", term=pmquery,retmax=5)
record = Entrez.read(handle)
handle.close()
print(record)
记录中存储的结果应该是字典或字典列表。您可以访问它,例如:
以获取结果的标题。相应地,你要限制循环的信息。在
相关问题 更多 >
编程相关推荐