📜  python运行javascript代码示例

📅  最后修改于: 2022-03-11 15:03:39.403000             🧑  作者: Mango

代码示例2
class Solution:
    def solve(self, s):
        x = ""
        for i in s:
            if i >= 'a' and i <= 'z':
                x += i
        i, j = 0, len(x) - 1
        while i <= j:
            if x[i] != x[j]:
                return False
            i += 1
            j -= 1
        return True