检查两个字符串数组是否相等 思路 原地遍历 class Solution(object): def arrayStringsAreEqual(self, word1, word2): return ''.join(word1)==''.join(word2)