1、挂出我写的一个小demo,我是这样写的,当我运行的时候于是 [*] 就出现了
jupyter notebook运行时出现 In[ * ]怎么回事
jupyter notebook运行时出现 In[ * ]怎么回事
2、很明显代码的运行结果就是这样一直无限输出下去,耗尽了给jupyter notebook的全部内存,而且你注意一下页面的右上角,红色箭头指的地方变成了实心圆。
jupyter notebook运行时出现 In[ * ]怎么回事
3、你可以重启内核
jupyter notebook运行时出现 In[ * ]怎么回事
4、重启之后实心圆变成空心小圈圈,这时候你再运行,当然可能还是一样
jupyter notebook运行时出现 In[ * ]怎么回事
5、查看代码吧,不可能无缘无故出错的,更改之后,好了,没问题了
jupyter notebook运行时出现 In[ * ]怎么回事
至于这两个代码为啥不一样,原因就是在while 循环中重复创建新地址,以至于无限循环new

相关文章:

  • 2021-06-19
  • 2022-12-23
  • 2021-10-03
  • 2021-10-29
  • 2021-10-08
  • 2022-12-23
  • 2022-01-17
  • 2021-11-19
猜你喜欢
  • 2022-12-23
  • 2021-12-24
  • 2021-12-01
  • 2022-12-23
  • 1970-01-01
  • 2021-11-12
  • 2021-11-04
相关资源
相似解决方案