a和b是Python函数,c是将简单的noweb插入到Python源代码块中,d是在具有noweb插入的函数中进行插入。功能c有效,但功能d无效,因为Python试图执行插入操作,但这是无效语法。是否可以从noweb插入中运行noweb插入?
#+NAME: a
#+BEGIN_SRC python
a = 1
#+END_SRC
#+NAME: b
#+BEGIN_SRC python
b = 1
#+END_SRC
#+NAME: c
#+BEGIN_SRC python :noweb yes :results output
<<a>>
<<b>>
c = a + b
print c
#+END_SRC
#+NAME: d
#+BEGIN_SRC python :noweb yes :results output
<<c>>
d = c * 2
print d
#+END_SRC