$ python
Code: Alles auswählen
Python 2.7.1 (r271:86832, Feb 20 2011, 17:35:09)
[GCC 4.4.5] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> a, b = "1,2,3".split(',')[0,2]
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: list indices must be integers, not tuple
Vielen Dank im Voraus