请问lower()的引用是这样的吗?这段要怎么改才能运行正确呀
names = ['Alice', 'Bob', 'Candy', 'David', 'Ellena']
name_set = set(names)
if 'bob' in name_set:
print('True')
name_lower=name_set.lower()
print(name_lower)
if 'bob' in name_lower:
print('yep')
else:
print('None')
——————————————————————————
Traceback (most recent call last): File "index.py", line 6, in name_lower=name_set.lower() AttributeError: 'set' object has no attribute 'lower'