Donnerstagabend
This commit is contained in:
@@ -1,10 +1,14 @@
|
||||
#!/usr/bin/env python3
|
||||
from vectors import Vector
|
||||
from vectors import Vector, Vector2
|
||||
|
||||
v1 = Vector(1, 2, 3, )
|
||||
v1 = Vector(1, 2, 3)
|
||||
v2 = Vector(4,0,1)
|
||||
print(v1.get_values())
|
||||
del v2
|
||||
print("Jetzt wird v2 freigebe ")
|
||||
|
||||
#print(v2)
|
||||
v3 = v1 * 3
|
||||
#v4 = v1 + v2 #.addition(v2)
|
||||
#print(v3.get_values())
|
||||
print(str(v1))
|
||||
print(v3)
|
||||
#print(v4.get_values())
|
||||
v5 = Vector2(1, 3)
|
||||
print(v5 + 3)
|
||||
print()
|
||||
Reference in New Issue
Block a user