如何在代码段旁边显示特殊注释

时间:2019-07-12 16:51:18

标签: flask jinja2 python-sphinx

this webpage上,代码显示在注释旁边,如下所示:

enter image description here

评论似乎是从以下四项评论in the source中提取的:

#### In AllenNLP we represent each training example as an 
#### <code>Instance</code> containing <code>Field</code>s of various types. 
#### Here each example will have a <code>TextField</code> containing the sentence, 
#### and a <code>SequenceLabelField</code> containing the corresponding part-of-speech tags.
from allennlp.data import Instance
from allennlp.data.fields import TextField, SequenceLabelField

该站点似乎正在使用带有jinja2的烧瓶。

他们如何获得这些评论?那是狮身人面像的东西吗?一个神社的东西?

0 个答案:

没有答案