承接国内外服务器租用托管、定制开发、网站代运营、网站seo优化托管接单、网站代更新,新老站点皆可!!咨询QQ:3787320601

python使用lower函数将字符串中的大小字符转换为小写

管理员 2023-03-26 10:58:42 互联网圈 46 ℃ 0 评论 778字 收藏

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

相关文章

Related articles

X

截屏,微信识别二维码

微信号:weimawl

(点击微信号复制,添加好友)

打开微信