在python3.5中使用附加法时出现了一些问题。给出了代码。def boson_basis(L,N):state=[0 for i in range(1,L+1)]# initialize the state to |N,0,...,0>basis.append(state)while state[L-1]<N:
fo
所以,我们知道,浅拷贝和深拷贝的区别是:浅拷贝b=a; // b point to a's address in the memory. if a changes, b changes.深拷贝 b=a; // b holds the actual value 5. if a changes, b remains the same.酷,现在,我的问题是:传递状态