leetcode-easy-string-

Posted rosyyy

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了leetcode-easy-string-相关的知识,希望对你有一定的参考价值。

mycode

 

注意以下陷阱

class Solution(object):
    def isPalindrome(self, s):
        """
        :type s: str
        :rtype: bool
        """
        res = s = [i for i in s if i !=  ]
        print(s)
        res.reverse()
        print(s)
        print(res)
        return res == s

技术图片

 

以上是关于leetcode-easy-string-的主要内容,如果未能解决你的问题,请参考以下文章

微信小程序代码片段

VSCode自定义代码片段——CSS选择器

谷歌浏览器调试jsp 引入代码片段,如何调试代码片段中的js

片段和活动之间的核心区别是啥?哪些代码可以写成片段?

VSCode自定义代码片段——.vue文件的模板

VSCode自定义代码片段6——CSS选择器