Discuss / Python / 利用切片的方法

利用切片的方法

Topic source

六毛de

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

return str(n)==str(n)[::-1]# 利用切片,把字符串倒过来

----原文:https://blog.csdn.net/it_liuwei/article/details/78495108

最简单的办法,简洁明了。

Vatre

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

谢谢分享

666


  • 1

Reply