basic data types and their functions python string -2-

Initials 1 # 
2 A = "ABC" 
. 3 B = a.capitalize () 
. 4 Print (B) 
. 5 B = the ABC
1  # all lowercase letters (letters only) 
2 A = " the ABC " 
. 3 B = a.lower ()
 . 4  Print = (B)
 . 5  
. 6 B = ABC
1  # contents into the corresponding lower case 
2 A = " the ABC " 
. 3 B = a.casefold ()
 . 4  Print (B)
 . 5  
. 6 B = ABC
 . 7  
. 8  # include but are not limited to English English conversion capitalization

 

Guess you like

Origin www.cnblogs.com/chouchouzhu/p/10951377.html
Recommended