why x is changed in the following program?
maurice.charbit at telecom-paristech.fr
maurice.charbit at telecom-paristech.fr
Fri Mar 18 05:09:14 EDT 2016
from numpy import random
x=random.randn(6)
y=x
y[0]=12
print x[0]
Maurice Charbit
Emeritus Prof.
mob.: 33 (0)6 5230 1171
tel.: 33 (0)1 4581 7178
fax: 33 (0)1 4581 7144
maurice.charbit at telecom-paristech.fr <mailto:maurice.charbit at telecom-paristech.fr>
Adresse:
Institut Mines-Telecom,
46, rue Barrault, 75014 Paris
More information about the Python-list
mailing list