python使用lower函数将字符串中的大小字符转换为小写
python使用lower函数将字符串中的大小字符转换为小写
在python中使用lower()函数将字符串中大小字符转换为小写的方法
lower:lower()函数的作用是转换字符串中所有大写字符为小写。
lower()函数语法:
str.lower()
lower()函数使用方法:
str = "HELLO WORLD !!";
print str.lower();
输出结果为:
hello world !!
文章来源:丸子建站
文章标题:python使用lower函数将字符串中的大小字符转换为小写
https://www.wanzijz.com/view/4095.html