Discuss / Python / 作业

作业

Topic source

B O O M!

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

    if n < 10:

        return True

    re = ""

    cn = n

    while(cn > 0):

        y = cn % 10

        cn = int(cn / 10)

        re += str(y)

    return int(re) == n


  • 1

Reply