Dict对象可直接通过进行比较fromcollectionsimportCounterclassSolution:defisAnagram(self,s:str,t:str)-bool:returnCounter(s)Counter(t)