Az tak prosté to není, predpokládá to mít osetrené vsechny paznaky, to uz rovnou muzu definovat celé translate, ideální by byla volba ignore-all-others a mít moznost definovat univerzální nahrazující znak - ne vzdy se hodí otazník.

----- Puvodní zpráva ----- Od: Ondrej Beranek

prosté. dík.

2014-03-03 17:44 GMT+01:00 Hynek Fabian <hynek.fab...@firma.seznam.cz>:

S.translate(table [,deletechars]) -> string

Return a copy of the string S, where all characters occurring
in the optional argument deletechars are removed, and the
remaining characters have been mapped through the given
translation table, which must be a string of length 256 or None.
If the table argument is None, no translation is applied and
the operation simply removes the characters in deletechars.


On 03/03/14 17:45, Ondrej Beranek wrote:
dovolim si do toho vstoupit,
kdybych takovou konverzi stejne chtel provest, s tim ze si sam reknu na co
to prevest je mozne nejak konverzni tabulku dodefinovat ?

_______________________________________________
Python mailing list
python@py.cz
http://www.py.cz/mailman/listinfo/python

Visit: http://www.py.cz

Odpovedet emailem