def check_letters(str1, str2) ->bool:
    """
    检查两个字符串是否由相同字母的不同顺序组成
    :param str1:
    :param str2:
    :return:
    """
    from collections import Counter
    resbool = Counter(str1) == Counter(str2)
    return resbool
