我想知道爲什麼我在兩個打印中得到不同的結果?他們不應該是一樣的嗎?Python numpy矩陣賦值
import numpy as np
x = np.array([[1.5, 2], [2.4, 6]])
k = np.copy(x)
for i in range(len(x)):
for j in range(len(x[i])):
k[i][j] = 1/(1 + np.exp(-x[i][j]))
print("K[i][j]:"+str(k[i][j]))
print("Value:"+str(1/(1 + np.exp(-x[i][j]))))