我必须询问用户查询,然后打印匹配的数量,以及前 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)