简体   繁体   English

无法识别最后一个源块

[英]Last source block can't be recognized

I have these three code blocks, but when i Cc Cc the last one, emacs tells me我有这三个代码块,但是当我抄送最后一个时,emacs 告诉我

Cc Cc can't do anything useful here抄送抄送在这里不能做任何有用的事情

#+BEGIN_SRC org
,#+BEGIN_SRC python
print('hello');
,#+END_SRC

,#+RESULTS:
: None
#+END_SRC

#+BEGIN_SRC org
,#+BEGIN_SRC python :results output
print('hello');
,#+END_SRC

,#+RESULTS:
: hello
#+END_SRC

#+BEGIN_SRC python
return 1-2+100
#END_SRC

This is code blocks inside code blocks.这是代码块内的代码块。 Am I doing anything wrong that I can't see, or is this some sort of bug?我做错了什么我看不到的事情,还是这是某种错误?

An even more dense example is this, that gives me the same一个更密集的例子是这个,它给了我同样的

#+BEGIN_SRC org
,#+BEGIN_SRC python
,#+END_SRC
#+END_SRC

#+BEGIN_SRC org
,#+BEGIN_SRC python
,#+END_SRC
#+END_SRC

#+BEGIN_SRC python
return 1-2+100
#END_SRC

You are missing a + sign in the last line, which should read #+END_SRC , not #END_SRC .您在最后一行缺少一个 + 号,应该是#+END_SRC ,而不是#END_SRC

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM