题解 | #删除字符串中出现次数最少的字符#
删除字符串中出现次数最少的字符
https://www.nowcoder.com/practice/05182d328eb848dda7fdd5e029a56da9
while True: try: a = input() b = dict() for i in a: if i not in b.keys(): b[i] = 1 else: b[i] = b[i] + 1 s = "" for i in a: if b[i] != min(b.values()): s = s + i else: pass else: pass print(s) except: break#HJ23#