def compareStrings(A, B): # write your code here if len(A) < len(B): return False if len(A) == len(B): return(sorted(A) == sorted(B)) for i in B: if A.count(i) < B.count(i): return False return True
标签:ring color sort code com div compare body gpo
def compareStrings(A, B): # write your code here if len(A) < len(B): return False if len(A) == len(B): return(sorted(A) == sorted(B)) for i in B: if A.count(i) < B.count(i): return False return True
标签:ring color sort code com div compare body gpo
原文地址:https://www.cnblogs.com/tingway/p/8543999.html