Discuss / Python / 交作业

交作业

Topic source

Tonight_dou

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

非常简洁的答案

    L = list(str(n))
    return L == L[::-1]

编辑同学

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

list多余了。


  • 1

Reply