解题思路:
注意事项:strip有神奇的魔力
参考代码:
email = input().strip() N = int(input()) arr = [] for i in range(N): account = input().strip().split() password = list(account[1]) if email in account: for i in range(len(password)): if password[i].isupper(): password[i] = password[i].lower() else: password[i] = password[i].upper() arr.append(account[0] + " " + "".join(password)) if len(arr) == 0: print("empty") else: for i in arr: print(i)
0.0分
0 人评分