奇葩的true, false问?
为什么这段代码输出的是: True False False False
代码段:
s = set(['Adam','Lisa','Bart','Paul']) for name in s: Name = name.lower() s = set([Name]) for name in s: print s print name print 'bart' in s print 'adam' in s print 'paul' in s print 'lisa' in s