Sie gab einen guten Einblick in Python, war aber nicht vollständig.
It did give a good idea about Python but was not complete.
In Python ist 'print' ein statement/ Anweisung.
In python, 'print' is a statement.
In Python wird der Ausgang des Bewegungsmelders, ebenfalls sehr ähnlich zum obigen Beispiel, abgefragt.
The output of the motion detector is programmed with a python program, very similar to the example above.
In Python und einigen anderen Sprachen hat das Wort Modul eine spezifische Bedeutung, die wir kurz betrachten werden, aber lass uns zuvor die Funktionen etwas näher anschauen.
In Python and some other languages the word module has taken on a more specific meaning which we will look at shortly, but first let's consider functions a bit more closely.
In Python 3 wurde aus "print" eine Funktion, du musst also "print()" eingeben und das, was du angezeigt haben willst, innerhalb der Klammern setzen.
In Python 3, "print" has become a function, so you will need to type "print()", with what you want displayed inside the parentheses.
In Python muss man die Implementierung von Modul auf Klasse umstellen, wenn man Listener mit Argumenten verwenden möchte, da die Argumente im Konstruktor übergeben werden.
In this situation listeners configured with arguments come in handy. When using listeners with arguments it is necessary to switch from module to class when implementing in Python.
In Python ist diese Liste im sys Modul enthalten und heißt argv (für 'argument values'- Argument-Werte).
In Python that list is held by the sys module and called argv (for 'argument values').
In Python kann das Fehlen von starker Typisierung zu unerwartetem Verhalten in Programmen führen.
In Python, the absence of strong typing can lead to unexpected behavior in programs.
In Python können Sie hierzu einfach nach einer Exception das pdb Modul importieren und pdb.pm() ausführen.
In Python you can simply import the pdb package and run pdb.pm() after an exception.
In Python ist die Mehrfachvererbung üblich und ermöglicht eine dynamische Methode der Auflösung.
In Python, multiple inheritance is common and allows for dynamic method resolution.
In Python kann ein Lambda-Ausdruck eine traditionelle Funktion für kleine Aufgaben ersetzen.
In Python, a lambda expression can replace a traditional function for small tasks.
In Python ist der 'Dokumentationsstring' über die Hilfefunktion zugänglich, um die Nutzung zu erleichtern.
In Python, the docstring is accessible via the help function for easier usage.
In Python können Schleifen effektiv mit for- oder while-Anweisungen erreicht werden.
In Python, looping can be achieved using for or while statements effectively.