list copy pass by reference a = [1,2,3] a_ref = a a.append(4) print("a: ", a) print("a_ref: ", a). 由上述程式碼可知. a, a_ref 是完全相同的; a 和a_ref 的記憶 ...
確定! 回上一頁