Alle Dateien aus dem Pythonkurs
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

20 lines
241 B

import numpy as np
org = np.array([1,2,3,4,5,6])
copy = org
print(f'org= {org}')
print(f'copy={copy}')
copy[2]= 7
print(f'org= {org}')
print(f'copy={copy}')
copy2 = org.copy()
copy2[2]= 3
print(f'org= {org}')
print(f'copy2={copy2}')