2 回答
pardon110
TA贡献1038条经验 获得超227个赞
如此这般就好,不会用集合的话,用最后一条看帮助
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)
添加回答
举报
0/150
提交
取消