Python Docutils节点中文本和原始源之间的差异。文本?
创建新节点(如Python Docutils节点中文本和原始源之间的差异。文本?,python,python-sphinx,docutils,Python,Python Sphinx,Docutils,创建新节点(如节点.title)时,需要提供两个字符串: rawsource text 我经常看到: nodes.title('foobar', 'foobar', ids=[id]) 或者某个时候 nodes.target('', '') 我不明白为什么会有这种重复,为什么有两倍或没有两倍相同的值是有用的
节点.title
)时,需要提供两个字符串:
rawsource
text
nodes.title('foobar', 'foobar', ids=[id])
或者某个时候
nodes.target('', '')
我不明白为什么会有这种重复,为什么有两倍或没有两倍相同的值是有用的