python面试题,输出第1个不重复的字符

# -*- coding: utf-8 -*-
class wanwan(object):
def wanwan(self):
str1="abosdufouwgeifubw"
for i in str1:
if str1.count(i)==1:
print(i)
break

if __name__ == '__main__':
a=wanwan()
a.wanwan()
posted on 2018-06-14 17:57  别说话,吻我!  阅读(426)  评论(0编辑  收藏  举报