我想检查两个字符串是否包含相同的字母和数字
但忽略特殊字符,例如_
例子:
word1 = "ABCD" , word2 = "ACDB" => return True
word1 = "ABC1E_" , word2 = "AE1CB" => return True
word1 = "AB12" , word2 = "ABE2" => return False
word1 = "ABB" , word2 = "AB" => return True
Run Code Online (Sandbox Code Playgroud)