热线电话:13121318867

登录
2021-01-30 阅读量: 837
jupyter notebook打印多行数据报错

无需print()即可让Jupyter notebook 打印多个结果:

  1. from IPython.core.interactiveshell import InteractiveShell

  2. InteractiveShell.ast_node_interactivity='all'

运行结果报错:

image.png

错误原因:可能是运行代码顺序出错,导致报错。解决方法,新建ipy文件,或结束当前程序运行刷新。

62.8491
0
关注作者
收藏
评论(0)

发表评论

暂无数据