python中可以使用lower()方法将所有大写字符转换为小写字母。 lower()方法语法: str.lower() 返回值 返回将字符串中所有大写字符转换为小写后生成的字符串。 示例: #!/usr/bin/python str = "THIS IS STRING EXAMPLE....WOW!!!"; print str.lower(); 运行结果: this is string example....wow!!! 更多Python知识请关注Python视频教程栏目。