python3解法string = input().split()l1 = string[1:-2]l2 = string[-2]k = int(string[-1])-1 def is_brother(a, b): if len(a) == len(b) and a != b: counts = 0 for i in a: if a.count(i)==b.count(i): counts = counts +1 if counts == len(a): ...