Erster Schwung für Teil 22
This commit is contained in:
20
teil22/copyarray.py
Normal file
20
teil22/copyarray.py
Normal file
@@ -0,0 +1,20 @@
|
||||
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}')
|
Reference in New Issue
Block a user