【发布时间】:2016-06-12 09:10:03
【问题描述】:
我对我的代码如何没有将所有字符串都变成小写感到困惑?
def set_lowercase(strings):
""" lower the case 2. """
return [i.lower() for i in strings]
strings = ['Right', 'SAID', 'Fred']
set_lowercase(strings)
print(strings)
【问题讨论】:
标签: python python-3.x