所有Leetcode题目不定期汇总在 Github, 欢迎大家批评指正,讨论交流。 class Solution: def flipAndInvertImage(self, A): """ :type A: List[List[int]] :rtype: List[List[int]] """ return [list(map(lambda x , y : x ^ y, row[::-1] , len(row)*[1])) for row in A] 所有Leetcode题目不定期汇总在 Github, 欢迎大家批评指正,讨论交流。