在python,bash或perl中,我怎样才能人为地夸大我的记忆

use*_*716 3 python memory

Hopefull真的很简单.我想人为地夸大我的记忆......我这样做是出于测试目的......在linux中的任何方式都没关系.

nne*_*neo 7

蟒蛇:

x = [0]
while True: x.extend(x)
Run Code Online (Sandbox Code Playgroud)

这将使x内存的用量增加一倍(你得到MemoryError).