Python 字符串 swapcase() 方法
定义和用法
The swapcase()
方法返回一个字符串,其中所有大写字母都变成小写字母,反之亦然。
语法
string.swapcase()
参数值
没有参数。
The swapcase()
方法返回一个字符串,其中所有大写字母都变成小写字母,反之亦然。
string.swapcase()
没有参数。
If you want to use W3Schools services as an educational institution, team or enterprise, send us an e-mail:
[email protected]
If you want to report an error, or if you want to make a suggestion, send us an e-mail:
[email protected]