That's because exit is a function defined in sys and when we call a Python function we need to supply the parentheses even if there's nothing inside them!
Das ist deswegen, weil exit eine Funktion ist, definiert in sys, und wenn wir eine Python-Funktion aufrufen, müssen wir die Klammern anhängen, auch wenn nichts drin steckt!
The way to do that is use the bind function to explicitly tie together (or bind) an event and a Python function.
Der Weg sowas zu tun, ist die Verwendung der bind - Funktion um explizit ein Ereignis und eine Pythonfunktion aneinander zu hängen (oder zu binden).
Define a Python function, as described in Functions, Indentation, and Counting.
For OpenSCAD we use a module definition in a scad file or a stl file, for FreeCAD a python function or a fcstd file containing the model.
Für OpenSCAD werden Moduldefinitionen in einer.scad Datei oder eine STL Datei verwendet, für FreeCAD eine Python Funktion oder eine.fcstd Datei mit dem Modell.
Another feature that is very much in the spirit of the open source nature of Sage is that if f is a Python function, then typing f?? displays the source code that defines f.
Eine andere Funktionalität, die sehr eng in Verbindung mit Open-Source-Gedanken steht ist, dass Sie sich zu jeder Funktion den Quelltext anzeigen lassen können.
Another feature that is very much in the spirit of the open source nature of Sage is that if f is a Python function, then typing f?? displays the source code that defines f.
Eine andere Funktionalität, die sehr eng in Verbindung mit Open-Source-Gedanken steht ist, dass Sie sich zu jeder Funktion den Quelltext anzeigen lassen können. Sei f eine Sage oder Python Funktion, dann können Sie mit f?? den Quellcode, der f definiert anzeigen.
In this video we show you how the SpiderControlTM SCADA server obtains the data from a PLC, process it with a Python function and then transfers it back to the S7-1200 PLC.
In diesem Video zeigen wir Ihnen, wie der SpiderControlTM SCADA-Server die Daten von einer SPS bezieht, diese mit einer Python-Funktion verarbeitet und danach wieder an die S7-1200 Steuerung übergibt.
If you get an error about a Python function terminating unexpectedly after upgrading calibre, first uninstall calibre, then delete the folders (if they exists) C:\Program Files\Calibre and C:\Program Files\Calibre2.
Falls Sie nach dem Upgrade von Calibre eine Fehlermeldung über ein unerwartetes Beenden einer Python-Funktion erhalten, deinstallieren Sie Calibre erst und löschen dann die Ordner (falls vorhanden) C:\Programme\Calibre und C:\Programme\Calibre2.
The tasks can be python functions or an external shell script/command.
Die Aufgaben können Python-Funktionen oder eine externe Shell-Script/ Befehl sein.
Function mode allows you to write arbitrarily powerful Python functions that are run on every Find/replace.
Der Funktionsmodus erlaubt Ihnen, beliebig mächtige Python-Funktionen zu schreiben, die bei jedem Suchen/Ersetzen ausgeführt werden.
By using this layer with your Python functions, you can quickly get started with building complex data processing and machine learning applications.
Indem Sie diese Ebene mit Ihren Python-Funktionen nutzen, können Sie schnell in die Entwicklung komplexer Datenverarbeitungs- und Machine-Learning-Anwendungen einsteigen.
Contenu potentiellement sensible ou inapproprié
Les exemples vous aident à traduire le mot ou l’expression cherchés dans des contextes variés. Ils ne sont ni sélectionnés ni validés par nous et peuvent contenir des mots ou des idées inappropriés. Signalez des exemples à modifier ou à retirer. Les traductions potentiellement sensibles, inappropriées ou familières sont généralement marquées de rouge ou d’orange.