You are not logged in.
Dear visitor, welcome to Aqua Computer Forum. If this is your first visit here, please read the Help. It explains how this page works. You must be registered before you can use all the page's features. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

|
|
Source code |
1 2 3 4 5 6 7 |
def gen_pairs():
yield 'Peter', 32
yield 'Marie', 27
yield 'Hans', 45
people = dict(gen_pairs())
# -> {'Hans': 45, 'Marie': 27, 'Peter': 32}
|
This post has been edited 1 times, last edit by "Y0Gi" (Jan 22nd 2013, 4:19am)
Quoted from "elbarto`"
bis auf die tatsache das ich es unschön finde immer ne python konsole offen haben zu müssen [...]
Quoted from "messi"
seh ich hier eine ueberlappung zum pokerbot beitrag? ;D
Quoted from "Y0Gi"
Unter Windows kannst du ein Script mit `pythonw.exe` ausführen (ist normalerweise mit der Dateiendung `.pyw` verknüpft), damit keine Konsole geöffnet wird, unter Linux und OS X hast du `&`, `screen` und wasnichalles.
-