Python lower() 方法转换字符串中所有大写字符为小写。
lower()方法语法:
str.lower()
返回将字符串中所有大写字符转换为小写后生成的字符串。
以下实例展示了lower()的使用方法:
#!/usr/bin/python3
str = "itzixishi EXAMPLE....WOW!!!"
print( str.lower() )
以上实例输出结果如下:
itzixishi example....wow!!!
©2020 IT自习室京ICP备20010815号