我们可以一个接一个地保存多个数组,而不必同时在RAM中保存所有数组: A = compute_my_np_array(1) # we could even do: del A (but not needed here, because it is freed anyway in the next line)
np.save(f, A)
但它没有压缩。对于压缩保存,
大家好。我正在尝试将HTML代码保存在数据库中,我使用的是,但我有一个很大的问题。通常,生成的HTML如下所示:This is the first paragraph<div></div>This is the last paragraph.我想“清理”html代码,让结果看起来像这样:This is the first paragraphThis is