In Python wird, falls m und n Integer sind, auch m/n als Integer behandelt, es ist nämlich der Quotient von m geteilt durch n. Daher ist 2/3=0.
In Python, if m and n are ints, then m/n is also an int, namely the quotient of m divided by n. Therefore 2/3=0.
Other results
Installiere Python, falls du es noch nicht auf deinem Raspberry Pi hast.
Install Python if you do not already have it on your Raspberry Pi.
In dem Fall verfolgt Python eine Deprecation-Policy, die besagt, dass zu entfernende Features in einem einjährigen Übergangszeitraum formell deprecated werden.
In this case, Python follows a deprecation policy based on a one-year transition period where features to be removed are formally deprecated.
Reintegrieren Sie Patches von OOo für Python in den Python-Quelltext-Baum (falls sinnvoll)
Falls Du Python beherrscht oder es gern lernen willst, könntest Du auch Deine eigenen Scripts schreiben.
Of course, if you know Python or are willing to learn it, you could write your own scripts.
Dies ist bei der Python-Variante der Fall, jedoch gibt die Ruby-Variante einfach nil in beiden Fällen zurück.
This assumption holds true for the Python variant, the Ruby variant however happily returns nil for both.
Falls Sie Python-2.3 verwenden wollen, müssen Sie das PyUNO-Modul mit Python-2.3 neu kompilieren (sehen Sie unten).
If you want to use python-2.3, you must recompile the pyuno module with python-2.3 (see below)
Falls Sie Python für Berechnungen oder als Leim zu numerischen Programmen verwenden, können Sie dieses Modul benutzen, um während der Berechnung der Daten (on-the-fly) diese auch zu plotten.
If you use Python to perform computations or as glue' for numerical programs, you can use this module to plot data on the fly as they are computed.
Falls Python 2.x.y. bereits installiert ist und Sie die vorhandene Installation verwenden möchten, können Sie das Häkchen bei der Option Python gebündelt installieren entfernen.
If you already have Python 2.x.y installed and want to use the existing installation, you can uncheck the option to install Bundled Python.
Wir empfehlen, falls Python 2 nicht zwingend notwendig ist, Python 3 zu verwenden.
We recommend, if Python 2 is not explicitly necessary, to use Python 3.
Wir nehmen jedoch die zunehmende Popularität der Sprache Perl, die auf der sechsten Zeile Rose, sowie der Fall der Python auf den achten Platz (im letzten Jahr war er auf dem sechsten).
However, we note the increased popularity of the language Perl, which rose on the sixth line, as well as the fall of Python to the eighth place (last year he was on the sixth).
Hinweis: Dieser Beitrag bezieht sich insplizit auf Python 3. Falls du lieber Python 2.7 lernen möchtest, schau hier weiter.
Note: This article applies to Python 2.7 specifically, but should be applicable to Python 2.x.
Allerdings ist das nicht, was Entwickler normalerweise tun: Sie gehen von Python 2.7 direkt zur letzten Version von Python 3.x, in diesem Fall Python 3.2, und schaffen so das Problem.
However, that's not what people really do: they go from 2.7 straight to the latest version of 3.x, in this case 3.2, resulting in this problem.
Potentially sensitive or inappropriate content
Examples are used only to help you translate the word or expression searched in various contexts. They are not selected or validated by us and can contain inappropriate terms or ideas. Please report examples to be edited or not to be displayed. Potentially sensitive, inappropriate or colloquial translations are usually marked in red or in orange.