我想问下,这段代码是不是Python自动把大写转换成小写呢?
我想问下,这段代码是不是Python自动把大写转换成小写呢?
name = ['Adam', 'Bart', 'Lisa', 'Paul']
for y in set(name):
x=y.lower()
name.append(x)
print name
s=set(name)
print 'adam' in s
print 'bart' in s
print 'Adam' in s
我想问下,这段代码是不是Python自动把大写转换成小写呢?
name = ['Adam', 'Bart', 'Lisa', 'Paul']
for y in set(name):
x=y.lower()
name.append(x)
print name
s=set(name)
print 'adam' in s
print 'bart' in s
print 'Adam' in s
2018-08-08
举报