主页
Python
Python String swapcase() 方法
demo_ref_string_swapcase
运行 ❯
×
更改方向
保存代码
更改主题
txt = "Hello My Name Is PETER" x = txt.swapcase() print(x)
hELLO mY nAME iS peter