The `str.translate()` method accepts a table of codepoints mapped to another character or codepoint. Map to `None` for characters that have to be deleted. You can use the `ord()` built-in function to get the codepoint of characters. Or, you can use the `str.maketrans()` method to generate the mapping for you.
This video is based on content from my "100 Page Python Intro" ebook: https://github.com/learnbyexample/100...
Sur cette page du site, vous pouvez voir la vidéo en ligne Python tip 15: string transliteration durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur learnbyexample 23 août 2022, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 256 fois et il a aimé 1 téléspectateurs. Bon visionnage!