首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >打开函数模块中的无效语法

打开函数模块中的无效语法
EN

Stack Overflow用户
提问于 2020-05-04 14:37:32
回答 1查看 404关注 0票数 0

当我运行代码时,会发生语法错误,而且我不知道why.Of是否成功安装了函数模块,但是这个错误发生了。

代码语言:javascript
运行
复制
%pylab inline
%matplotlib notebook

rcParams["figure.figsize"]=12,8
from functions import circles,deposit_particles,create_envelope,create_envelope_selected
from ipywidgets import interact
from ipywidgets.widgets import IntSlider,IntText,Label,VBox,HBox,Layout,Button,FloatSlider,ToggleButton,FloatText
from IPython.display import clear_output,display
'''

the error:
'''
Populating the interactive namespace from numpy and matplotlib
Traceback (most recent call last):

  File "C:\Users\Win 8.1\Anaconda3\lib\site-packages\IPython\core\interactiveshell.py", line 3326, in run_code
    exec(code_obj, self.user_global_ns, self.user_ns)

  File "<ipython-input-3-1f3efd9a314f>", line 10, in <module>
    from functions import circles,deposit_particles,create_envelope,create_envelope_selected

  File "C:\Users\Win 8.1\Anaconda3\lib\site-packages\functions.py", line 68
    nodes = tuple(map(lambda (k, v): process_node(inner, k, v),
                             ^
SyntaxError: invalid syntax
EN

回答 1

Stack Overflow用户

发布于 2022-01-25 21:40:43

只需修补functions.py:更改所有lambda (x,y) -> lambda x,y

来自https://github.com/getsentry/sentry/issues/6030

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/61594819

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档