请用户输入10个姓名(可以重复),去掉重复的姓名(重 复的姓名只保留一一个)后显示输出。
i = 1 result = [] while i <= 10: result.append(input("name{}:".format(i))) i += 1 print(set(result))