Created
April 1, 2013 18:37
-
-
Save anonymous/5286756 to your computer and use it in GitHub Desktop.
Python ist nun endlich auch für Personen, die ausschließlich die deutsche Sprache beherrschen zugänglich.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
Gleitpunktzahl = Gleitkommazahl = Fliesskommazahl = float | |
ZeichenKette = str | |
GanzZahl = int | |
GrosseGanzZahl = long | |
Objekt = object | |
KomplexeZahl = complex | |
Liste = list | |
Tupel = tuple | |
Menge = set | |
EingefroreneMenge = frozenset | |
Woerterbuch = dict | |
if __name__ == '__main__': | |
resultat = Gleitkommazahl(2) + Gleitkommazahl(2) + GanzZahl(2) | |
print resultat | |
menge = Menge(Liste([GanzZahl(3), GanzZahl(1), GanzZahl(2), GanzZahl(3)])) | |
print menge |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment