题解 | #删除字符串中出现次数最少的字符#
删除字符串中出现次数最少的字符
http://www.nowcoder.com/practice/05182d328eb848dda7fdd5e029a56da9
a=20#初始值
for i in str:
if str.count(i)<=a:
a=str.count(i)#更新最小值
else:
continue
for i in str:
if str.count(i)==a:
str=str.replace(i,'')
print(str)