Discuss / Python / 没找到int型的倒置的函数,只能转换字符换切片了^-^

没找到int型的倒置的函数,只能转换字符换切片了^-^

Topic source

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


  • 1

Reply