pardon110
如此这般就好,不会用集合的话,用最后一条看帮助Python 3.7.0 (default, Jun 28 2018, 08:04:48) [MSC v.1912 64 bit (AMD64)] :: Ana
conda, Inc. on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> d=set([name.lower() for name in ['Adam','Lisa','Bart']])
>>> print(d)
{'lisa', 'bart', 'adam'}
>>> print(*d)
lisa bart adam
>>> help(set)