📜  交换大写和小写字符串python代码示例

📅  最后修改于: 2022-03-11 14:45:15.441000             🧑  作者: Mango

代码示例1
# swapcase() method 

string = "thE big BROWN FoX JuMPeD oVEr thE LAZY Dog"
print(string.swapcase()) 

>>> THe BIG brown fOx jUmpEd OveR THe lazy dOG