# -*- coding: iso-8859-1 -*- #. // _by_strtran.py #. // Remplace des caractères dans une chaîne. def by_strtran( cStringe, cOld, cNew ): return cStringe.replace( cOld, cNew ) ''' Dernière modification : 2022-03-01 [Exemple] from _by_strtran import by_strtran # // Remplace des caractères dans une chaîne. print() s = "berNard" print ( s ) s = by_strtran( s, "b", "B" ) print ( s ) s = by_strtran( s, "N", "n" ) print ( s ) [/Exemple] '''