【发布时间】:2016-11-21 00:56:52
【问题描述】:
我目前正在使用 BioPython 从 PMID 查询 PubMed 记录。然后,我将所需信息存储在一个名为 abstract 的变量中,其数据类型为:
class 'Bio.Entrez.Parser.StructureElement'>
例如,如果我打印它,我会收到:
{u'AbstractText': ['Hypercholesterolemia and hypertension are frequently associated with elevated sympathetic activity. Both are independent cardiovascular ris....']}
我希望将方括号之间的文本写入字符串。我怎样才能快速有效地做到这一点?
【问题讨论】: