str = input()
words = []
str = str.upper()
for word in str:
if 'A' <= word <= 'Z' and word not in words:
words.append(word)
words = sorted(words)
print(','.join(words))
s = 'i miss you'
# s=input()
s = s.replace(' ', '').upper()
s = list(set(list(s)))
length= len(s)
# 第一级遍历
for index in range(length):
# 第二级遍历
for j in range(1, length - index):
if ord(s[j - 1]) > ord(s[j]):
# 交换两者数据,这里没用temp是因为python 特性元组。
s[j - 1], s[j] = s[j], s[j - 1]
for i in s:
print(i,end=',')
补充一下: