当我想导出带有结果的源代码块时,我想在中间添加一些文本,例如“输出:”,因为否则读者很难理解程序在哪里结束和输出从哪里开始 - 怎么做我实现了在两者之间添加“输出:”?
例子:
* Test
#+BEGIN_SRC python :results output :exports both
i = 5
print i
i = i + 1
print i
s = '''This is a multi-line string.
This is the second line.'''
print s
#+END_SRC
#+RESULTS:
: 5
: 6
: This is a multi-line string.
: This is the second line.