小编Daw*_*wyi的帖子

如何增加 Jupyter notebook 内存限制?

我在 Windows 10 上使用带有 Python3 的 jupyter notebook。我的电脑有 8GB 内存,至少有 4GB 的内存是免费的。

但是当我想用这个命令制作一个大小为 6000*6000 的 numpy ndArray 时: np.zeros((6000, 6000), dtype='float64') 我得到了这个:Unable to allocate array with shape (6000, 6000) and data type float64

我认为这不会使用超过 100MB 的 RAM。我试图改变号码看看会发生什么。我可以制作的最大数组是 (5000,5000)。我在估计需要多少 RAM 时出错了吗?

python memory numpy ipython jupyter-notebook

28
推荐指数
2
解决办法
5万
查看次数

如何拥有两个相互调用Java的函数

我知道我们在C++中这样做:

int a();
int b() { 
  return a();
}
int a() { 
  return b();
}
Run Code Online (Sandbox Code Playgroud)

我怎么能在Java中做这样的事情?

java forward-declaration

1
推荐指数
1
解决办法
188
查看次数