Ahoj vsichni, potrebuju extrahovat ze stringu seznam integeru, neco s nim udelat a pak ten string updatnout. Sesmolil jsem tohle:
s = '1, 2, 3, 4, ...'
# ...
l = [int(m) for m in s.split(',')]
# processing
s = ', '.join([str(n) for n in l])
Jak by takovy kod napsal zkuseny ' Pythonyr' ?
Diky, Ondrej
_______________________________________________
Python mailing list
[email protected]
http://www.py.cz/mailman/listinfo/python
