Discuss / Python / 作业

作业

Topic source

救赎_TGA

#1 Created at ... [Delete] [Delete and Lock User]

def is_palindrome(n):

    a = str(n)

    for b in range(len(a)):

        if a[b] == a[-1 - b] :

            pass

        else:

            break

        s = int(a)

        return s 

看了大神们的作业,感觉自己这思维模式还是有差距啊


  • 1

Reply