以下实例展示了swapcase()函数的使用方法:
#!/usr/bin/python
str
=
"hello python!!!"
;
print
.swapcase();
"HELLO WORLD!"
以上实例输出结果如下:
HELLO PYTHON!!!
hello world!
Python swapcase()方法
原文:http://www.cnblogs.com/Suomy/p/5764137.html