Initialer Import der Synology Scripts

This commit is contained in:
root
2026-08-05 08:43:57 +02:00
commit 5e32a7c411
404 changed files with 79932 additions and 0 deletions
@@ -0,0 +1,26 @@
# C++, Java: this
class Animal:
def __init__(self, weight, height):
self.weight = weight
self.height = height
def jump(self):
print("Jump!")
def main():
dog = Animal(10, 0.8)
print(dog.height)
print(dog.weight)
dog.jump()
cat = Animal(3, 0.3)
print(cat.height)
print(cat.weight)
cat.jump()
if __name__ == "__main__":
main()