return str(n)==str(n)[::-1]# 利用切片,把字符串倒过来
----原文:https://blog.csdn.net/it_liuwei/article/details/78495108
最简单的办法,简洁明了。
谢谢分享
不错
666
Sign in to make a reply
六毛de
return str(n)==str(n)[::-1]# 利用切片,把字符串倒过来
----原文:https://blog.csdn.net/it_liuwei/article/details/78495108