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...
Nesta página do site você pode assistir ao vídeo on-line Python tip 15: string transliteration duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário learnbyexample 23 Agosto 2022, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 256 vezes e gostou 1 espectadores. Boa visualização!