7, eight days learning python

String Magic

= the Test "BRAN" 
v = test.capitalize () # - convert the first letter uppercase character bits: BramN -------- Magic 1
Print (v)

v1 = test.casefold () # - all variations lowercase, many unknown corresponding to lower case ---- magic 2
Print (V1)

V2 = test.lower () # - all lowercase, no function casefold cow B -------- magic 3
print (v2)



Guess you like

Origin www.cnblogs.com/jianchixuexu/p/11432325.html