登录/注册后可看大图 这道题我是如许做的 str1 = "那一串长长的东西" list1 = [] count = 3 for i in str1[3:-3]: if i.islower() == True: if (str1[(count - 3):count].isupper() == True) and (str1[(count + 1):(count + 4)].isupper() == True): if (str1[count - 4].isupper() == False) and (str1[count + 4].isupper() == False): list1.append(i) count = count + 1 print(list1) 但是按如许做得到的结果是uilovefisdhc ,答案应该是ilovefishc 不知道是哪个环节有弊端 求资助 😭 |