我想知道如何转换此列中每个单词的首字母:
Test
There is a cat UNDER the table
The pen is working WELL.
变成小写,为了有
Test
there is a cat uNDER the table
the pen is working wELL.
对于字符串,可以使用以下代码:
" ".join(i[0].lower()+i[1:] for i in line.split(" "))
我如何通过列中的行迭代它?
蝴蝶刀刀
慕斯709654
互换的青春
相关分类