1、打开cmd
2、进入Python交互界面
3、定义字符串 str = 'This Is A Test'
4、用swapcase()函数进行大小写互换 newStr = str.swapcase()
5、打印输出