草庐IT

pycassaShell

全部标签

python - 从另一个函数调用一个函数时在 pycassaShell 中出现意外的 NameError

我正在玩pycassaShell(作为Cassandra和Twissandra教程的一部分)。当尝试在shell中添加两个函数,并从另一个调用一个函数时,我收到一个错误,指出名称无法识别。这可能是一件非常简单的事情,但我没有找到如何做到这一点。pycassaShell看起来像:In[3]:defaaa():print5In[4]:aaa()5In[5]:defbbb():aaa()In[6]:bbb()---------------------------------------------------------------------------NameErrorTraceback