小册名称:Python合辑2-字符串常用方法
13、lower()
将字符串中的字母,全部转换为小写。
s = 'SIMPLE IS BETTER THAN COMPLEX'.lower()print(s)# simple is better than complex
s = 'SIMPLE IS BETTER THAN COMPLEX'.lower()
print(s)
# simple is better than complex