牛客382241482号
牛客382241482号
全部文章
题解
归档
标签
去牛客网
登录
/
注册
牛客382241482号的博客
全部文章
/ 题解
(共1篇)
题解 | #找出字符串中第一个只出现一次的字符#
a = input() freq = {} index = 0 for i in set(a): freq[i] = a.count(i) for i in a: if freq[i] == 1: print(i) index += 1 break if index == 0: print(-1)
Python3
2022-04-20
0
141