题解 | #创建集合#
创建集合
https://www.nowcoder.com/practice/398ceccfafeb4de88640e76128634902
name = input().split(" ") collection = set() for i in name: collection.add(i) print(sorted(collection))
split("")里别忘了加空格QAQ
创建集合
https://www.nowcoder.com/practice/398ceccfafeb4de88640e76128634902
name = input().split(" ") collection = set() for i in name: collection.add(i) print(sorted(collection))
split("")里别忘了加空格QAQ
相关推荐