📜  Python swapcase() 方法示例 - Python 代码示例

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

代码示例1
Python swapcase() method Example
text1 = "pYTHON tUTORIALS"
print(text1.swapcase())

text2 = "HELLO WORLD"
print(text2.swapcase())

text3 = "welcome to itsmycode"
print(text3.swapcase())

text4 ="12345!!!"
print(text4.swapcase())