大小写字母的转换
str = "this is string example....wow!!!"; print(str.swapcase()) str = "THIS IS STRING EXAMPLE....WOW!!!"; print(str.swapcase())
output:
THIS IS STRING EXAMPLE....WOW!!!
this is string example....wow!!!
大小写字母的转换
str = "this is string example....wow!!!"; print(str.swapcase()) str = "THIS IS STRING EXAMPLE....WOW!!!"; print(str.swapcase())
output:
THIS IS STRING EXAMPLE....WOW!!!
this is string example....wow!!!