| Python 2.2 für Einsteiger | ||
|---|---|---|
| <<< Previous | Einführung anhand von Beispielen | Next >>> |
#!/usr/bin/python
import string
eingabe = raw_input("Übersetze:")
#dict = {}
#dict['ich'] = "I"
#dict['gehe'] = "walk"
#dict['sehe'] = "see"
#dict['fühle'] = "feel"
#dict['dich'] = "you"
#dict['mich'] = "me"
dict = {"ich":"I",
'gehe':'go',
'sehe':'see'
}
liste = string.split(eingabe," ")
for i in liste:
print dict[i],"\t"
| <<< Previous | Home | Next >>> |
| Link - Extraktor in Homepage | Up | HTTP - Client |