引用字符串部分

2024-05-16 08:42:33 发布

您现在位置:Python中文网/ 问答频道 /正文

我有很多像这样的弦。Python中是否有可以提取姓名、日记、日期、标题等的库?你知道吗

Wallace, Kelly. "Bush Stands Pat on Stem Cell Policy." CNN. 13 Aug. 2001.

我试着使用pybtex,但没有返回任何字符串,它必须在特定的格式。你知道吗

from pybtex.database import parse_file,parse_string
print(parse_string('Wallace, Kelly. "Bush Stands Pat on Stem Cell Policy." CNN. 13 Aug. 2001.','bibtex'))
# it returns nothing
BibliographyData(entries=OrderedCaseInsensitiveDict([]), preamble=[])

Tags: stringparseonpolicycellcnnaug姓名