string.lower()

Python 字符串 Python 字符串

描述

Python lower() 方法转换字符串中所有大写字符为小写。

语法

lower()方法语法:

str.lower()
wζ3ζxζuζe.com提供本在线速查手册,请勿盗用!

参数

返回值

返回将字符串中所有大写字符转换为小写后生成的字符串。

实例

以下实例展示了lower()的使用方法:

#!/usr/bin/python

str = "THIS IS STRING EXAMPLE....WOW!!!";

print str.lower();
wζ3ζxζuζe.com提供本在线速查手册,请勿盗用!

以上实例输出结果如下:

this is string example....wow!!!
wζ3ζxζuζe.com提供本在线速查手册,请勿盗用!

Python 字符串 Python 字符串