当我在 google colab 中运行此代码时
n = 100000000 i = [] while True: i.append(n * 10**66)
它总是发生在我身上。我的数据很大。在达到 12.72 GB RAM 后,但我没有立即进入崩溃提示和增加 RAM 的选项。
我刚刚在使用所有可用 RAM 后,您的会话崩溃了。查看运行时日志
解决办法是什么 ?还有其他方法吗?
google-colaboratory
google-colaboratory ×1