enquete class documentation + a bit of the others

This commit is contained in:
Bram Barbieri
2024-04-02 21:13:27 +02:00
parent 556f06026e
commit 5d8bec404b
3 changed files with 48 additions and 9 deletions

View File

@@ -13,6 +13,11 @@ def dbLogin():
database="NodeData"
)
return mydb
```
The "__init__"function is called.
(In javascript this is known as the "constructor".
For further information visit https://www.w3schools.com/python/gloss_python_class_init.asp)
```py
# A general class which acts as a database connector and a node identifyer
class Node():