选择频道搜索
要将字母全部变为小写,可以使用字符串的`lower()`方法。下面是一个示例:
string = "Hello World"lowercase_string = string.lower()print(lowercase_string)
输出结果为:
hello world