网上很多人说,list 在python 中做切片处理的时候,不会共享内存,并且做出了一些程序展示。 我经过实践,发现在pytorch中,class torch.Tensor 的列表做切片处理,内存是共享的。