Aprite il vostro interprete Python 
 2 
 Digitare quanto segue : . 
 
StringEx = ' Questo è il mio esempio di stringa in Python '; < br
 stringEx.replace > ( " " , "_") ; 
 
 3 Premere il tasto " Enter" . Python restituisce: 
 
 ' This_is_my_string_example_in_Python ' 
 
 In questo esempio , Python cerca la stringa di testo per gli spazi bianchi , poi sostituisce tutti gli spazi bianchi con underscore 
 < br . > 
              
Programmazione © www.354353.com