Erster Schwung für Teil 22

This commit is contained in:
2024-01-02 06:46:01 +01:00
parent ec60c85695
commit 0882dd06f3
9 changed files with 124 additions and 0 deletions

20
teil22/copyarray.py Normal file
View 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}')