摘要: def func(): ''' 把字符串当中重复的字符打印出来 :return: ''' str1 = 'acbdac' for i in set(str1): if str1.count(i) > 1: print(i) func() 运行结果: a c 阅读全文
posted @ 2021-08-18 14:29 多测师_王sir 阅读(79) 评论(0) 推荐(0) 编辑