是的,可以使用 'lower()' 函数对 'input()' 输入的字符串进行小写转换。下面是一个示例:

string = input('请输入一个字符串:')
lower_string = string.lower()
print('小写转换后的字符串为:', lower_string)

运行示例代码后,程序会提示你输入一个字符串,然后将输入的字符串转换为小写,并打印出转换后的结果。

Python input() 输入字符串转小写:lower() 函数

原文地址: https://www.cveoy.top/t/topic/qdXp 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录