用法

newstr = string.casefold() //可以针对小语种进行转换

newstr = string.lower()

casefold与lower的注意事项

1.只对字符串中的字母有效

2.已经是小写,则无效