diff --git "a/\345\211\221\346\214\207offer/\347\254\254\344\270\200\344\270\252\345\217\252\345\207\272\347\216\260\344\270\200\346\254\241\347\232\204\345\255\227\347\254\246.py" "b/\345\211\221\346\214\207offer/\347\254\254\344\270\200\344\270\252\345\217\252\345\207\272\347\216\260\344\270\200\346\254\241\347\232\204\345\255\227\347\254\246.py" index 1c2fb5d..baa7491 100644 --- "a/\345\211\221\346\214\207offer/\347\254\254\344\270\200\344\270\252\345\217\252\345\207\272\347\216\260\344\270\200\346\254\241\347\232\204\345\255\227\347\254\246.py" +++ "b/\345\211\221\346\214\207offer/\347\254\254\344\270\200\344\270\252\345\217\252\345\207\272\347\216\260\344\270\200\346\254\241\347\232\204\345\255\227\347\254\246.py" @@ -24,7 +24,7 @@ def FirstNotRepeatingChar(self, s): if i not in blist.keys(): blist[i] = 0 blist[i] += 1 - for i in blist: + for i in alist: if blist[i] == 1: # %d format: a number is required, not str ,i此时返回的是只出现一次的那个字符串是不符合题意的 # return i