在python中使用lower()函数将字符串中大小字符转换为小写的方法
lower:lower()函数的作用是转换字符串中所有大写字符为小写。
lower()函数语法:
str.lower()
lower()函数使用方法:
str = "HELLO WORLD !!";
print str.lower();
输出结果为:
hello world !!
辰迅云「云服务器」,即开即用、新一代英特尔至强铂金CPU、三副本存储NVMe SSD云盘,价格低至29元/月。点击查看>>
推荐阅读: python元祖怎么创建和使用