Discuss / Python / 百度了才知道还有[::-1]这种切片方法= =

百度了才知道还有[::-1]这种切片方法= =

Topic source

lostanother

#1 Created at ... [Delete] [Delete and Lock User]
    s = str(n)
    return s == s[::-1]

  • 1

Reply