lower函数用于将字符串中的大写字毧转换为小写。在Python中,可以通过以下方式使用lower函数:
```python
# 定义一个字符串
string = "Hello, World!"
# 使用lower函数将字符串中的大写字毧转换为小写
lower_string = string.lower()
# 打印转换后的字符串
print(lower_string)
```
运行以上代码,输出结果为:
```
hello, world!
```
亿速云「云服务器」,即开即用、新一代英特尔至强铂金CPU、三副本存储NVMe SSD云盘,价格低至29元/月。点击查看>>
推荐阅读:python中的lower函数怎么使用